/* ============================================
   Hero Carousel
   ============================================ */
.hero {
  position: relative; width: 100%;
  aspect-ratio: 1920 / 756;
  overflow: hidden; background: #111827;
}
.hero-carousel { position: absolute; inset: 0; }
.carousel-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.6s ease;
  z-index: 1;
}
.carousel-slide.active { opacity: 1; z-index: 2; }

.carousel-slide.c1 { background-image: url("../images/hero/slide-1.jpg"); }
.carousel-slide.c2 { background-image: url("../images/hero/slide-2.jpg"); }
.carousel-slide.c3 { background-image: url("../images/hero/slide-3.jpg"); }
.carousel-slide.c4 { background-image: url("../images/hero/slide-4.jpg"); }
.carousel-slide.c5 { background-image: url("../images/hero/slide-5.jpg"); }

/* Dark overlay on each slide */
.carousel-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.15) 0%, rgba(15,23,42,0.05) 100%);
  z-index: 1;
}

/* Text content */
.slide-content {
  position: absolute; z-index: 2;
  bottom: 80px; left: 60px;
  max-width: 600px;
}
.slide-title {
  font-size: 3.5rem; font-weight: 800; color: #fff;
  line-height: 1.2; margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  transform: translateX(100%); opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.carousel-slide.active .slide-title {
  transform: translateX(0); opacity: 1;
}
.slide-desc {
  font-size: 1.35rem; color: rgba(255,255,255,0.85);
  line-height: 1.7; max-width: 500px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
  transform: translateX(-100%); opacity: 0;
  transition: transform 0.5s ease 0.1s, opacity 0.5s ease 0.1s;
}
.carousel-slide.active .slide-desc {
  transform: translateX(0); opacity: 1;
}

/* Dot navigation */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}
.hero-dot.active {
  background: #fff;
  width: 32px;
  border-radius: 6px;
}
.hero-dot:hover {
  background: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
  .slide-content { bottom: 40px; left: 20px; max-width: 90%; }
  .slide-title { font-size: 2.2rem; }
  .slide-desc { font-size: 1.1rem; }
  .hero { aspect-ratio: 1920 / 756; }
}
