/* ===================================
   Slideshow Section - Visual Proof
   =================================== */

#slideshow {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 700px;
  overflow: hidden;
  background-color: var(--color-bg-subtle);
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slideshow Images */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: var(--z-base);
}

.slide.active {
  opacity: 1;
  z-index: calc(var(--z-base) + 1);
}

.slide picture {
  width: 100%;
  height: 100%;
  display: block;
}

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

/* Subtle parallax effect on active slide */
.slide.active img {
  animation: subtleParallax 20s ease-in-out infinite alternate;
}

@keyframes subtleParallax {
  from {
    transform: scale(1.05) translateY(0);
  }
  to {
    transform: scale(1.05) translateY(-10px);
  }
}

/* Navigation Dots */
.slideshow-dots {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-3);
  z-index: calc(var(--z-base) + 2);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all var(--transition-base);
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.dot.active {
  background-color: rgba(255, 255, 255, 0.95);
  width: 24px;
  border-radius: 4px;
}

/* Pause/Play indicator (optional, subtle) */
.slideshow-container:hover .slide.active img {
  animation-play-state: paused;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
  #slideshow {
    height: 70vh;
    max-height: 800px;
  }

  .slideshow-dots {
    bottom: var(--space-8);
  }

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

  .dot.active {
    width: 28px;
  }
}

@media (min-width: 1024px) {
  #slideshow {
    height: 75vh;
    max-height: 900px;
  }
}

/* Loading state for images */
.slide img[loading="lazy"] {
  background-color: var(--color-bg-subtle);
}
