/* =====================================================
   WEDDING INVITATION - WAYANG JAVANESE THEME
   Mobile-First Design | Gold, Cream, Brown Palette
   ===================================================== */

/* ---- CSS VARIABLES ---- */
:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-lighter: #f5dfa0;
  --gold-dark: #8a6a1a;
  --cream: #fdf5e6;
  --cream-dark: #f5e6c8;
  --cream-deeper: #eddcb0;
  --brown: #4a2c0a;
  --brown-light: #7a4f20;
  --brown-dark: #2c1a06;
  --black: #1a1008;
  --white: #fff;
  --overlay-dark: rgba(26, 16, 8, 0.72);
  --overlay-medium: rgba(26, 16, 8, 0.5);
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-body: "Montserrat", sans-serif;
  --transition: 0.35s ease;
  --shadow: 0 6px 28px rgba(0, 0, 0, 0.16);
  --shadow-gold: 0 4px 22px rgba(201, 168, 76, 0.35);
  --shadow-card: 0 2px 16px rgba(44, 26, 6, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 480px;
}

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  background: var(--brown-dark);
  color: var(--brown);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ---- UTILITY ---- */
.hidden {
  display: none !important;
}

/* AOS smooth override */
[data-aos] {
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
[data-aos="fade-up"] {
  transform: translateY(32px);
}
[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}
[data-aos="fade-right"] {
  transform: translateX(-32px);
}
[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}
[data-aos="fade-left"] {
  transform: translateX(32px);
}
[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}
.section-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.section-label.light {
  color: var(--gold-lighter);
}
.section-desc {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--brown-light);
  line-height: 1.8;
  text-align: center;
  font-style: italic;
}
.section-desc.light {
  color: #d4bc90;
}
.divider-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 16px;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.divider-gold::before,
.divider-gold::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 40%, transparent);
}
.divider-light {
  color: var(--gold-light);
}
.divider-light::before,
.divider-light::after {
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-light) 40%,
    transparent
  );
}

/* =====================================================
   COVER SECTION
   ===================================================== */
#cover-section {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
#cover-section.fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

/* Batik/Gunungan background */
.cover-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--cream);
}

/* Subtle batik texture over cream */
.cover-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/Background_Utama.png") center/cover no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

/* Couple photo at top of cover */
.cover-photo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: url("../img/couples/cover.jpg") center top/cover no-repeat;
  z-index: 1;
  background-color: var(--brown);
}
.cover-photo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(253, 245, 230, 0.45) 38%,
    var(--cream) 100%
  );
  pointer-events: none;
}

/* Gunungan ornament — above text in cover */
.cover-ornament-top {
  position: relative;
  width: 72px;
  height: 88px;
  background: url("../img/GUNUNGAN-WAYANG-01-1-1.webp") top center/contain
    no-repeat;
  pointer-events: none;
  margin-bottom: 10px;
  flex-shrink: 0;
}

/* Wayang character - bottom-left like reference */
.wayang-char {
  position: absolute;
  bottom: -110px;
  left: -32px;
  width: 220px;
  height: 340px;
  background: url("../img/wayang-01-1-e1721622506335.webp") bottom
    center/contain no-repeat;
  filter: drop-shadow(2px 4px 12px rgba(74, 44, 10, 0.18));
  pointer-events: none;
  z-index: 3;
  animation: wayangBobCover 4s ease-in-out infinite;
}

/* Awan bawah cover */
.cover-awan-bottom {
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  width: 100%;
  height: 190px;
  background: url("../img/Awan-WY2-e1721637100764.png") bottom center/cover
    no-repeat;
  pointer-events: none;
  z-index: 4;
  animation: awanRise 6s ease-in-out infinite;
  transform-origin: bottom center;
}

/* Cover content — starts from middle of cream area, gunungan inside */
.cover-content {
  position: absolute;
  z-index: 6;
  text-align: center;
  padding: 0 32px;
  width: 100%;
  max-width: var(--max-width);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cover-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 8px;
}
.cover-names {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--brown);
  margin-bottom: 10px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.cover-guest-label {
  font-size: 0.7rem;
  color: var(--brown-light);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.cover-guest-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--brown);
  margin-bottom: 22px;
  font-style: italic;
}

