/* Hero Background Slideshow Animation */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: heroSlideshow 36s infinite;
}

/* Stagger the animations for each image */
.hero-slideshow img:nth-child(1) {
    animation-delay: 0s;
}

.hero-slideshow img:nth-child(2) {
    animation-delay: 6s;
}

.hero-slideshow img:nth-child(3) {
    animation-delay: 12s;
}

.hero-slideshow img:nth-child(4) {
    animation-delay: 18s;
}

.hero-slideshow img:nth-child(5) {
    animation-delay: 24s;
}

.hero-slideshow img:nth-child(6) {
    animation-delay: 30s;
}

/* Keyframe animation for smooth fade transitions */
@keyframes heroSlideshow {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    16.66% {
        opacity: 1;
    }
    21.66% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* Ensure the hero section maintains proper positioning */
#home.jarallax {
    position: relative;
    overflow: hidden;
}
