/* ============================================================
   SPLASH SCREEN — Slideshow Version
   ============================================================ */

.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.splash-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ===== Slides Container ===== */
.splash-slides {
  position: absolute;
  inset: 0;
}

.splash-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

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

.splash-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 6s ease-out;
}

.splash-slide.active .splash-slide-bg {
  transform: scale(1.08);
}

.splash-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

/* ===== Konten (Judul + Subjudul) ===== */
.splash-slide-content {
  position: absolute;
  bottom: 15%;
  left: 0;
  right: 0;
  padding: 0 2rem;
  text-align: center;
  z-index: 2;
}

.splash-slide-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin: 0 auto 1rem;
  max-width: 900px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
  line-height: 1.25;
}

.splash-slide.active .splash-slide-title {
  opacity: 1;
  transform: translateY(0);
}

.splash-slide-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c9a961, transparent);
  margin: 0 auto 1rem;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.5s ease-out 0.35s, transform 0.5s ease-out 0.35s;
}

.splash-slide.active .splash-slide-line {
  opacity: 1;
  transform: scaleX(1);
}

.splash-slide-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto;
  max-width: 700px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s;
}

.splash-slide.active .splash-slide-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Indikator Titik ===== */
.splash-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

.splash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s;
}

.splash-dot:hover {
  border-color: #fff;
  transform: scale(1.2);
}

.splash-dot.active {
  background: #c9a961;
  border-color: #c9a961;
  width: 28px;
  border-radius: 5px;
  transform: none;
}

/* ===== Tombol Skip ===== */
.splash-skip {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 30;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.splash-skip:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #c9a961;
  color: #fff;
  transform: translateY(-1px);
}

/* ===== Progress Bar ===== */
.splash-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 25;
}

.splash-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #a8884a, #c9a961, #e8d5a3, #c9a961);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px rgba(201, 169, 97, 0.6);
  transition: width 0.1s linear;
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
  .splash-slide-content {
    bottom: 18%;
    padding: 0 1.25rem;
  }

  .splash-skip {
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.85rem;
  }

  .splash-dots {
    bottom: 1.5rem;
  }

  .splash-dot {
    width: 8px;
    height: 8px;
  }

  .splash-dot.active {
    width: 22px;
  }
}

/* ===== Reduce motion ===== */
@media (prefers-reduced-motion: reduce) {
  .splash-slide-bg {
    transform: none !important;
    transition: none;
  }

  .splash-slide-title,
  .splash-slide-subtitle,
  .splash-slide-line {
    transition: none;
    opacity: 1;
    transform: none;
  }
}