/* Open button */
.btn-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brown);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 40px;
  border: 2px solid var(--brown-light);
  box-shadow: 0 4px 20px rgba(74, 44, 10, 0.25);
  transition: all var(--transition);
  animation: pulse-gold 2.5s ease-in-out infinite;
}
.btn-open:hover {
  transform: translateY(-2px);
  background: var(--brown-dark);
  box-shadow: 0 6px 28px rgba(74, 44, 10, 0.4);
}

/* Cover bottom nav decoration */
.cover-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  padding: 10px 16px 16px;
  color: rgba(74, 44, 10, 0.3);
  font-size: 1rem;
}

/* =====================================================
   MAIN CONTENT WRAPPER
   ===================================================== */
#main-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--cream);
  min-height: 100vh;
  overflow: hidden;
  animation: fadeInMain 0.8s ease forwards;
}
@keyframes fadeInMain {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   BOTTOM NAVIGATION
   ===================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: var(--max-width);
  background: rgba(74, 44, 10, 0.97);
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 900;
  padding: 8px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  border-radius: 18px 18px 0 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bottom-nav.visible {
  transform: translateX(-50%) translateY(0);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(201, 168, 76, 0.45);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
  padding: 4px 10px;
}
.nav-item i {
  font-size: 1rem;
}
.nav-item.active,
.nav-item:hover {
  color: var(--gold);
}

/* =====================================================
   HERO / SAVE THE DATE SECTION
   ===================================================== */
.section-hero {
  position: relative;
  min-height: 100vh; /* fallback */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  overflow: hidden;
  padding: 24px 24px calc(136px + env(safe-area-inset-bottom, 0px));
}

/* Gunungan — top center, webp sudah coklat, no filter */
.hero-gunungan {
  position: absolute;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  width: 168px;
  height: 246px;
  background: url("../img/Gunungan-WY-01.webp") top center/contain no-repeat;
  pointer-events: none;
  z-index: 2;
  animation: gunungHeartbeat 4s ease-in-out infinite;
  transform-origin: center bottom;
}

/* Awan base */
.hero-awan {
  position: absolute;
  background: url("../img/Awan-WY-03-e1721622687789.webp") center/contain
    no-repeat;
  pointer-events: none;
  z-index: 2;
  opacity: 0.78;
}
.hero-awan--kiri-atas {
  width: 145px;
  height: 96px;
  top: 42px;
  left: -24px;
  animation: floatAwan1 8s ease-in-out infinite;
}
.hero-awan--kanan-atas {
  width: 136px;
  height: 90px;
  top: 46px;
  right: -20px;
  transform: scaleX(-1);
  animation: floatAwan2 9s ease-in-out infinite 1.5s;
}
/* Kanan bawah pakai Awan-WY-03 (multi-cloud) */
.hero-awan--kanan-bawah {
  width: 165px;
  height: 108px;
  bottom: 138px;
  right: -20px;
  background-image: url("../img/Awan-WY-03-e1721622687789.webp");
  transform: scaleX(-1);
  animation: floatAwan2 10s ease-in-out infinite 0.8s;
  opacity: 0.72;
}

/* Center text block */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 20px;
  margin-top: clamp(178px, 30vh, 270px);
}
.hero-label {
  font-family: var(--font-heading);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 6px;
}
.hero-names {
  font-family: var(--font-script);
  font-size: clamp(2.7rem, 12vw, 3.25rem);
  font-weight: 400;
  color: var(--brown);
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}
.hero-names span {
  font-style: normal;
  font-weight: 400;
}

/* Divider: dua garis + kotak berlian tengah */
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px auto 10px;
}
.hero-divider::before,
.hero-divider::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--brown-light);
  opacity: 0.65;
}
.hero-divider-dot {
  width: 5px;
  height: 5px;
  background: var(--brown-light);
  transform: rotate(45deg);
  opacity: 0.75;
  flex-shrink: 0;
}

.hero-date {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.btn-savedate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brown);
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 10px 28px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 6px 18px rgba(74, 44, 10, 0.24);
  text-decoration: none;
  transition: all var(--transition);
}
.btn-savedate:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(74, 44, 10, 0.45);
}

