/**
 * Hero Slider Styles
 * 
 * Smooth animations and transitions for the hero slider
 */

.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #E07A5F 0%, #F4A261 50%, #E9C46A 100%);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, visibility 0s 0.8s;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, visibility 0s 0s;
}

.hero-slide.exit {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    z-index: 1;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, visibility 0s 0.6s;
}

/* Slide content animation */
.hero-slide-content {
    animation: slideContentIn 0.8s ease-out forwards;
    opacity: 0;
}

.hero-slide.active .hero-slide-content {
    animation: slideContentIn 0.8s ease-out 0.3s forwards;
}

@keyframes slideContentIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation buttons */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-slider-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero-slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-slider-prev {
    left: 20px;
}

.hero-slider-next {
    right: 20px;
}

.hero-slider-nav svg {
    color: #1a202c;
}

/* Dots navigation */
.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-slider-dot.active {
    background: rgba(255, 255, 255, 1);
    width: 32px;
    border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .hero-slider-prev {
        left: 10px;
    }
    
    .hero-slider-next {
        right: 10px;
    }
    
    .hero-slider-dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .hero-slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .hero-slider-dot.active {
        width: 24px;
    }
}

/* Ken Burns effect for background images */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-slide.active .hero-slide-bg {
    animation: kenBurns 10s ease-out forwards;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Overlay gradient */
.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

/* Responsive heights */
@media (max-width: 1024px) {
    .hero-slider,
    .hero-slide,
    .hero-slide-bg,
    .hero-slide-overlay {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .hero-slider,
    .hero-slide,
    .hero-slide-bg,
    .hero-slide-overlay {
        height: 450px;
    }
}

@media (max-width: 640px) {
    .hero-slider,
    .hero-slide,
    .hero-slide-bg,
    .hero-slide-overlay {
        height: 400px;
    }
}
