/* ========================================
   Hero Carousel Styles
   ======================================== */

.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 600px;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Carousel Caption */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  padding: 4rem 0 3rem;
  color: white;
  z-index: 10;
}

.carousel-caption h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Carousel Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.3);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 20;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.carousel-control:hover {
  background: rgba(255,255,255,0.5);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

.carousel-control span {
  line-height: 1;
  margin-top: -5px;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-indicators button:hover {
  background: rgba(255,255,255,0.6);
  transform: scale(1.2);
}

.carousel-indicators button.active {
  background: white;
  transform: scale(1.3);
}

/* Responsive Carousel */
@media (max-width: 992px) {
  .carousel-container {
    height: 500px;
  }

  .carousel-caption h2 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1.1rem;
  }

  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .carousel-control.prev {
    left: 10px;
  }

  .carousel-control.next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .carousel-container {
    height: 400px;
  }

  .carousel-caption {
    padding: 2rem 0 2rem;
  }

  .carousel-caption h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .carousel-caption p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .carousel-control {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }

  .carousel-indicators {
    bottom: 10px;
  }

  .carousel-indicators button {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    height: 300px;
  }

  .carousel-caption h2 {
    font-size: 1.25rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
    display: none; /* Hide description on very small screens */
  }

  .carousel-caption .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Animation Effects */
@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Optional: Add slide animation for caption */
.carousel-slide.active .carousel-caption h2 {
  animation: slideInFromLeft 0.8s ease-out;
}

.carousel-slide.active .carousel-caption p {
  animation: slideInFromRight 0.8s ease-out 0.2s both;
}

.carousel-slide.active .carousel-caption .btn {
  animation: slideInFromLeft 0.8s ease-out 0.4s both;
}