/* Awan bawah full-width — border bawah section hero */
.hero-awan-bottom {
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  width: 100%;
  height: 128px;
  background: url("../img/Awan-WY2-e1721637100764.png") bottom center/cover
    no-repeat;
  pointer-events: none;
  z-index: 4;
  animation: awanRise 6s ease-in-out infinite 1s;
  transform-origin: bottom center;
}

/* Wayang — bottom-left, webp baru full colour */
.hero-wayang {
  position: absolute;
  bottom: -64px;
  left: -24px;
  width: 216px;
  height: 320px;
  background: url("../img/wayang-01-1-e1721622506335.webp") bottom
    center/contain no-repeat;
  filter: drop-shadow(2px 4px 14px rgba(74, 44, 10, 0.15));
  pointer-events: none;
  z-index: 3;
  animation: wayangBob 4s ease-in-out infinite 0.8s;
}

/* =====================================================
   COUPLE SECTION
   ===================================================== */
.section-couple {
  position: relative;
  background: transparent;
  padding: 110px 24px 56px;
  text-align: center;
}
.couple-bg {
  position: absolute;
  inset: 0;
  background: url("../img/Background_Utama.png") center/cover no-repeat;
  pointer-events: none;
}
/* Soft warm tint over background for readability */
.couple-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(253, 245, 230, 0.55);
  pointer-events: none;
}
.couple-ornament-top {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  height: 70px;
  background: url("../img/GUNUNGAN-WAYANG-01-1-1.webp") top center/contain
    no-repeat;
  opacity: 0.65;
  pointer-events: none;
  filter: sepia(0.5) saturate(1.2) brightness(0.8);
  z-index: 2;
}

.couple-inner {
  position: relative;
  z-index: 1;
  margin-bottom: 36px;
}
.couple-intro {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--brown-light);
  line-height: 1.9;
  font-style: italic;
  max-width: 340px;
  margin: 0 auto;
}

/* Bride & Groom grid */
.bride-groom-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 20px;
  background: transparent;
  border-radius: var(--radius);
  width: 100%;
  max-width: 300px;
}
.person-photo-wrap {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  width: 240px;
  height: 190px;
  margin-bottom: 20px;
}
.person-photo {
  width: 120px;
  height: 160px;
  border-radius: 6px;
  background: var(--cream-dark) center top/cover no-repeat;
  border: 4px solid var(--gold);
  box-shadow:
    0 0 0 5px rgba(201, 168, 76, 0.15),
    0 10px 30px rgba(74, 44, 10, 0.25);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.bride-photo {
  background-image: url("../img/couples/bride.jpg");
}
.groom-photo {
  background-image: url("../img/couples/groom.jpg");
}

/* ---- Gunungan flanking decoration ---- */
@keyframes gunungan-pendulum-kiri {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-18deg);
  }
}
@keyframes gunungan-pendulum-kanan {
  0%,
  100% {
    transform: scaleX(-1) rotate(0deg);
  }
  50% {
    transform: scaleX(-1) rotate(-18deg);
  }
}
.photo-gunungan {
  width: 72px;
  height: 210px;
  background: url("../img/GUNUNGAN-WAYANG-01-1-1.webp") bottom center/contain
    no-repeat;
  flex-shrink: 0;
  transform-origin: bottom center;
  z-index: 1;
  margin: 0 -36px;
  opacity: 0.88;
}
.photo-gunungan--kiri {
  animation: gunungan-pendulum-kiri 4s ease-in-out infinite;
}
.photo-gunungan--kanan {
  transform: scaleX(-1);
  animation: gunungan-pendulum-kanan 4s ease-in-out infinite 1.1s;
}
.person-name {
  font-family: var(--font-script);
  font-size: clamp(1.2rem, 4vw, 2.1rem);
  color: var(--brown);
  margin-bottom: 6px;
  line-height: 1.2;
  white-space: nowrap;
}
.person-parent {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--brown-light);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 14px;
  font-style: italic;
}
.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(
    135deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 7px 20px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  transition:
    opacity var(--transition),
    transform var(--transition);
  box-shadow: 0 2px 10px rgba(220, 39, 67, 0.3);
}
.btn-instagram:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.ampersand-wrap {
  position: relative;
  z-index: 2;
  padding: 4px 0;
}
.ampersand {
  font-family: var(--font-script);
  font-size: 4.5rem;
  color: var(--gold);
  display: block;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(201, 168, 76, 0.45);
}

