/* ============================================
   HERO SLIDESHOW - Fullscreen Background Images
   Replaces video background
   ============================================ */

/* Slideshow Container */
.hero-bg-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* Individual Slides */
.slideshow-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

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

/* Ken Burns subtle zoom effect (optional) */
/* .slideshow-slide.active {
    animation: kenBurns 8s ease-in-out forwards;
} */

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

/* Pause the Ken Burns effect when slideshow is paused */
.hero-bg-slideshow.paused .slideshow-slide.active {
  animation-play-state: paused;
}

/* Slideshow Controls */
.slideshow-controls {
  position: absolute;
  bottom: 90px;
  right: 30px;
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

.slideshow-control-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.slideshow-control-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: var(--primary-color, #7c3aed);
  transform: scale(1.1);
}

.slideshow-control-btn:active {
  transform: scale(0.95);
}

.slideshow-control-btn i {
  font-size: 1rem;
  pointer-events: none;
}

/* Slide Indicators */
.slideshow-indicators {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.slideshow-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(110, 3, 60, 0.899);
  border: 2px solid rgb(255, 255, 255);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slideshow-dot.active {
  background: rgba(110, 3, 60, 0.899);
  border-color: rgba(110, 3, 60, 0.899);
  transform: scale(1.2);
}

.slideshow-dot:hover:not(.active) {
  /* background: rgba(255, 255, 255, 0.7); */
  background: rgba(110, 3, 60, 0.899);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  /* The text/button panel now sits at the bottom of the viewport, so move
       the slideshow controls and dots to the top of the image to avoid them. */
  .slideshow-controls {
    top: 20px;
    bottom: auto;
    right: 15px;
  }

  .slideshow-control-btn {
    width: 40px;
    height: 40px;
  }

  .slideshow-control-btn i {
    font-size: 0.9rem;
  }

  .slideshow-indicators {
    top: 30px;
    bottom: auto;
    gap: 10px;
  }

  .slideshow-dot {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .slideshow-controls {
    top: 20px;
    bottom: auto;
    right: 10px;
    gap: 0.4rem;
  }

  .slideshow-control-btn {
    width: 36px;
    height: 36px;
  }

  .slideshow-indicators {
    top: 30px;
    bottom: auto;
    gap: 8px;
  }

  .slideshow-dot {
    width: 8px;
    height: 8px;
  }
}

/* ==================== ALTERNATIVE TRANSITIONS ==================== */

/* Option: Slide transition (uncomment to use instead of fade) */
/*
.slideshow-slide {
    opacity: 1;
    transform: translateX(100%);
    transition: transform 0.8s ease-in-out;
}

.slideshow-slide.active {
    transform: translateX(0);
}

.slideshow-slide.prev {
    transform: translateX(-100%);
}
*/

/* Option: Zoom fade transition */
/*
.slideshow-slide {
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.slideshow-slide.active {
    opacity: 1;
    transform: scale(1);
}
*/
