/* Hero Section */
.hero-motion {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Hero Images */
.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: heroZoomFade 30s infinite linear; /* infinite animation */
}

/* loop for images */
.hero-image:nth-child(n) {
    animation-delay: calc(4s * (var(--i) - 1)); /* delay for every img */
}

.hero-image:nth-child(1) { --i: 1; }
.hero-image:nth-child(2) { --i: 2; }
.hero-image:nth-child(3) { --i: 3; }
.hero-image:nth-child(4) { --i: 4; }
.hero-image:nth-child(5) { --i: 5; }
.hero-image:nth-child(6) { --i: 6; }
.hero-image:nth-child(7) { --i: 7; }
.hero-image:nth-child(8) { --i: 8; }
.hero-image:nth-child(9) { --i: 9; }
.hero-image:nth-child(10) { --i: 10; }
.hero-image:nth-child(11) { --i: 11; }
.hero-image:nth-child(12) { --i: 12; }
.hero-image:nth-child(13) { --i: 13; }
.hero-image:nth-child(14) { --i: 14; }
.hero-image:nth-child(15) { --i: 15; }

/* Keyframes: Zoom + Fade */
@keyframes heroZoomFade {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    10% {
        opacity: 0.3;
        transform: scale(1.03);
    }
    20%, 80% {
        opacity: 0.3;
        transform: scale(1.08);
    }
    90% {
        opacity: 0;
        transform: scale(1.12);
    }
    100% {
        opacity: 0;
        transform: scale(1.12);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-logo {
    width: 800px;
    max-width: 100%;
    margin-bottom: 1rem;
}

.carousel__slide {
  position: relative;
}
.carousel__slide img {
  display: block;
  width: 100%;
}
.carousel__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2); /* adjust 0.2 as needed */
  pointer-events: none;
}

.hero-heading {
    font-size: 3rem;
    text-transform: uppercase;
    font-weight: bold;
    color: rgb(93 82 52);;
}

.main-heading {
    font-size: 3rem;
    text-transform: uppercase;
    font-weight: bold;
    color: rgb(93 82 52);;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-logo {
        width: 300px;
    }
    .hero-heading {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 300px;
    }
    .hero-heading {
        font-size: 1.2rem;
    }
}