/* Quran verse */
.quran-verse {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  padding: 28px 24px;
  background: linear-gradient(145deg, var(--brown-dark) 0%, #3d1c05 100%);
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(201, 168, 76, 0.3);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(201, 168, 76, 0.08);
  overflow: hidden;
}
/* Gold shimmer line sweep */
.quran-verse::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(201, 168, 76, 0.12) 50%,
    transparent 100%
  );
  pointer-events: none;
}
/* Reveal animation triggered by AOS */
@keyframes verse-unfold {
  0% {
    opacity: 0;
    transform: scaleX(0.88) translateY(20px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: scaleX(1) translateY(0);
    filter: blur(0);
  }
}
@keyframes shimmer-sweep {
  0% {
    left: -100%;
  }
  100% {
    left: 140%;
  }
}
[data-aos="verse-in"] {
  opacity: 0;
  transform: scaleX(0.88) translateY(20px);
  filter: blur(4px);
  transition: none;
}
[data-aos="verse-in"].aos-animate {
  animation: verse-unfold 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
[data-aos="verse-in"].aos-animate::before {
  animation: shimmer-sweep 1.6s ease 0.8s forwards;
}
.verse-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--cream);
  font-style: italic;
  line-height: 1.85;
  margin-bottom: 10px;
}
.verse-source {
  font-size: 0.68rem;
  color: var(--gold-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

/* =====================================================
   LOVE STORY / TIMELINE
   ===================================================== */
.section-story {
  position: relative;
  background: var(--cream);
  padding: 56px 24px 64px;
  text-align: center;
  overflow: hidden;
}
.section-story::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(253, 245, 230, 0.55);
  pointer-events: none;
}
.section-header {
  position: relative;
  margin-bottom: 36px;
}

/* Story title pill box */
.story-title-box {
  display: inline-block;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
  border: 2px solid rgba(201, 168, 76, 0.5);
  border-radius: 50px;
  padding: 10px 36px;
  box-shadow: 0 4px 18px rgba(74, 44, 10, 0.22);
}
.story-title-script {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--cream);
  line-height: 1;
  margin: 0;
}

/* Story items */
.story-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0 8px;
}
.story-photo {
  width: calc(100% - 16px);
  max-width: 380px;
  height: 260px;
  border-radius: 12px;
  background: var(--cream-dark) center/cover no-repeat;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 32px rgba(74, 44, 10, 0.18);
  margin-bottom: 20px;
}
.story-photo--1 {
  background-image: url("../img/couples/story-1.jpg");
}
.story-photo--2 {
  background-image: url("../img/couples/story-2.jpg");
}
.story-photo--3 {
  background-image: url("../img/couples/story-3.jpg");
}
.story-item-title {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--brown);
  margin-bottom: 4px;
  line-height: 1.2;
}
.story-item-year {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.story-divider {
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 16px;
}
.story-item-desc {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--brown-light);
  line-height: 1.85;
  font-style: italic;
  text-align: center;
  max-width: 360px;
}

/* =====================================================
   COUNTDOWN SECTION
   ===================================================== */
.section-countdown {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 72px 24px;
  text-align: center;
}
.countdown-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(26, 16, 8, 0.9) 0%,
      rgba(44, 26, 6, 0.94) 100%
    ),
    url("../img/Background_Utama.png") center/cover no-repeat;
}
.countdown-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(201, 168, 76, 0.05) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.countdown-wayang {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 200px;
  height: 280px;
  background: url("../img/wayang2.png") bottom center/contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}
