* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}





.carousel-container {
  width: 100%;
  max-width: 100%;
  text-align: center;
  padding-bottom: 2em;
}

h1 {
  color: var(--text-light);
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

/* Carousel wrapper */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px var(--shadow);
}

/* Slides container */
.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.1);
  animation: slideshow 100s infinite;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Auto-play animation - 20 slides, 5 seconds each = 100s total */
@keyframes slideshow {
  0% { opacity: 0; transform: scale(1.1); }
  2% { opacity: 1; transform: scale(1); }
  3% { opacity: 1; transform: scale(1); }
  5% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(1.1); }
}

/* Stagger each slide's animation */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }
.slide:nth-child(4) { animation-delay: 15s; }
.slide:nth-child(5) { animation-delay: 20s; }
.slide:nth-child(6) { animation-delay: 25s; }
.slide:nth-child(7) { animation-delay: 30s; }
.slide:nth-child(8) { animation-delay: 35s; }
.slide:nth-child(9) { animation-delay: 40s; }
.slide:nth-child(10) { animation-delay: 45s; }
.slide:nth-child(11) { animation-delay: 50s; }
.slide:nth-child(12) { animation-delay: 55s; }
.slide:nth-child(13) { animation-delay: 60s; }
.slide:nth-child(14) { animation-delay: 65s; }
.slide:nth-child(15) { animation-delay: 70s; }
.slide:nth-child(16) { animation-delay: 75s; }
.slide:nth-child(17) { animation-delay: 80s; }
.slide:nth-child(18) { animation-delay: 85s; }
.slide:nth-child(19) { animation-delay: 90s; }
.slide:nth-child(20) { animation-delay: 95s; }

/* Progress bar */
.progress-bar {
  width: 100%;
  max-width: 900px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin-top: 1.5rem;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: var(--primary);
  animation: progress 5s linear infinite;
  transform-origin: left;
}

@keyframes progress {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* Responsive design */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .carousel {
    border-radius: 12px;
  }

  .progress-bar {
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 1.5rem;
  }
}
