/* ==================== IMAGE CAROUSEL STYLES ==================== */

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 3rem;
  z-index: 2;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 60%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.carousel-slide.active {
  opacity: 1;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-video-fullscreen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  border-radius: inherit;
}

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

.carousel-control:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

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

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  transform: scale(1.3);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Feature Images */
.feature-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-image {
  transform: scale(1.05);
}

/* Service Card Images */
.service-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card-modern:hover .service-card-image img {
  transform: scale(1.08);
}

/* Testimonial Images */
.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 3px solid var(--color-accent);
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stats Background Image */
.stats-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.stats-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

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

  .carousel-prev {
    left: 0.5rem;
  }

  .carousel-next {
    right: 0.5rem;
  }

  .carousel-indicators {
    bottom: 1rem;
    gap: 0.5rem;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  .service-card-image {
    height: 200px;
  }

  .feature-image-wrapper {
    height: 150px;
  }
}