.countdown-inner {
  position: relative;
  z-index: 1;
}
.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 16px;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 4px 6px;
}
.countdown-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-lighter);
  line-height: 1;
  text-shadow: 0 2px 16px rgba(201, 168, 76, 0.5);
}
.countdown-label {
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}
.countdown-sep {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  padding-bottom: 16px;
}
.countdown-date {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--cream-dark);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* =====================================================
   EVENT SECTION
   ===================================================== */
.section-event {
  position: relative;
  background: url("../img/Background_Utama.png") center/cover no-repeat;
  padding: 64px 24px 56px;
  text-align: center;
  overflow: hidden;
}
/* Soft warm tint */
.section-event::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(253, 245, 230, 0.55);
  pointer-events: none;
}
.event-live {
  margin-bottom: 16px;
}
.event-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.event-card {
  position: relative;
  background: linear-gradient(160deg, #2e160a 0%, var(--brown-dark) 100%);
  border-radius: var(--radius);
  padding: 22px 14px 20px;
  text-align: center;
  border: 1px solid rgba(201, 168, 76, 0.3);
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(201, 168, 76, 0.08);
}
.live-card {
  max-width: 300px;
  margin: 0 auto 16px;
}
.event-card-ornament {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M60 0 Q30 30 0 60' fill='none' stroke='%23c9a84c' stroke-width='1' opacity='0.3'/%3E%3Cpath d='M60 20 Q40 40 20 60' fill='none' stroke='%23c9a84c' stroke-width='0.7' opacity='0.2'/%3E%3C/svg%3E")
    top right/contain no-repeat;
}
.event-icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.event-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-lighter);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.event-date,
.event-time,
.event-location {
  font-size: 0.72rem;
  color: #c8b08a;
  line-height: 1.6;
  margin-bottom: 4px;
}
.event-time i,
.event-location i {
  color: var(--gold);
  margin-right: 4px;
}
.btn-event {
  display: inline-block;
  margin-top: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 20px;
  transition: opacity var(--transition);
}
.btn-event:hover {
  opacity: 0.85;
}
.maps-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(201, 168, 76, 0.3);
  box-shadow: var(--shadow);
}
.maps-wrap iframe {
  display: block;
}

/* =====================================================
   GALLERY SECTION
   ===================================================== */
.section-gallery {
  background: var(--brown);
  padding: 48px 12px 52px;
  text-align: center;
}

/* Title pill — same style as story */
.gallery-title-box {
  display: inline-block;
  background: rgba(253, 245, 230, 0.12);
  border: 2px solid rgba(201, 168, 76, 0.55);
  border-radius: 50px;
  padding: 10px 36px;
  margin-bottom: 24px;
}
.gallery-title-script {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--cream);
  line-height: 1;
  margin: 0;
}

/* 2-column mosaic grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 150px;
  gap: 6px;
  padding: 0 2px;
}
.gallery-item {
  overflow: hidden;
  border-radius: 6px;
}
.gi-h1 {
  grid-row: span 1;
}
.gi-h2 {
  grid-row: span 2;
}

/* Gallery item scroll-in animation */
[data-aos="gallery-in"] {
  opacity: 0;
  transform: scale(0.88) translateY(24px);
  filter: blur(5px);
  transition-property: opacity, transform, filter;
}
[data-aos="gallery-in"].aos-animate {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s ease;
}
.gallery-img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: var(--brown-dark) center/cover no-repeat;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.gallery-img:hover {
  transform: scale(1.04);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: white;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.15);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* =====================================================
   GIFT / AMPLOP DIGITAL
   ===================================================== */
.section-gift {
  position: relative;
  background: url("../img/Background_Utama.png") center/cover no-repeat;
  padding: 64px 24px 56px;
  text-align: center;
  overflow: hidden;
}
.section-gift::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(253, 245, 230, 0.72);
  pointer-events: none;
}
/* Title pill */
.gift-title-box {
  display: inline-block;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
  border: 2px solid rgba(201, 168, 76, 0.45);
  border-radius: 50px;
  padding: 10px 40px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(74, 44, 10, 0.2);
}
.gift-title-script {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--cream);
  line-height: 1;
  margin: 0;
}
.gift-intro {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--brown-light);
  line-height: 1.75;
  font-style: italic;
  margin: 0 auto;
  max-width: 340px;
}

