/* ============================================
   HERO CAROUSEL - PURPLE & GOLD THEME
   ============================================ */

/* Hero Section Container */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

/* Carousel Container */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Individual Slides */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

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

/* Slide Overlay - Purple Gradient for Text Readability */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(45, 0, 77, 0.85) 0%,
    rgba(75, 0, 130, 0.75) 50%,
    rgba(107, 45, 143, 0.7) 100%
  );
}

/* Hero Content - Above Carousel */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: clamp(80px, 15vw, 140px) 0;
  text-align: center;
  color: var(--white);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title span {
  color: var(--secondary);
  display: block;
  margin-top: 0.5rem;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  max-width: 750px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn {
  padding: 16px 36px;
  font-size: 0.95rem;
}

.hero .btn-primary {
  background: var(--secondary);
  color: var(--primary-dark);
  border-color: var(--secondary);
}

.hero .btn-primary:hover {
  background: transparent;
  color: var(--secondary);
}

.hero .btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.hero .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* Carousel Navigation Arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.carousel-nav:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
  left: 20px;
}

.carousel-nav.next {
  right: 20px;
}

.carousel-nav svg {
  stroke: currentColor;
}

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

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.indicator:hover {
  border-color: var(--secondary);
  background: rgba(212, 175, 55, 0.3);
}

.indicator.active {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: scale(1.2);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 20;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  stroke: rgba(255, 255, 255, 0.7);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Pause on Hover */
.hero:hover .carousel-nav {
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .carousel-nav {
    width: 40px;
    height: 40px;
  }
  
  .carousel-nav.prev {
    left: 10px;
  }
  
  .carousel-nav.next {
    right: 10px;
  }
  
  .carousel-indicators {
    bottom: 80px;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  
  .hero .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .carousel-nav {
    display: none;
  }
  
  .carousel-indicators {
    bottom: 60px;
    gap: 8px;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    padding: 0 15px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
  
  .scroll-indicator {
    animation: none;
  }
  
  .carousel-nav:hover,
  .indicator.active {
    transform: none;
  }
}

/* Loading State */
.hero-slide img {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* Ken Burns Effect (Optional Zoom) */
.hero-slide.active img {
  animation: kenBurns 20s ease-out;
}

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