/* ===== VIDEO HERO SLIDER - OVERRIDE ALL EXISTING STYLES ===== */
section.video-hero-slider#hero,
.video-hero-slider {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    z-index: 1 !important;
    background: #0078d4 !important; /* Fallback background */
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure navigation arrows are always visible - OVERRIDE ANY HIDDEN STATE */
.video-hero-slider .slider-nav,
.video-hero-slider .nav-arrow,
.video-hero-slider #prevSlide,
.video-hero-slider #nextSlide {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

/* Override any existing hero-section styles */
section.video-hero-slider {
    background: linear-gradient(135deg, #003d82 0%, #0056b3 25%, #0078d4 50%, #106ebe 75%, #1976d2 100%) !important;
}

.video-slider-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
}

/* Video Slide Styles */
.video-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    opacity: 0 !important;
    transition: opacity 1.5s ease-in-out !important;
    z-index: 1 !important;
}

.video-slide.active {
    opacity: 1 !important;
    z-index: 2 !important;
}

/* Video Background */
.video-background {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    width: auto !important;
    height: auto !important;
    transform: translateX(-50%) translateY(-50%) !important;
    z-index: -1 !important;
    object-fit: cover !important;
    display: block !important;
}

/* Video Overlay for Text Readability */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 61, 130, 0.7) 0%,
        rgba(0, 86, 179, 0.6) 25%,
        rgba(0, 120, 212, 0.5) 50%,
        rgba(16, 110, 190, 0.6) 75%,
        rgba(25, 118, 210, 0.7) 100%
    );
    z-index: 1;
}

/* Slide Content */
.slide-content {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 0 4rem 0 4rem !important;
    text-align: left !important;
    pointer-events: none !important;
}

.slide-content > * {
    pointer-events: all !important;
}

/* Slide Title */
.slide-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 100%;
}

.title-white {
    color: #ffffff;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.title-microsoft {
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #f1f5f9 20%, 
        #e2e8f0 40%, 
        #cbd5e1 60%, 
        #94a3b8 80%, 
        #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    text-shadow: none;
}


/* Slide Description */
.slide-description {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Slide Buttons */
.slide-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.slide-buttons .btn {
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-buttons .btn-primary {
    background: linear-gradient(135deg, #0078d4, #00bcf2);
    border: none;
    color: white;
}

.slide-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #106ebe, #0078d4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 120, 212, 0.4);
}

.slide-buttons .btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.slide-buttons .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Navigation Arrows - Always Visible */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: none;
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transition: none !important;
}

.nav-arrow {
    position: absolute;
    top: 0;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: all;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.nav-prev {
    left: 0.5rem;
}

.nav-next {
    right: 0.5rem;
}

/* Dot Indicators */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dot.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 768px) {
    .slide-content {
        padding: 0 3rem !important;
        text-align: center;
        align-items: center;
    }
    
    .slide-title {
        font-size: clamp(2rem, 6vw, 3rem);
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .slide-description {
        text-align: center;
        margin-bottom: 1.5rem;
        max-width: 500px;
    }
    
    .slide-buttons {
        justify-content: center;
    }
    
    .nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .nav-prev {
        left: 0.3rem;
    }
    
    .nav-next {
        right: 0.3rem;
    }
    
    .scroll-indicator {
        right: 1rem;
        font-size: 0.8rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .slide-content {
        padding: 0 2rem !important;
    }
    
    .slide-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .slide-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
    
    .slide-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        width: 100%;
    }
    
    .slide-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .nav-prev {
        left: 0.2rem;
    }
    
    .nav-next {
        right: 0.2rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
}

/* Fix for video loading and performance */
@media (max-width: 768px) {
    .video-background {
        /* On mobile, prioritize performance */
        transform: translateX(-50%) translateY(-50%) scale(1.1);
    }
}

/* Zoom-in/out layout stability */
@media (min-width: 769px) {
    .slide-content {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        padding: 0 4rem !important;
        pointer-events: none !important;
    }
    
    .slide-content > * {
        pointer-events: all !important;
    }
    
    .slide-title,
    .slide-description,
    .slide-buttons {
        position: relative !important;
        left: 0 !important;
        transform: none !important;
        max-width: 800px !important;
    }
}

/* Ensure proper stacking and no overlaps */
.video-hero-slider * {
    box-sizing: border-box;
}

.video-hero-slider .container {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Loading state for videos */
.video-background {
    background-color: #0078d4;
}

.video-slide:not(.active) .video-background {
    /* Pause non-active videos for performance */
    /* This will be handled by JavaScript */
}

/* FORCE ARROWS TO ALWAYS BE VISIBLE - HIGHEST PRIORITY */
#prevSlide, #nextSlide,
.slider-nav .nav-arrow,
.slider-nav .nav-prev,
.slider-nav .nav-next {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    z-index: 9999 !important;
    position: absolute !important;
    transform: translateY(-50%) !important;
}
