/* ===== VIDEO HOMEPAGE STYLES ===== */

/* Full-screen video hero section */
.video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video background container */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Video element styling */
.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Dark overlay for text readability */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 0.8) 100%
    );
    z-index: 1;
}

/* Hero content container */
.video-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 calc(var(--spacing-unit) * 4);
    animation: fadeInUp 1.5s var(--ease-out-expo) 0.5s both;
}

/* Title styling */
.video-hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(4rem, 12vw, 12rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: calc(var(--spacing-unit) * 4);
    color: var(--color-text);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.video-hero-title .title-line {
    display: block;
}

/* Subtitle styling */
.video-hero-subtitle {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1rem, 2.5vw, 2rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation adjustments for video homepage */
.video-homepage .nav {
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.9) 0%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(10, 10, 10, 0) 100%
    );
}

/* Ensure body doesn't have overflow */
.video-homepage {
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .video-hero-title {
        font-size: clamp(3rem, 15vw, 8rem);
    }
    
    .video-hero-subtitle {
        font-size: clamp(0.85rem, 3vw, 1.2rem);
        letter-spacing: 0.2em;
    }
    
    /* On mobile, video might need different positioning */
    .video-background video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .video-hero-title {
        font-size: clamp(5rem, 10vw, 10rem);
    }
}

/* Ensure video plays on iOS */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Loading state before video loads */
.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    z-index: -1;
}

/* Optional: Add a subtle pulse animation to title */
.video-hero-title {
    animation: fadeInUp 1.5s var(--ease-out-expo) 0.5s both,
               subtlePulse 4s ease-in-out 2s infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

/* Pause video on mobile to save bandwidth (optional) */
@media (max-width: 768px) and (prefers-reduced-data: reduce) {
    .video-background video {
        display: none;
    }
    
    .video-background::before {
        background: var(--color-bg);
        z-index: 0;
    }
}