/* Atlantic Pathway - Premium Hero Video Styles */

/* Hero Section - Premium Layout */
.video-hero {
    position: relative;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* Dynamic Gradient Background - More Green */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(177, 219, 80, 0.35) 0%,
        rgba(177, 219, 80, 0.25) 25%,
        rgba(88, 124, 216, 0.15) 50%,
        rgba(0, 0, 0, 0.92) 100%
    );
    z-index: 0;
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Video Container - Larger Initial Size */
.video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    
    /* Larger dynamic sizing */
    width: clamp(350px, 55vw, 650px);
    height: clamp(350px, 55vh, 650px);
    
    /* Maintain aspect ratio */
    aspect-ratio: 1;
    
    /* Smooth transitions */
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    
    /* Enhanced green glow effect */
    filter: drop-shadow(0 0 80px rgba(177, 219, 80, 0.4));
}

/* The Video Element */
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1);
    opacity: 0;
    animation: videoFadeIn 1.5s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes videoFadeIn {
    to {
        opacity: 1;
    }
}

/* Hero Content - Minimal */
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* MINIMAL TITLE STYLING */
.hero-text-container {
    /* NO CSS AT ALL - Will use inline styles */
}

.hero-title {
    /* MINIMAL STYLING ONLY */
    font-family: 'Montserrat', sans-serif;
    color: white;
}


/* MINIMAL SUBTITLE STYLING */
.hero-bottom {
    /* NO CSS AT ALL - Will use inline styles */
}

.hero-subtitle {
    /* MINIMAL STYLING ONLY */
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.85);
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.3s;
}

.hero-subtitle .subtitle-line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.6s;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* MINIMAL SCROLL PROMPT */
.scroll-prompt {
    opacity: 0;
    animation: promptFadeIn 1s ease-out forwards;
    animation-delay: 1.2s;
    pointer-events: auto;
}

@keyframes promptFadeIn {
    to {
        opacity: 0.7;
    }
}

/* Scroll Icon Enhancement */
.scroll-icon {
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    position: relative;
    transition: all 0.3s ease;
}

.scroll-icon:hover {
    border-color: rgba(177, 219, 80, 0.8);
    transform: translateY(-2px);
}

.scroll-wheel {
    width: 3px;
    height: 10px;
    background: rgba(177, 219, 80, 0.9);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel 1.5s infinite ease-out;
}

/* Scroll-based Transformations */
.video-hero.scrolled .video-container {
    transform: translate(-50%, -50%) scale(0.8);
    filter: drop-shadow(0 0 30px rgba(177, 219, 80, 0.1));
}

.video-hero.scrolled .video-background {
    opacity: 0.7;
}

.video-hero.scrolled .hero-content {
    opacity: 0;
    transform: translateY(-20px);
}

/* Tablet Optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    .video-container {
        width: clamp(400px, 50vw, 550px);
        height: clamp(400px, 50vh, 550px);
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
}

/* Large Desktop Optimizations */
@media (min-width: 1440px) {
    .video-container {
        width: clamp(500px, 45vw, 750px);
        height: clamp(500px, 45vh, 750px);
        filter: drop-shadow(0 0 100px rgba(177, 219, 80, 0.5));
    }
    
    .hero-title {
        font-size: clamp(3rem, 4vw, 4.5rem);
    }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .video-container {
        width: min(70vw, 60vh);
        height: min(70vw, 60vh);
        max-width: 350px;
        max-height: 350px;
        min-width: 280px;
        min-height: 280px;
    }
    
    .hero-text-container {
        top: 40px;
    }
    
    .hero-title {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
        padding: 0 15px;
    }
    
    .hero-bottom {
        bottom: 80px;
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 1.5vw, 0.9rem);
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    .video-background {
        background: radial-gradient(
            circle at center,
            rgba(177, 219, 80, 0.30) 0%,
            rgba(177, 219, 80, 0.20) 25%,
            rgba(88, 124, 216, 0.12) 50%,
            rgba(0, 0, 0, 0.9) 100%
        );
    }
}

/* Ultra-wide Screen Support */
@media (min-width: 1920px) {
    .video-container {
        width: min(500px, 30vw);
        height: min(500px, 50vh);
    }
}

/* Portrait Phone Optimization */
@media (max-width: 430px) and (orientation: portrait) {
    .video-container {
        width: 75vw;
        height: 75vw;
        max-width: 350px;
        max-height: 350px;
        min-width: 280px;
        min-height: 280px;
    }
}

/* Landscape Phone Optimization */
@media (max-height: 430px) and (orientation: landscape) {
    .video-hero {
        height: 100vh;
    }
    
    .video-container {
        width: 35vh;
        height: 35vh;
    }
    
    .hero-content {
        top: 5%;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .scroll-prompt {
        bottom: 20px;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    .hero-video,
    .video-container,
    .hero-content,
    .video-background {
        animation: none !important;
        transition: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero-title {
        background: none;
        -webkit-text-fill-color: #fff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .video-container {
        filter: contrast(1.2) drop-shadow(0 0 60px rgba(177, 219, 80, 0.3));
    }
}