/* 
 * Home Page Enhancements
 * Luxurious styling to match services and about pages
 */

/* ===================================
   ENHANCED HERO SECTION
=================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 5;
    padding-top: var(--spacing-xl);
    max-width: 900px;
    animation: fadeInUp 1.2s ease-out;
}

.profile-image-container {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-gold);
    box-shadow: 0 0 50px rgba(197, 160, 89, 0.8);
    animation: float 6s ease-in-out infinite, pulse 3s ease-in-out infinite;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
    animation: fadeInUp 1.2s ease-out 0.2s backwards;
}

.realtor-badge {
    display: inline-block;
    padding: 8px 25px;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    font-size: 0.9rem;
    letter-spacing: 3px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1.2s ease-out 0.4s backwards;
    transition: all 0.4s ease;
}

.realtor-badge:hover {
    background: var(--color-gold);
    color: var(--color-black);
    transform: scale(1.05);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
    animation: fadeInUp 1.2s ease-out 0.6s backwards;
}

.hero-btn {
    background-color: var(--color-gold);
    color: var(--color-black);
    border: none;
    padding: 16px 45px;
    font-weight: 700;
    letter-spacing: 1.5px;
    animation: fadeInUp 1.2s ease-out 0.8s backwards;
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.4);
}

.hero-btn:hover {
    background-color: white;
    color: var(--color-black);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.3);
}

/* ===================================
   ENHANCED SERVICE CARDS
=================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: var(--spacing-lg);
}

.service-card {
    background: white;
    padding: 50px 35px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(197, 160, 89, 0.25);
    border-color: var(--color-gold);
}

.card-icon {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: var(--spacing-md);
    transition: all 0.4s ease;
    display: inline-block;
}

.service-card:hover .card-icon {
    transform: rotateY(360deg) scale(1.15);
    color: #d4af6a;
}

.service-card h3 {
    font-size: 1.7rem;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
    color: var(--color-black);
}

.service-card p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    font-size: 1.05rem;
}

.text-link {
    color: var(--color-black);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.text-link:hover {
    color: var(--color-gold);
    gap: 12px;
}

.text-link i {
    transition: transform 0.3s ease;
}

.text-link:hover i {
    transform: translateX(5px);
}

/* ===================================
   INTRO SECTION ENHANCEMENT
=================================== */
.section {
    position: relative;
}

.section .overline {
    animation: fadeInUp 0.8s ease-out;
}

.section .section-title {
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.section .divider-center {
    animation: expandWidth 1s ease-out 0.3s backwards;
}

/* ===================================
   STATS SECTION (NEW)
=================================== */
.stats-section {
    background: linear-gradient(135deg, var(--color-black) 0%, #2d2d2d 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/hero-home.png') center/cover no-repeat;
    opacity: 0.05;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    color: white;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-item:nth-child(4) {
    animation-delay: 0.4s;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

/* ===================================
   ANIMATIONS
=================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 50px rgba(197, 160, 89, 0.8);
    }

    50% {
        box-shadow: 0 0 70px rgba(197, 160, 89, 1);
    }
}

@keyframes slowZoom {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1.15);
    }
}

/* ===================================
   RESPONSIVE DESIGN
=================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .profile-image-container {
        width: 150px;
        height: 150px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .service-card {
    background: var(--color-beige);
    border-color: rgba(197, 160, 89, 0.2);
}

[data-theme="dark"] .stats-section {
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-beige) 100%);
}

[data-theme="dark"] .stat-item {
    color: var(--color-black);
}

[data-theme="dark"] .stat-label {
    color: var(--color-text-light);
}