:root {
  --sage: #5c6f5b;
  --sage-dark: #435442;
  --sage-soft: #e9efe8;
  --cream: #faf7f2;
  --gold: #c5a059;
  --text-dark: #2c302e;
  --bs-body-font-family: 'Work Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background-color: #ffffff;
  scroll-behavior: smooth;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--text-dark);
  background-color: transparent; /* Wajib transparan agar foto di belakangnya terlihat */
  position: relative;
  overflow-x: hidden;
}

/* Lapisan foto latar tipis di belakang seluruh area putih */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: url('img/cover/7.1.jpg') center/cover no-repeat; /* Ganti path foto sesuai selera */
  opacity: 0.18; /* Opacity kecil (0.08 - 0.15) agar teks tetap jelas terbaca */
  z-index: -1;
  pointer-events: none;
  transform: translateZ(0);
}

body.locked {
  overflow: hidden;
  height: 100vh;
}

/* Typography & Colors */
.font-script {font-family: 'Sacramento', cursive;}
.font-script.text-sage {  font-family: 'Sacramento', cursive !important;  letter-spacing: normal;}
.font-serif {font-family: 'Work Sans', sans-serif;}
.letter-spacing-3 { letter-spacing: 3px; }
.max-w-md { max-width: 560px; }
.max-w-lg { max-width: 740px; }

.text-sage {  color: var(--sage) !important;font-family: Georgia, 'Times New Roman', serif !important; letter-spacing: 0.4px;}
.text-gold { color: var(--gold) !important; }
.bg-sage { background-color: var(--sage) !important; }
.bg-sage-soft { background-color: var(--sage-soft) !important; }
.bg-cream { background-color: var(--cream) !important; }

/* Buttons */
.btn-sage {
  background-color: var(--sage);
  color: #fff;
  border: none;
  transition: 0.3s ease;
}
.btn-sage:hover {
  background-color: var(--sage-dark);
  color: #fff;
}

.btn-outline-sage {
  border: 1px solid var(--sage);
  color: var(--sage);
  transition: 0.3s ease;
}
.btn-outline-sage:hover {
  background-color: var(--sage);
  color: #fff;
}

.btn-gold {
  background-color: var(--gold);
  color: #fff;
  border: none;
  transition: 0.3s ease;
}
.btn-gold:hover {
  background-color: #b18d47;
  color: #fff;
  transform: translateY(-2px);
}

/* Cover Section */
.cover-section {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: url('img/cover/7.1.jpg') center/cover no-repeat;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
}
.cover-section.opened {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(25, 32, 25, 0.6), rgba(20, 26, 20, 0.82));
}
.guest-box {
  max-width: 420px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Hero Main */
.hero-main {
  min-height: 100vh;
  background: linear-gradient(rgba(255, 255, 255, 0.078)),
              url('img/hero/22.jpg') center/cover no-repeat;
}


/* Memperbesar seluruh teks di dalam Hero Section */
.hero-main .hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: 4px;
}

.hero-main .hero-title {
  font-size: clamp(4.2rem, 13vw, 7.5rem); /* Ukuran besar untuk Lala & Aji */
  line-height: 1.1;
}

.hero-main .hero-date {
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  letter-spacing: 3px;
}

.hero-main .hero-subtitle,
.hero-main .hero-title,
.hero-main .hero-date {
  color: #ffffff !important;
  /* Bayangan berlapis: bayangan dekat yang tegas + pendaran lembut agar kontras di atas warna terang */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75), 
               0 4px 16px rgba(0, 0, 0, 0.55);
}

.countdown-card {
  background: #fff;
  border: 1px solid rgba(92, 111, 91, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.countdown-section {
  background-color: var(--cream);
}

/* Couple & Event */
.couple-frame {
  width: 210px;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  border: 5px solid var(--sage-soft);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.couple-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sage-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Love Story Timeline */
.timeline {
  padding-left: 26px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(92, 111, 91, 0.25);
}
.timeline-item {
  position: relative;
}
.timeline-dot {
  position: absolute;
  left: -24px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--sage);
}
.story-img {
  height: 220px;
  object-fit: cover;
  object-position: center 20%;
}


/* Gallery */
.gallery-img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 1rem;
}
.gallery-img:hover {
  transform: scale(1.03);
}

/* Tombol See more kecil dan tipis */
.story-toggle {
  font-family: 'Noto Sans', sans-serif !important;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--sage);
  letter-spacing: 0.3px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.story-toggle:hover,
.story-toggle:focus {
  color: var(--sage);
  opacity: 1;
}

.story-toggle .bi-chevron-down {
  display: inline-block;
  font-size: 0.68rem;
  transition: transform 0.25s ease;
}

/* Panah berputar ke atas saat cerita terbuka, teks tetap "See more" */
.story-toggle[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

/* Music & Bottom Nav */
.music-btn {
  position: fixed;
  right: 18px;
  bottom: 84px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  border: 2px solid #fff;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.spin {
  animation: spinDisc 5s linear infinite;
}
@keyframes spinDisc {
  100% { transform: rotate(360deg); }
}

.bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(92, 111, 91, 0.2);
  border-radius: 50px;
  padding: 8px 18px;
  display: flex;
  gap: 20px;
  z-index: 1030;
}
.bottom-nav .nav-item {
  text-decoration: none;
  color: #6c757d;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
  transition: 0.25s ease;
}
.bottom-nav .nav-item i {
  font-size: 1.1rem;
}
.bottom-nav .nav-item.active,
.bottom-nav .nav-item:hover {
  color: var(--sage);
  font-weight: 600;
}

@media (max-width: 576px) {
  .gallery-img { height: 170px; }
  .story-img { height: 190px; }
  .bottom-nav { gap: 14px; padding: 8px 14px; }
}