/* Tombol Kirim Hadiah */
.btn-gift {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 100%);
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(74, 44, 10, 0.3);
  transition: all var(--transition);
  margin-top: 24px;
  border: none;
  cursor: pointer;
}
.btn-gift:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(74, 44, 10, 0.4);
}
.btn-gift:active {
  transform: scale(0.97);
  box-shadow: 0 3px 12px rgba(74, 44, 10, 0.28);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

/* Cards wrapper — controlled entirely by GSAP */
.gift-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
  overflow: hidden;
  height: 0;
  opacity: 0;
  visibility: hidden;
}

/* ATM Card style */
.atm-card {
  position: relative;
  border-radius: 16px;
  padding: 20px 24px 18px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  aspect-ratio: 1.586 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}
.atm-card--bca {
  background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 60%, #d0d8e8 100%);
}
.atm-card--dana {
  background: linear-gradient(135deg, #e8f0f8 0%, #f5f8ff 60%, #ddeaf8 100%);
}
.atm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.atm-chip {
  width: 36px;
  height: 28px;
  background: linear-gradient(135deg, #d4a843 0%, #f0c85a 50%, #b8882a 100%);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(120, 80, 0, 0.5);
}
.atm-bank-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #005bac;
  font-weight: 800;
  font-size: 1rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}
.atm-bank-logo--dana {
  color: #118dea;
}
.atm-number {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #333;
  margin-bottom: 14px;
  font-family: var(--font-body);
}
.atm-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.atm-holder {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #555;
}
.btn-atm-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  color: #555;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-atm-copy:hover {
  background: rgba(0, 0, 0, 0.15);
}

/* Gift delivery card */
.gift-delivery-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}
.gift-delivery-icon {
  font-size: 1.8rem;
  color: var(--brown);
  margin-bottom: 6px;
}
.gift-delivery-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 10px;
}
.gift-delivery-info {
  font-size: 0.82rem;
  color: var(--brown-light);
  line-height: 1.9;
  font-family: var(--font-heading);
}

/* =====================================================
   RSVP SECTION
   ===================================================== */
.section-rsvp {
  position: relative;
  padding: 72px 24px 88px;
  text-align: center;
  overflow: hidden;
}
.rsvp-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(26, 16, 8, 0.9) 0%,
      rgba(44, 26, 6, 0.95) 100%
    ),
    url("../img/Background_Utama.png") center/cover no-repeat;
}
.rsvp-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 80%,
    rgba(201, 168, 76, 0.04) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.rsvp-stats {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}
.rsvp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.68rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rsvp-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.form-group {
  width: 100%;
}
.rsvp-form input[type="text"],
.rsvp-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.83rem;
  outline: none;
  transition: border-color var(--transition);
}
.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
  color: rgba(201, 168, 76, 0.4);
}
.rsvp-form input:focus,
.rsvp-form textarea:focus {
  border-color: var(--gold);
}
.attendance-group {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cream);
  font-size: 0.8rem;
  cursor: pointer;
}
.radio-label input[type="radio"] {
  accent-color: var(--gold);
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 32px;
  border-radius: 30px;
  box-shadow: var(--shadow-gold);
  transition: all var(--transition);
}
.btn-submit:hover {
  transform: translateY(-2px);
}

/* Wishes list */
.wishes-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}
.wish-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: left;
  animation: fadeInUp 0.4s ease;
}
.wish-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.wish-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-light);
}
.wish-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}
.wish-badge.hadir {
  background: rgba(76, 175, 80, 0.2);
  color: #81c784;
}
.wish-badge.tidak_hadir {
  background: rgba(244, 67, 54, 0.2);
  color: #e57373;
}
.wish-message {
  font-size: 0.78rem;
  color: #c8b08a;
  line-height: 1.6;
}

/* =====================================================
   CLOSING SECTION
   ===================================================== */
