/* Hero Slideshow - Cinematic Ken Burns Effect */

.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out;
    will-change: transform, opacity;
}

.hero-slide.active {
    opacity: 1;
    animation: kenBurns 8s ease-in-out forwards;
}

/* Ken Burns Animation - Slow zoom and pan */
@keyframes kenBurns {
    0% {
        transform: scale(1) translateX(0);
    }

    100% {
        transform: scale(1.15) translateX(-2%);
    }
}

/* Alternate animations for variety */
.hero-slide:nth-child(2).active {
    animation: kenBurns2 8s ease-in-out forwards;
}

@keyframes kenBurns2 {
    0% {
        transform: scale(1.1) translateX(-2%);
    }

    100% {
        transform: scale(1) translateX(0);
    }
}

.hero-slide:nth-child(3).active {
    animation: kenBurns3 8s ease-in-out forwards;
}

@keyframes kenBurns3 {
    0% {
        transform: scale(1) translateY(0);
    }

    100% {
        transform: scale(1.12) translateY(-3%);
    }
}

.hero-slide:nth-child(4).active {
    animation: kenBurns4 8s ease-in-out forwards;
}

@keyframes kenBurns4 {
    0% {
        transform: scale(1.1) translateY(-2%);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

.hero-slide:nth-child(5).active {
    animation: kenBurns5 8s ease-in-out forwards;
}

@keyframes kenBurns5 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.18);
    }
}

.hero-slide:nth-child(6).active {
    animation: kenBurns6 8s ease-in-out forwards;
}

@keyframes kenBurns6 {
    0% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* Overlay gradient for text readability */
.hero-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.05) 50%,
            rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Hero Media container adjustments */
.hero-media {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .hero-media {
        width: 100%;
        max-width: 100%;
        height: 300px;
        margin-top: 30px;
    }

    .hero-slideshow {
        min-height: 300px;
        border-radius: 16px;
    }
}

@media (max-width: 576px) {
    .hero-media {
        height: 250px;
    }

    .hero-slideshow {
        min-height: 250px;
        border-radius: 12px;
    }
}

/* Progress indicator dots (optional) */
.hero-slideshow-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slideshow-dot.active {
    background: white;
    transform: scale(1.3);
}