/* =================================================================
   HERO SECTION
   ================================================================= */

/* ===== HERO CONTAINER ===== */

.hero {
    position: relative;
    height: 70vh;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-black);
}

/* ===== VIDEO BACKGROUND ===== */

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Fallback Image */
.hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Video Overlay */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

/* ===== HERO CONTENT ===== */

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-8);
    max-width: var(--max-w-4xl);
    margin: 0 auto;
}

.hero__subtitle {
    display: inline-block;
    font-size: clamp(var(--text-sm), 2vw, var(--text-base));
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__title {
    font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-white);
    margin-bottom: var(--space-6);
    letter-spacing: var(--tracking-tight);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__title span {
    color: var(--color-accent);
    display: inline-block;
}

.hero__description {
    font-size: clamp(var(--text-base), 2vw, var(--text-xl));
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    max-width: var(--max-w-2xl);
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* ===== CTA BUTTONS ===== */

.hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* ===== SCROLL INDICATOR ===== */

.hero__scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.hero__scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    transition: var(--transition-base);
}

.hero__scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
    animation: scroll 2s infinite;
}

.hero__scroll:hover .hero__scroll-icon {
    border-color: var(--color-white);
}

.hero__scroll:hover .hero__scroll-icon::before {
    background-color: var(--color-white);
}

/* ===== ANIMATIONS ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .hero {
        height: 60vh;
        max-height: 500px;
    }

    .hero__content {
        padding: var(--space-6);
    }

    .hero__cta {
        flex-direction: column;
        width: 100%;
    }

    .hero__cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero__scroll {
        bottom: var(--space-6);
    }
}

@media (max-width: 480px) {
    .hero__content {
        padding: var(--space-4);
    }

    .hero__title {
        margin-bottom: var(--space-4);
    }

    .hero__description {
        margin-bottom: var(--space-6);
    }
}

/* Performance: Reduce motion */
@media (prefers-reduced-motion: reduce) {

    .hero__subtitle,
    .hero__title,
    .hero__description,
    .hero__cta {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero__scroll,
    .hero__scroll-icon::before {
        animation: none;
    }
}