.section-closing {
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 64px 24px 0;
  text-align: center;
  overflow: hidden;
}
.closing-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(26, 16, 8, 0.72) 0%,
      rgba(26, 16, 8, 0.93) 100%
    ),
    url("../img/Background_Utama.png") center/cover no-repeat;
}
.closing-wayang {
  position: absolute;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  width: 210px;
  height: 310px;
  background: url("../img/wayang2.png") bottom center/contain no-repeat;
  opacity: 0.15;
  pointer-events: none;
  animation: floatWayang 5s ease-in-out infinite;
}
.closing-cloud {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--brown-dark);
  clip-path: ellipse(80% 100% at 50% 100%);
}
.closing-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
  max-width: 360px;
  margin: 0 auto;
}
.closing-text {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--cream-dark);
  font-style: italic;
  line-height: 2;
  margin-bottom: 20px;
}
.closing-salam {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.closing-names {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--gold-lighter);
  text-shadow: 0 2px 16px rgba(201, 168, 76, 0.5);
}

/* Footer */
.footer-credit {
  position: relative;
  z-index: 2;
  background: var(--brown-dark);
  padding: 20px 24px calc(80px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  width: 100%;
}
.footer-credit p {
  font-size: 0.72rem;
  color: #a08060;
  margin-bottom: 8px;
}
.footer-credit a {
  color: var(--gold);
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.12);
  padding: 5px 12px;
  border-radius: 16px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  transition: background var(--transition);
}
.footer-social a:hover {
  background: rgba(201, 168, 76, 0.22);
}

/* =====================================================
   MUSIC BUTTON
   ===================================================== */
.music-btn {
  position: fixed;
  bottom: 88px;
  right: 18px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f5efe2;
  color: #8a5a2d;
  border: 2px solid rgba(138, 90, 45, 0.45);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 850;
  box-shadow: 0 6px 16px rgba(44, 26, 6, 0.2);
  transition: transform var(--transition);
}
.music-btn.spin i {
  animation: spin 3s linear infinite;
}
.music-btn:hover {
  transform: scale(1.1);
}

/* =====================================================
   TOAST NOTIFICATION
   ===================================================== */
.toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--brown-dark);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  opacity: 0;
  transition: all 0.4s ease;
  white-space: nowrap;
  z-index: 9990;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

/* Floating awan cover decorations */
.awan-cover {
  position: absolute;
  width: 90px;
  pointer-events: none;
  z-index: 4;
  opacity: 0.35;
  background: url("../img/awan1.png") center/contain no-repeat;
  height: 90px;
  filter: sepia(1) saturate(3) brightness(0.65) hue-rotate(-10deg);
}
.awan-cover--kiri {
  top: 28%;
  left: -10px;
  animation: floatAwan1 6s ease-in-out infinite;
}
.awan-cover--kanan {
  top: 48%;
  right: -10px;
  width: 70px;
  height: 70px;
  animation: floatAwan2 7.5s ease-in-out infinite 1.2s;
  transform: scaleX(-1);
}

/* Floating awan section decorations (light sections) */
.awan-deko {
  position: absolute;
  width: 70px;
  height: 70px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
  background: url("../img/awan1.png") center/contain no-repeat;
  filter: sepia(1) saturate(4) brightness(0.7);
}
.awan-deko--kiri {
  top: 20%;
  left: -8px;
  animation: floatAwan1 7s ease-in-out infinite;
}
.awan-deko--kanan {
  top: 50%;
  right: -8px;
  transform: scaleX(-1);
  animation: floatAwan2 8s ease-in-out infinite 1.8s;
}

@keyframes floatAwan1 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
@keyframes awanRise {
  0%,
  100% {
    transform: scaleX(1) scaleY(1);
  }
  50% {
    transform: scaleX(1.04) scaleY(1.03);
  }
}
@keyframes floatAwan2 {
  0%,
  100% {
    transform: scaleX(-1) translateY(0);
  }
  50% {
    transform: scaleX(-1) translateY(-10px);
  }
}
@keyframes floatWayang {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-16px);
  }
}
@keyframes wayangBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes wayangBobCover {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@keyframes gunungHeartbeat {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  30% {
    transform: translateX(-50%) scale(1.05);
  }
  60% {
    transform: translateX(-50%) scale(1);
  }
  80% {
    transform: translateX(-50%) scale(1.03);
  }
}
@keyframes pulse-gold {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
  }
  50% {
    box-shadow: 0 4px 36px rgba(201, 168, 76, 0.7);
  }
}
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* ---- Short height screens (≤ 750px) — kurangi ukuran dekorasi ---- */
@media (max-height: 750px) {
  /* Cover section: wayang lebih kecil */
  .wayang-char {
    width: 190px;
    height: 290px;
    bottom: -78px;
  }
  /* Hero section: gunungan & wayang lebih kecil */
  .hero-gunungan {
    width: 160px;
    height: 220px;
    top: 15px;
  }
  .hero-wayang {
    width: 230px;
    height: 320px;
  }
}

