/* ===== HERO SLIDER STYLES ===== */

/* Hero Section Container */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

/* Hero Slider Container */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Individual Slide */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
}

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

/* Slide Background with Ken Burns (Zoom) Effect */
.hero-slide__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
}

/* Ken Burns Zoom Animation - Applied to active slides */
.hero-slide.active .hero-slide__background {
    animation: kenBurnsZoom 10s ease-out forwards;
}

@keyframes kenBurnsZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

/* Slide Overlay - Gradient for text readability */
.hero-slide__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(123, 45, 126, 0.65),
        rgba(214, 45, 140, 0.65)
    );
    z-index: 1;
}

/* Fallback gradient if no images are loaded */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 0;
}

/* Slider Navigation Arrows */
.hero-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 55px;
    height: 55px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: var(--white-color);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.hero-slider__nav:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.15);
    opacity: 1;
    box-shadow: 0 8px 20px rgba(214, 45, 140, 0.4);
}

.hero-slider__nav:active {
    transform: translateY(-50%) scale(1.05);
}

.hero-slider__nav--prev {
    left: 2.5rem;
}

.hero-slider__nav--next {
    right: 2.5rem;
}

/* Slider Indicators (Dots) */
.hero-slider__indicators {
    position: absolute;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
}

.hero-slider__indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-slider__indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.hero-slider__indicator.active {
    background-color: var(--white-color);
    width: 40px;
    border-radius: 10px;
    border-color: var(--white-color);
}

/* Ensure content is above slider */
.hero__container {
    position: relative;
    z-index: 2;
}

.action-cards {
    position: relative;
    z-index: 2;
}

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

/* Tablets and smaller */
@media screen and (max-width: 992px) {
    .hero-slider__nav {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .hero-slider__nav--prev {
        left: 1.5rem;
    }
    
    .hero-slider__nav--next {
        right: 1.5rem;
    }
    
    .hero-slider__indicators {
        bottom: 7rem;
    }
}

/* Mobile devices */
@media screen and (max-width: 768px) {
    .hero-slider__nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .hero-slider__nav--prev {
        left: 1rem;
    }
    
    .hero-slider__nav--next {
        right: 1rem;
    }
    
    .hero-slider__indicators {
        bottom: 6rem;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    
    .hero-slider__indicator {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }
    
    .hero-slider__indicator.active {
        width: 28px;
    }
}

/* Small mobile */
@media screen and (max-width: 480px) {
    .hero-slider__nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .hero-slider__indicators {
        bottom: 5.5rem;
    }
}

/* ===== ALTERNATIVE OVERLAY STYLES ===== */
/* Add these classes to hero-slide__overlay for different effects */

/* Dark overlay - better for bright images */
.hero-slide__overlay--dark {
    background: linear-gradient(
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.7)
    );
}

/* Light overlay - better for dark images */
.hero-slide__overlay--light {
    background: linear-gradient(
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.35)
    );
}

/* Gradient overlay - colorful */
.hero-slide__overlay--gradient {
    background: linear-gradient(
        to right,
        rgba(214, 45, 140, 0.75),
        rgba(248, 158, 59, 0.65)
    );
}

/* Minimal overlay */
.hero-slide__overlay--minimal {
    background: linear-gradient(
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.4)
    );
}

/* No overlay - use only if images are dark enough */
.hero-slide__overlay--none {
    background: none;
}

/* ===== PAUSE INDICATOR ===== */
.hero-slider--paused .hero-slider__indicators::after {
    content: '\f04c'; /* FontAwesome pause icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -2.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* ===== LOADING STATE ===== */
.hero-slide__background.loading {
    background-color: #667eea;
}

/* ===== ACCESSIBILITY ===== */
.hero-slider__nav:focus-visible,
.hero-slider__indicator:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: opacity 0.5s ease-in-out;
    }
    
    .hero-slide__background {
        animation: none !important;
    }
    
    .hero-slider__nav {
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }
}
