/* Ken Burns Animation Styles */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  overflow: hidden;
}

.ken-burns-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ken-burns-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 3s ease-in-out; /* Increased transition duration for smoother fades */
  will-change: opacity, transform; /* Performance optimization */
}

/* Active slide styling */
.ken-burns-slide.active {
  opacity: 1;
  z-index: 2; /* Ensure active slide is above others */
}

/* Slide that's fading out */
.ken-burns-slide.fade-out {
  opacity: 0;
  z-index: 1; /* Below active but above inactive slides */
}

/* Ken Burns zoom effects */
.ken-burns-slide.zoom-in {
  animation: kenBurnsZoomIn 20s linear forwards;
}

.ken-burns-slide.zoom-out {
  animation: kenBurnsZoomOut 20s linear forwards;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 800px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(135, 8, 216, 0.2);
}

@keyframes kenBurnsZoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2);
  }
}

@keyframes kenBurnsZoomOut {
  0% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
