/* ============================================
   HERO CAROUSEL - VERBETERDE STYLING
   Bestand: public/css/hero-carousel.css
   ============================================ */

/* 🔧 FIX: Verminder ruimte bovenaan */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
    margin-top: 0; /* Geen extra margin */
    padding-top: 0; /* Geen extra padding */
    
    /* ✅ CSS VARIABLES voor easy customization */
    --hero-overlay-opacity: 0.85; /* ✅ Aanpasbaar - was 0.4 */
    --hero-overlay-gradient-start: rgba(0, 0, 0, var(--hero-overlay-opacity));
    --hero-overlay-gradient-mid: rgba(0, 0, 0, calc(var(--hero-overlay-opacity) * 0.7));
    --hero-overlay-gradient-end: rgba(0, 0, 0, calc(var(--hero-overlay-opacity) * 0.8));
}

/* Video carousel container */
.hero-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-video-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 2s ease-in-out; /* ✅ Langzamere, vloeiendere transition */
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Force eerste slide zichtbaar bij laden */
.hero-slide:first-child {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Video styling */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* ✅ Vloeiende video fade */
}

/* Video in active slide */
.hero-slide.active .hero-video {
    opacity: 1;
}

/* Force eerste video zichtbaar */
.hero-slide:first-child .hero-video {
    opacity: 1;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ✅ VERBETERDE OVERLAY - Gebruikt CSS variables */
    background: linear-gradient(
        135deg,
        var(--hero-overlay-gradient-start) 0%,
        var(--hero-overlay-gradient-mid) 50%,
        var(--hero-overlay-gradient-end) 100%
    );
    z-index: 2;
}

/* ✅ OVERLAY VARIANTEN - Voeg toe aan section voor verschillende sterktes */
.hero-section[data-overlay="light"] {
    --hero-overlay-opacity: 0.4;
}

.hero-section[data-overlay="medium"] {
    --hero-overlay-opacity: 0.6;
}

.hero-section[data-overlay="dark"] {
    --hero-overlay-opacity: 0.8;
}

/* Content positioning */
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    text-align: center;
    color: white;
}

.hero-content .container {
    max-width: 800px;
    padding: 0 2rem;
}

/* Logo */
.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* Typography */
.hero-tagline {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #f0c674;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Call to Action Button */
.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* 🔧 RESPONSIVE AANPASSINGEN */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
        max-height: 600px;
    }
    
    .hero-logo {
        width: 100px;
        margin-bottom: 1rem;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .hero-content .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-tagline {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}

/* 🔧 HEADER SPACING FIX */
/* Zorg ervoor dat de header de hero sectie niet overlapt */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* 🎬 VIDEO LOADING STATES */
.hero-video[poster] {
    background-size: cover;
    background-position: center;
}

.hero-slide:not(.active) .hero-video {
    visibility: hidden;
}

.hero-slide.active .hero-video {
    visibility: visible;
}

/* Smooth transitions */
.hero-slide * {
    transition: opacity 0.3s ease;
}

/* Loading state */
.hero-video:not([data-loaded="true"]) {
    background-color: #1a1a1a;
}

/* 🔧 PERFORMANCE OPTIMIZATIONS */
.hero-video {
    will-change: opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

.hero-slide {
    will-change: opacity;
    backface-visibility: hidden;
}