/**
 * Carousel Styles
 * Hero carousel animation and controls
 */

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #1a1a2e; /* Fallback background to prevent white flash */
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

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

/* Ensure smooth image rendering */
.carousel-slide img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.carousel-nav {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.carousel-indicators {
  display: flex;
  gap: 0.5rem;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-indicator.active {
  background: white;
}

.prev-slide,
.next-slide {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
}

.prev-slide {
  left: 1.5rem;
}

.next-slide {
  right: 1.5rem;
}

.prev-slide:hover,
.next-slide:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .carousel-container {
    min-height: 100vh;
    min-height: 100dvh;
  }
  
  .prev-slide,
  .next-slide {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .prev-slide {
    left: 1rem;
  }
  
  .next-slide {
    right: 1rem;
  }
}

@media (max-width: 767.98px) {
  .carousel-container {
    min-height: 100svh;
  }
  
  .carousel-nav {
    bottom: 1.5rem;
  }
  
  .prev-slide,
  .next-slide {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .prev-slide {
    left: 0.75rem;
  }
  
  .next-slide {
    right: 0.75rem;
  }
  
  .carousel-indicator {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 575.98px) {
  .prev-slide,
  .next-slide {
    width: 32px;
    height: 32px;
    top: auto;
    bottom: 1.5rem;
    transform: none;
  }
  
  .prev-slide {
    left: 0.5rem;
  }
  
  .next-slide {
    right: 0.5rem;
  }
}

/* Landscape mobile fix */
@media (max-height: 500px) and (orientation: landscape) {
  .carousel-container {
    min-height: auto;
    height: auto;
  }
}