/* ---- Very short screens (≤ 660px) — HP kecil, layout ulang ---- */
@media (max-height: 660px) {
  /* Cover */
  .cover-photo {
    height: 46%;
  }
  .wayang-char {
    width: 160px;
    height: 240px;
    bottom: -40px;
  }
  .cover-content {
    top: 58%;
  }
  /* Hero */
  .section-hero {
    justify-content: flex-start;
    padding-top: 34px;
    padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  }
  .hero-content {
    margin-top: 142px;
  }
  .hero-gunungan {
    width: 130px;
    height: 180px;
    top: 10px;
  }
  .hero-wayang {
    width: 190px;
    height: 270px;
  }
  .hero-names {
    font-size: 2.35rem;
  }
  .hero-awan--kiri-atas {
    width: 140px;
    height: 90px;
  }
  .hero-awan--kanan-atas {
    width: 130px;
    height: 85px;
  }
}

/* ---- Very small screens (≤ 360px) ---- */
@media (max-width: 360px) {
  .section-hero {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: calc(124px + env(safe-area-inset-bottom, 0px));
  }
  .hero-content {
    margin-top: 156px;
  }
  .hero-names {
    font-size: 2.35rem;
  }
  .hero-wayang {
    width: 192px;
    height: 286px;
    left: -24px;
    bottom: -62px;
  }
  .cover-names {
    font-size: 2.4rem;
  }
  .cover-photo {
    height: 48%;
  }
  .cover-ornament-top {
    width: 80px;
    height: 96px;
  }
  .wayang-char {
    width: 200px;
    height: 300px;
    bottom: -28px;
  }
  .cover-guest-name {
    font-size: 1rem;
  }
  .btn-open {
    padding: 11px 24px;
    font-size: 0.72rem;
  }
  .countdown-num {
    font-size: 2.2rem;
  }
  .countdown-item {
    min-width: 46px;
  }
  .countdown-sep {
    font-size: 1.8rem;
  }
  .event-cards-row {
    grid-template-columns: 1fr;
  }
  .gift-cards {
    grid-template-columns: 1fr;
  }
  .gift-card {
    max-width: 280px;
    margin: 0 auto;
  }
  .timeline::before {
    left: 16px;
  }
  .timeline-dot {
    left: 9px;
  }
  .closing-names {
    font-size: 2.1rem;
  }
  .person-photo,
  .person-photo-wrap {
    width: 120px;
    height: 120px;
  }
  .person-name {
    font-size: 1.7rem;
  }
}

/* ---- Small screens (≤ 400px) ---- */
@media (max-width: 400px) {
  .section-couple,
  .section-story,
  .section-event,
  .section-gift,
  .section-rsvp {
    padding-left: 16px;
    padding-right: 16px;
  }
  .event-date,
  .event-time,
  .event-location {
    font-size: 0.68rem;
  }
  .gift-account {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
  }
}

/* ---- Desktop: constrain to 480px centered card ---- */
@media (min-width: 481px) {
  body {
    background: var(--brown-dark);
  }

  /* Cover becomes a centered 480px card */
  #cover-section {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 480px;
    transform: translateX(-50%);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
  }
  #cover-section.fade-out {
    transform: translateX(-50%) scale(1.04);
  }

  /* Music button stays at right edge of card */
  .music-btn {
    right: calc(50% - 216px);
  }

  /* Bottom nav already constrained via max-width */
  .bottom-nav {
    border-radius: 0;
  }

  /* Main content card shadow */
  #main-content {
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.4);
  border-radius: 4px;
}
