/* ==========================================================================
   HOMEPAGE CINEMATIC HERO SLIDER STYLES
   Geminy Tourist Home — Thodupuzha, Idukki
   ========================================================================== */

.hero-slider-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  max-height: 1000px;
  background-color: #121413;
  overflow: hidden;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1000ms cubic-bezier(0.4, 0, 0.2, 1),
              visibility 1000ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

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

/* Background Image with Cinematic Ken-Burns subtle motion */
.hero-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 7000ms ease-out;
}

.hero-slide.active .hero-slide__bg {
  transform: scale(1);
}

/* Slide 1: Hotel Exterior — Focus center */
.hero-slide--1 .hero-slide__bg {
  object-position: center 35%;
}

/* Slide 2: Luxury Room Suite — Focus center */
.hero-slide--2 .hero-slide__bg {
  object-position: center center;
}

/* Slide 3: Multi-cuisine Restaurant — Focus center */
.hero-slide--3 .hero-slide__bg {
  object-position: center center;
}

/* Gradient Readability Overlay — Balanced Luxury Vignette with Clear Text Contrast */
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 16, 15, 0.65) 0%,
    rgba(14, 16, 15, 0.38) 25%,
    rgba(14, 16, 15, 0.42) 65%,
    rgba(14, 16, 15, 0.72) 100%
  ),
  radial-gradient(
    ellipse at center,
    rgba(14, 16, 15, 0.20) 0%,
    rgba(14, 16, 15, 0.55) 100%
  );
  z-index: 2;
}

/* Responsive Content Alignment — Perfectly Centered */
.hero-slide__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 5rem;
}

.hero-slide__eyebrow {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms ease 300ms, transform 800ms ease 300ms;
}

.hero-slide__title {
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 1.25rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 800ms ease 450ms, transform 800ms ease 450ms;
}

.hero-slide__desc {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.8;
  color: rgba(247, 245, 240, 0.96);
  text-align: center;
  margin-bottom: 2.25rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 800ms ease 600ms, transform 800ms ease 600ms;
}

.hero-slide__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms ease 750ms, transform 800ms ease 750ms;
}

.hero-slide__actions .btn-primary {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(184, 151, 100, 0.4);
}

.hero-slide__actions .btn-outline-gold {
  background-color: rgba(18, 20, 19, 0.65);
  border: 1.5px solid var(--color-gold-rich);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.hero-slide__actions .btn-outline-gold:hover {
  background-color: var(--color-gold-rich);
  color: #FFFFFF;
}

/* Animate in active slide content */
.hero-slide.active .hero-slide__eyebrow,
.hero-slide.active .hero-slide__title,
.hero-slide.active .hero-slide__desc,
.hero-slide.active .hero-slide__actions {
  opacity: 1;
  transform: translateY(0);
}

/* Slider Controls: Arrows */
.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(18, 20, 19, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  z-index: 10;
  transition: all 0.3s ease;
}

.hero-nav-arrow:hover {
  background: var(--color-gold-rich);
  border-color: var(--color-gold-rich);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.06);
}

.hero-nav-arrow--prev {
  left: clamp(1rem, 3vw, 2.5rem);
}

.hero-nav-arrow--next {
  right: clamp(1rem, 3vw, 2.5rem);
}

.hero-nav-arrow svg {
  width: 22px;
  height: 22px;
}

/* Slider Indicators: Dots & Line */
.hero-indicators-wrap {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 3rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-indicator-dot {
  position: relative;
  width: 48px;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-indicator-dot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--color-gold-light);
  transition: width 0.3s ease;
}

.hero-indicator-dot.active {
  background: rgba(255, 255, 255, 0.45);
}

.hero-indicator-dot.active::after {
  width: 100%;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: opacity 0.01ms !important;
  }
  .hero-slide__bg {
    transform: none !important;
    transition: none !important;
  }
  .hero-slide__eyebrow,
  .hero-slide__title,
  .hero-slide__desc,
  .hero-slide__actions {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 768px) {
  .hero-slider-section {
    min-height: 580px;
  }

  .hero-slide__content {
    padding-top: 5.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-slide__eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    gap: 0.5rem;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    margin-bottom: 1rem;
  }

  .hero-slide__eyebrow::before,
  .hero-slide__eyebrow::after {
    width: 16px;
    flex-shrink: 0;
  }

  .hero-slide__title {
    font-size: clamp(1.85rem, 7.5vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-slide__desc {
    font-size: clamp(0.9rem, 2.8vw, 1rem);
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 100%;
  }

  .hero-nav-arrow {
    display: none;
  }

  .hero-indicators-wrap {
    bottom: 1.5rem;
  }

  .hero-indicator-dot {
    width: 32px;
  }
}

@media (max-width: 540px) {
  .hero-slide__actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-slide__actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
  }
}
