﻿/* ==========================================
   IMPROVED HERO SECTION - Sweet Xile
   ========================================== */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    height: 90vh;
    max-height: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #fef5f8;
}

/* Background Image Layer */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: none;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Overlay — hidden */
.hero-overlay {
    display: none;
}

/* Content Container */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
}

/* Title — Luckiest Guy */
.hero-title {
    width: 100%;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

    .hero-title h1 {
        font-family: 'Luckiest Guy', cursive;
        font-size: clamp(3rem, 8vw, 7rem);
        font-weight: 400;
        font-style: italic;
        line-height: 1;
        margin: 0;
        letter-spacing: -0.02em;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.1);
        background: linear-gradient(135deg, #FFCA28 0%, #FFE066 25%, #ffd93d 50%, #6bcf7f 75%, #4d9de0 100%);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: gradientShift 8s ease infinite;
        color: #FFCA28;
    }

        .hero-title h1::after {
            content: '';
            display: block;
            width: 140px;
            height: 5px;
            background: linear-gradient(90deg, #FFCA28, #FFE066, #6bcf7f);
            margin: 1.5rem auto 0;
            border-radius: 3px;
            box-shadow: 0 2px 8px rgba(255,224,130,0.4);
        }

/* Subtitle — Poppins */
.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
    color: #0f1446 !important;
}

    .hero-subtitle p {
        font-family: 'Poppins', sans-serif;
        font-size: clamp(1.25rem, 2.5vw, 1.75rem);
        font-weight: 600;
        line-height: 1.6;
        margin: 0;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.15);
        background: none;
        backdrop-filter: none;
        padding: 0.75rem 1.5rem;
        border-radius: 12px;
        display: inline-block;
    }

/* Hero Logo */
.hero-logo {
    height: 300px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain;
    display: block;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    animation: fadeInUp 0.8s ease-out;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-section {
        min-height: 500px;
        height: 70vh;
    }

    .hero-background {
        background-position: center center;
    }

    .hero-title h1 {
        font-size: clamp(2.5rem, 7vw, 5rem);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 450px;
        height: 65vh;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-title h1 {
        font-size: clamp(2rem, 9vw, 4rem);
    }

    .hero-subtitle p {
        font-size: clamp(1.1rem, 3vw, 1.4rem);
        padding: 0.6rem 1.2rem;
    }

    .hero-logo {
        height: clamp(120px, 25vw, 200px) !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 400px;
        height: 60vh;
    }

    .hero-title h1::after {
        width: 100px;
        height: 4px;
        margin-top: 1rem;
    }

    .hero-subtitle p {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .hero-logo {
        height: clamp(100px, 28vw, 160px) !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-title, .hero-subtitle {
        animation: none;
    }

        .hero-title h1 {
            animation: none;
        }

    .hero-background {
        will-change: auto;
    }
}

/* Print */
@media print {
    .hero-section {
        height: auto;
        min-height: 300px;
    }
}

.hero-subtitle p {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem); /* was clamp(1.25rem, 2.5vw, 1.75rem) */
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.15);
    background: none;
    backdrop-filter: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    display: inline-block;
}

.hero-title {
    width: 100%;
    margin-bottom: 0.5rem; /* was 1.5rem */
    animation: fadeInUp 0.8s ease-out;
}