/* ===================================================
   HERO FULL-SCREEN SLIDESHOW — Luxury Cinematic Style
   Using Abdulhady taupe-charcoal-beige theme
   =================================================== */

/* Active nav indicator */
.nav-active {
  color: var(--color-accent-primary) !important;
  position: relative;
}
.nav-active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent-primary);
}

/* ===== BACKGROUND ===== */
/* WebGL shader canvas provides the background — body must be transparent */
body {
  background: transparent !important;
}

/* ===== HERO SECTION ===== */
.hero-fullscreen {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  z-index: 10;
}

/* ===== FRAMER MOTION STYLE IMAGE SLIDER ===== */
.image-slider-container {
  overflow: hidden;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  z-index: 1;
}

.image-slider-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 40;
}

.image-slide {
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
  z-index: 10;
  opacity: 0;
  transform: scale(0) rotateX(45deg);
}

.image-slide.visible {
  z-index: 20;
  animation: slideVisible 0.5s cubic-bezier(0.645, 0.045, 0.355, 1.0) forwards;
}

.image-slide.exit-up {
  z-index: 15;
  animation: slideExitUp 1s forwards;
}

.image-slide.exit-down {
  z-index: 15;
  animation: slideExitDown 1s forwards;
}

@keyframes slideVisible {
  from { transform: scale(0) rotateX(45deg); opacity: 0; }
  to { transform: scale(1) rotateX(0deg); opacity: 1; }
}

@keyframes slideExitUp {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-150%); opacity: 1; }
}

@keyframes slideExitDown {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(150%); opacity: 1; }
}

/* Dark cinematic overlay for text readability */
.hero-slideshow-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(to right, rgba(250, 250, 250, 0.6) 0%, rgba(250, 250, 250, 0.2) 50%, transparent 100%),
    linear-gradient(to top, rgba(250, 250, 250, 0.4) 0%, transparent 40%);
}

/* ===== HERO TEXT CONTENT ===== */
.hero-content {
  position: relative;
  z-index: 5;
  max-width: 620px;
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: left;
}

.hero-label {
  display: inline-block;
  color: var(--color-accent-shimmer);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 3rem;
}
.hero-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--color-accent-shimmer);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.hero-heading-accent {
  display: block;
  background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent-primary) 50%, var(--color-accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.2;
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent-primary);
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  text-transform: capitalize;
}

.hero-desc {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-charcoal-mid);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

/* ===== CTA BUTTONS ===== */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-btn-main {
  padding: 1rem 2.5rem !important;
  font-size: 0.9rem !important;
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent-primary)) !important;
  box-shadow: 0 4px 25px rgba(79, 70, 229, 0.4) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.hero-btn-main:hover {
  box-shadow: 0 6px 35px rgba(79, 70, 229, 0.6) !important;
  transform: translateY(-3px) !important;
}

.hero-btn-video {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-btn-video:hover {
  color: var(--color-teal-primary);
}

.hero-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}
.hero-btn-video:hover .hero-play-icon {
  border-color: var(--color-teal-primary);
  background: rgba(140, 186, 177, 0.15);
  box-shadow: 0 0 20px rgba(140, 186, 177, 0.3);
}

/* ===== SLIDESHOW CONTROLS ===== */
.hero-slideshow-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.slideshow-dots {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.4s ease;
}

.slideshow-dot.active {
  background: var(--color-accent-shimmer);
  box-shadow: 0 0 12px rgba(245, 232, 187, 0.7);
  transform: scale(1.4);
  border-color: var(--color-accent-light);
}

.slideshow-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
}



/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .hero-content {
    max-width: 100%;
    text-align: left;
    padding-top: 160px;
  }

  .hero-heading {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-cta-row {
    justify-content: flex-start;
  }

  .hero-slideshow-overlay {
    background:
      linear-gradient(to bottom, rgba(10, 26, 26, 0.85) 0%, rgba(10, 26, 26, 0.5) 50%, rgba(10, 26, 26, 0.85) 100%);
  }
}

@media (max-width: 768px) {
  .hero-fullscreen {
    min-height: 70vh;
  }

  .hero-content {
    padding-top: 130px;
    padding-bottom: 100px;
  }

  .hero-cta-row {
    flex-direction: column;
    gap: 1.25rem;
  }

  .slideshow-dots {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-content {
    padding-top: 110px;
    padding-bottom: 80px;
  }

  .slideshow-dots {
    bottom: 1.25rem;
    right: 1rem;
    gap: 6px;
  }

  .slideshow-dot {
    width: 7px;
    height: 7px;
  }
}
