/* ===================================
   ENHANCED HERO SECTION - 2025
   Video Background + Bold Typography
   =================================== */

:root {
    --hero-overlay-start: rgba(0, 78, 137, 0.85);
    --hero-overlay-end: rgba(255, 107, 53, 0.75);
    --hero-text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    --hero-animation-duration: 1.2s;
}

/* Hero Container */
.hero-video-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #004E89 0%, #FF6B35 100%);
}

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

.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;
}

/* Fallback for when video is not available */
.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #004E89 0%, #FF6B35 100%);
    z-index: -1;
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--hero-overlay-start) 0%,
        var(--hero-overlay-end) 100%
    );
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 1200px;
    padding: 0 20px;
    animation: fadeInUp var(--hero-animation-duration) ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.hero-badge i {
    color: #FCBF49;
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: var(--hero-text-shadow);
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #FCBF49 0%, #F77F00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

/* Typed Text Effect */
.typed-text {
    display: inline-block;
    border-right: 3px solid #FCBF49;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { border-color: #FCBF49; }
    50% { border-color: transparent; }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.8s ease-out 0.6s both;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out 0.8s both;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-btn-primary {
    background: #FF6B35;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.hero-btn-primary:hover {
    background: #E85A2A;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5);
    color: white;
}

.hero-btn-primary:hover::before {
    left: 100%;
}

.hero-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-btn-secondary:hover {
    background: white;
    color: #004E89;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    animation: fadeIn 0.8s ease-out 1s both;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.hero-stat-item::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-stat-item:last-child::after {
    display: none;
}

.hero-stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #FCBF49;
    line-height: 1;
    text-shadow: var(--hero-text-shadow);
}

.hero-stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    animation: fadeIn 0.8s ease-out 1.2s both;
}

.scroll-indicator-text {
    color: white;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

.mouse {
    width: 28px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    position: relative;
    margin: 0 auto;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }
    100% {
        top: 30px;
        opacity: 0;
    }
}

/* Particles Effect (Optional) */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-video-section {
        min-height: 100vh;
        padding: 120px 0 60px;
    }
    
    /* Hide video on mobile for better performance */
    .video-background video {
        display: none;
    }
    
    .video-background {
        background: linear-gradient(135deg, #004E89 0%, #FF6B35 100%);
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .hero-title {
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        margin-bottom: 2rem;
    }
    
    .hero-btn {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .hero-stat-number {
        font-size: 2.5rem;
    }
    
    .hero-stat-item::after {
        display: none;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        gap: 1.5rem;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .hero-stat-label {
        font-size: 0.875rem;
    }
}

/* Tablet Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-stats {
        gap: 2.5rem;
    }
}

/* Performance: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-cta,
    .hero-stats,
    .scroll-indicator {
        animation: none;
    }
    
    .typed-text {
        border-right: none;
    }
    
    .mouse::before {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .video-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-stat-label {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}
