/* ===== Variables & Base (sesuai Heritage 01 JAWA / terhubung.id) ===== */
:root {
  --color-bg: #0f0d0a;
  --color-bg-card: #161310;
  --color-bg-section: #12100e;
  --color-gold: #c9a962;
  --color-gold-light: #e5d4a1;
  --color-cream: #f5f0e6;
  --color-text: #e8e4dc;
  --color-text-muted: #a89f8f;
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-weight-display: 700;
  --font-weight-body: 600;
  --font-script: 'Great Vibes', cursive;
  --font-initial: 'Love Light', cursive;
  --transition: 0.3s ease;
  --radius: 6px;
  --section-padding: 4.5rem 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-gold);
  text-decoration: none;
}

a:hover {
  color: var(--color-gold-light);
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Widget musik (putar/jeda) ===== */
.music-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 300;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background: rgba(15, 13, 10, 0.9);
  color: var(--color-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.music-widget:hover {
  background: var(--color-gold);
  color: var(--color-bg);
  transform: scale(1.05);
}

.music-widget-icon {
  line-height: 1;
}

/* ===== Cover: dua layar (undangan → video) ===== */
.cover {
  position: relative;
  z-index: 100;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  inset: 0;
}

/* Layar 1: halaman utama — hanya kartu undangan, background JAWA-FALLBACK.jpg */
.cover-screen {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cover-screen--invite {
  background: #0f0d0a url('Assets/JAWA-FALLBACK.jpg') center/cover no-repeat;
}

/* Layar 2: video (terlihat setelah scroll) */
.cover-screen--video {
  padding: 0;
  min-height: 100vh;
}

.cover-screen--video .cover-video {
  position: absolute;
  inset: 0;
}

.cover-screen--video .cover-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gambar tampil setelah video selesai (menggantikan video) */
.cover-fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 1;
}

.cover-fallback.visible {
  opacity: 1;
  visibility: visible;
}

.cover-screen--video .cover-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  pointer-events: none;
}

.cover-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 400px;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(201, 169, 98, 0.3);
  border-radius: var(--radius);
  background: rgba(15, 13, 10, 0.6);
  backdrop-filter: blur(8px);
}

.cover-label {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-gold);
  margin: 0 0 0.5rem;
}

.cover-names {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  color: var(--color-cream);
  margin: 0 0 1.25rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.cover-to {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 0.2rem;
  letter-spacing: 0.03em;
}

.cover-guest {
  font-size: 1.1rem;
  color: var(--color-cream);
  margin: 0 0 1.25rem;
  font-weight: 600;
}

.btn-open {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: 0.95rem;
  padding: 0.7rem 2rem;
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  letter-spacing: 0.05em;
}

.btn-open:hover {
  background: var(--color-gold);
  color: var(--color-bg);
  text-decoration: none;
}

/* Teks intro yang muncul di detik 14 (overlay di atas video) */
.cover-intro-text {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  transform: translateY(-8%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  pointer-events: none;
}

.cover-intro-text.visible {
  opacity: 1;
  visibility: visible;
}

.cover-intro-label {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-gold);
  margin: 0 0 0.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.8s ease 0.2s, opacity 0.8s ease 0.2s;
}

.cover-intro-text.visible .cover-intro-label {
  transform: translateY(0);
  opacity: 1;
}

.cover-intro-name1,
.cover-intro-name2 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--color-cream);
  margin: 0;
  line-height: 1.1;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.8s ease 0.35s, opacity 0.8s ease 0.35s;
}

.cover-intro-text.visible .cover-intro-name1 {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.4s, 0.4s;
}

.cover-intro-amp {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--color-gold);
  margin: 0.5rem 0;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.8s ease 0.5s, opacity 0.8s ease 0.5s;
}

.cover-intro-text.visible .cover-intro-amp {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.55s, 0.55s;
}

.cover-intro-text.visible .cover-intro-name2 {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.6s, 0.6s;
}

.cover-intro-date {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: 0.15em;
  color: var(--color-surface);
  margin: 1rem 0 0;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.8s ease 0.7s, opacity 0.8s ease 0.7s;
}

.cover-intro-text.visible .cover-intro-date {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.75s, 0.75s;
}

.cover-content.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* ===== Animasi on scroll (dinamis) ===== */
.animate-on-scroll,
.animate-on-scroll-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.in-view,
.animate-on-scroll-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger untuk item dalam section */
.gallery-grid .animate-on-scroll-item { transition-delay: 0s; }
.gallery-grid .animate-on-scroll-item:nth-child(1) { transition-delay: 0.05s; }
.gallery-grid .animate-on-scroll-item:nth-child(2) { transition-delay: 0.1s; }
.gallery-grid .animate-on-scroll-item:nth-child(3) { transition-delay: 0.15s; }
.gallery-grid .animate-on-scroll-item:nth-child(4) { transition-delay: 0.2s; }
.gallery-grid .animate-on-scroll-item:nth-child(5) { transition-delay: 0.25s; }
.gallery-grid .animate-on-scroll-item:nth-child(6) { transition-delay: 0.3s; }

.timeline .animate-on-scroll-item:nth-child(1) { transition-delay: 0.1s; }
.timeline .animate-on-scroll-item:nth-child(2) { transition-delay: 0.2s; }
.timeline .animate-on-scroll-item:nth-child(3) { transition-delay: 0.3s; }
.timeline .animate-on-scroll-item:nth-child(4) { transition-delay: 0.4s; }

.couple-cards .couple-card:first-child { transition-delay: 0.1s; }
.couple-cards .couple-card:last-child { transition-delay: 0.2s; }

/* Card berlapis: jangan fade seluruh card, biar hanya lapisan (frame/foto/floral) yang animasi berurutan */
.couple-card--layered.animate-on-scroll-item {
  opacity: 1;
  transform: none;
  transition: none;
}
.couple-card--layered.animate-on-scroll-item.in-view {
  opacity: 1;
  transform: none;
}

/* Hero tampil langsung saat masuk (first screen) */
.hero.animate-on-scroll { opacity: 1; transform: none; }
.hero.animate-on-scroll .hero-content { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease 0.2s, transform 0.9s ease 0.2s; }
.hero.animate-on-scroll.in-view .hero-content { opacity: 1; transform: translateY(0); }

/* ===== Main content ===== */
.main-content {
  display: none;
  min-height: 100vh;
}

.main-content.visible {
  display: block !important;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 13, 10, 0.4), rgba(15, 13, 10, 0.75));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.hero-label {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 0.5rem;
}

.hero-name1,
.hero-name2 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  color: var(--color-cream);
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.hero-amp {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: clamp(1.4rem, 4vw, 2.25rem);
  color: var(--color-gold);
  margin: 0.4rem 0;
}

.hero-date {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin: 1rem 0 0;
}

.hero-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-decoration img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 25vh;
}

/* ===== Sections (layout seperti terhubung.id Heritage 01) ===== */
.section {
  padding: var(--section-padding);
  max-width: 920px;
  margin: 0 auto;
}

/* Section dengan background sedikit berbeda (alternating) */
.section.section-initials-ayat {
  position: relative;
  padding: 3rem 1.5rem var(--section-padding);
  max-width: 100%;
  background-color: var(--color-bg);
  background-image: url('Assets/JAWA-MOTIF-ATAS.png'), url('Assets/JAWA-MOTIF-BAWAH.png');
  background-position: top center, bottom center;
  background-size: 100% auto, 100% auto;
  background-repeat: no-repeat, no-repeat;
}

.section.section-we-are-couple {
  padding: 2.5rem 1.5rem var(--section-padding);
  max-width: 100%;
  background: #0f0d0a url('Assets/JAWA-BACKGROUND.jpg') center/cover no-repeat;
}

.section.invite-text,
.section.love-story,
.section.thanks {
  background: var(--color-bg-section);
}

.section-title {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  color: var(--color-gold);
  text-align: center;
  margin: 0 0 2rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

/* Section Initials + Ayat: motif atas/bawah, konten dalam card */
.initials-ayat-card {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  text-align: center;
  border-radius: var(--radius);
  background-color: var(--color-cream);
  background-image: linear-gradient(rgba(245, 240, 230, 0.9), rgba(245, 240, 230, 0.9)), url('Assets/JAWA-BACKGROUND.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(252, 230, 182, 0.25);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* Gambar 50%: ubah object-position (top/center/bottom) dan img height (200%=atas 50%, 400%=atas 25%). Fade bawah = gradient overlay. */
.initials-ayat-card .initials-ayat-image {
  width: calc(100% + 4rem);
  margin-left: -2rem;
  margin-right: -2rem;
  margin-bottom: 2rem;
  height: 0;
  padding-bottom: 90%;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius) var(--radius) 0 0;
}

.initials-ayat-card .initials-ayat-image::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent 0%, rgba(245, 240, 230, 0.4) 50%, var(--color-cream) 100%);
  pointer-events: none;
}

.initials-ayat-card .initials-ayat-image img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 200%;
  object-fit: cover;
  object-position: center 50%;
}

.initials-ayat-card .initials-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.initials-ayat-card .initial {
  font-family: var(--font-initial);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 400;
  color: var(--color-gold);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  line-height: 1;
}

.initials-ayat-card .initial-amp {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--color-gold);
  opacity: 0.9;
  line-height: 1;
}

.initials-ayat-card .ayat-text {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-style: italic;
  color: #2c2825;
  margin: 0 auto 0.75rem;
  line-height: 1.75;
  max-width: 720px;
}

.initials-ayat-card cite {
  font-size: 0.95rem;
  color: var(--color-gold);
  font-style: normal;
  letter-spacing: 0.02em;
}

/* We Are */
/* Section We Are + Couple: motif atas/bawah, card lengkung setengah lingkaran */
.we-are-couple-motif {
  width: 100%;
  line-height: 0;
  pointer-events: none;
}

.we-are-couple-motif img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.we-are-couple-card {
  max-width: 920px;
  margin: 2rem auto;
  padding: 0 0 2rem;
  text-align: center;
  border: 10px solid rgba(201, 169, 98, 0.5);
  border-radius: 120px 120px 120px 120px;
  background-color: var(--color-cream);
  background-image: linear-gradient(rgba(245, 240, 230, 0.92), rgba(245, 240, 230, 0.92)), url('Assets/JAWA-BACKGROUND.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.we-are-couple-card-motif {
  width: 100%;
  line-height: 0;
  pointer-events: none;
}

.we-are-couple-card-motif img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.we-are-couple-card-motif--top {
  position: relative;
  margin-bottom: 0;
  max-height: 100px;
  overflow: hidden;
}

.we-are-couple-card-motif--top img {
  max-height: 100px;
  object-fit: cover;
  object-position: top center;
}

.we-are-couple-card-motif--top::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  background: linear-gradient(to bottom, transparent 0%, rgba(245, 240, 230, 0.5) 40%, var(--color-cream) 100%);
  pointer-events: none;
}

.we-are-couple-card-motif--bottom {
  margin-top: 1.5rem;
}

.we-are-couple-gunungan {
  text-align: center;
  margin: 0;
}

.we-are-couple-gunungan img {
  width: auto;
  max-width: 120px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  display: inline-block;
}

.we-are-couple-card .section-title {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-gold);
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.we-are-couple-card .we-are-intro {
  text-align: center;
  color: #2c2825;
  margin: 0 1.5rem 1.5rem;
  font-size: 1.15rem;
}

.we-are-couple-card .couple-cards {
  padding: 0 1.5rem;
}

/* Couple */
.couple-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
}

.couple-card {
  flex: 1 1 220px;
  max-width: 280px;
  text-align: center;
}

.couple-photo {
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-bg-card);
}

.couple-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Couple card pertama: 3 lapis – frame kecil kiri, foto besar tengah + bayangan, floral kanan bawah */
.couple-photo--layered {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
  background: transparent;
}

.couple-photo-layer {
  position: absolute;
  pointer-events: none;
}

.couple-photo-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Lapis 1: frame dekoratif – lebih kecil, di kiri, di belakang foto */
.couple-photo-layer--frame {
  z-index: 1;
  width: 52%;
  left: 5%;
  top: 55%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.couple-photo-layer--frame img {
  width: 100%;
  height: auto;
  max-height: 95%;
  object-fit: contain;
  object-position: left center;
}

/* Lapis 2: foto oval – paling besar, tengah, dengan bayangan */
.couple-photo-layer--photo {
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  height: 70%;
  clip-path: ellipse(50% 50% at 50% 50%);
  overflow: visible;
  pointer-events: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 0 0 2px rgba(212, 175, 55, 0.4);
  border-radius: 50%;
}

.couple-photo-layer--photo img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

/* Lapis 3: floral – lebih kecil, kanan bawah, di belakang foto */
.couple-photo-layer--floral {
  z-index: 3;
  width: 35%;
  right: 15%;
  bottom: 10%;
  top: auto;
  left: auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.couple-photo-layer--floral img {
  width: 100%;
  height: auto;
  max-height: 85%;
  object-fit: contain;
  object-position: right bottom;
}

/* Posisi frame & floral untuk Nailil (card kedua): dicerminkan – frame kanan, floral kiri */
.couple-card--nailil .couple-photo-layer--frame {
  left: auto;
  right: 5%;
  justify-content: flex-end;
}

.couple-card--nailil .couple-photo-layer--frame img {
  object-position: right center;
}

.couple-card--nailil .couple-photo-layer--floral {
  right: auto;
  left: 15%;
  justify-content: flex-start;
}

.couple-card--nailil .couple-photo-layer--floral img {
  object-position: left bottom;
}

/* Animasi Nailil: frame dari kanan, floral dari kiri */
.couple-card--nailil .couple-photo-layer--frame {
  transform: translateY(-50%) translateX(20px) scale(0.65);
}

.couple-card--nailil.in-view .couple-photo-layer--frame {
  transform: translateY(-50%) translateX(0) scale(1);
}

.couple-card--nailil .couple-photo-layer--floral {
  transform: translateX(-15px) scale(0.6);
}

.couple-card--nailil.in-view .couple-photo-layer--floral {
  transform: translateX(0) scale(1);
}

/* Animasi muncul berurutan: frame → foto → floral (saat card in-view), jelas terlihat */
.couple-card--layered .couple-photo-layer {
  opacity: 0;
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.couple-card--layered .couple-photo-layer--frame {
  transform: translateY(-50%) translateX(-20px) scale(0.65);
  transition-delay: 0s;
}

.couple-card--layered .couple-photo-layer--photo {
  transform: translate(-50%, -50%) scale(0.5);
  transition-delay: 0s;
}

.couple-card--layered .couple-photo-layer--floral {
  transform: translateX(15px) scale(0.6);
  transition-delay: 0s;
}

.couple-card--layered.in-view .couple-photo-layer--frame {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
  transition-delay: 0.2s;
}

.couple-card--layered.in-view .couple-photo-layer--photo {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.55s;
}

.couple-card--layered.in-view .couple-photo-layer--floral {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition-delay: 1s;
}

.couple-name {
  font-family: var(--font-script);
  font-size: 2.15rem;
  font-weight: 400;
  color: var(--color-gold);
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
}

.couple-fullname {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #5c554d;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.couple-parents {
  font-size: 1.1rem;
  color: #8B4513;
  margin: 0 0 0.5rem;
}

.couple-ig {
  font-size: 1rem;
}

.couple-amp {
  align-self: center;
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: 1.8rem;
  color: var(--color-gold);
}

@media (max-width: 600px) {
  .couple-amp {
    width: 100%;
    text-align: center;
  }
}

/* Countdown (boxed seperti referensi terhubung.id) */
.countdown-section {
  padding: var(--section-padding);
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.countdown-item {
  text-align: center;
  min-width: 72px;
  padding: 1rem 0.75rem;
  background: var(--color-bg-card);
  border: 1px solid rgba(201, 169, 98, 0.25);
  border-radius: var(--radius);
  flex: 1 1 72px;
  max-width: 100px;
}

.countdown-value {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-gold);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.countdown-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Invite text */
.invite-text {
  padding: 2rem 1.5rem;
}

.invite-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text);
  margin: 0;
}

/* Events (warna dasar cream, motif atas & bawah sebagai background) */
.events {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--color-cream);
  background-image:
    url('Assets/JAWA-MOTIF-ATAS.png'),
    url('Assets/JAWA-MOTIF-BAWAH.png');
  background-position: top center, bottom center;
  background-repeat: no-repeat, no-repeat;
  background-size: 100% auto, 100% auto;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.event-card {
  background: #fff;
  padding: 2.25rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 169, 98, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.event-title {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: 1.6rem;
  color: var(--color-gold);
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.event-day {
  font-size: 1.6rem;
  color: #8B4513;
  text-transform: lowercase;
  margin: 0 0 0.15rem;
}

.event-date {
  font-size: 1.5rem;
  color: #3d3935;
  text-transform: lowercase;
  margin: 0.15rem 0;
}

.event-time {
  font-size: 1.5rem;
  color: #3d3935;
  margin: 0.25rem 0;
}

.event-venue {
  font-weight: 800;
  color: #2c2825;
  margin-top: 1.5rem;
  font-size: 1.5rem;
}

.event-address {
  font-size: 1.2rem;
  color: #5c554d;
  margin: 0.5rem 0 1rem;
}

.btn-map {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}

.btn-map:hover {
  background: var(--color-gold);
  color: var(--color-bg);
  text-decoration: none;
}

/* Streaming */
.streaming-desc {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

.streaming-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.streaming-link {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}

.streaming-link:hover {
  background: rgba(201, 169, 98, 0.15);
  text-decoration: none;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-card);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Love Story / Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid rgba(201, 169, 98, 0.4);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gold);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: 1.2rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.timeline-text {
  margin: 0;
  color: var(--color-text);
}

/* Love Gift */
.love-gift-intro {
  text-align: center;
  margin: 0 0 2rem;
  color: var(--color-text-muted);
}

.gift-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.gift-card {
  background: var(--color-bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 169, 98, 0.2);
  text-align: center;
}

.gift-card h4 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: 1.2rem;
  color: var(--color-gold);
  margin: 0 0 0.75rem;
}

.gift-card p {
  margin: 0.25rem 0;
  color: var(--color-text);
  font-size: 0.95rem;
}

.gift-account,
.gift-address {
  word-break: break-all;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0.5rem 0 1rem !important;
}

/* Love Gift: tampilan QRIS */
.gift-cards--qris {
  display: flex;
  justify-content: center;
  max-width: 320px;
  margin: 0 auto;
}

.gift-card--qris {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gift-qris-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 169, 98, 0.25);
  display: block;
}

.gift-qris-caption {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Tombol download QRIS – background cream, selaras tema */
.btn-download-qris {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #000000;
  background: var(--color-cream);
  border: 1px solid rgba(201, 169, 98, 0.5);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-download-qris:hover {
  background: var(--color-gold);
  color: var(--color-bg);
  border-color: var(--color-gold);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(201, 169, 98, 0.25);
}

.btn-copy {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn-copy:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

.btn-copy.copied {
  background: #2d5a2d;
  border-color: #2d5a2d;
  color: var(--color-cream);
}

/* Thanks / Wishes (sesuai referensi: Wishes, Ucapan Selamat & Do'a) */
.wishes-title {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--color-gold);
  margin: 1.5rem 0 0.25rem;
}

.wishes-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.wishes-list {
  margin-bottom: 2rem;
  max-height: 400px;
  overflow-y: auto;
}

.wish-item {
  background: var(--color-bg-card);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--color-gold);
}

.wish-item strong {
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.25rem;
}

.wish-form {
  max-width: 400px;
  margin: 0 auto;
}

.wish-form input,
.wish-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 1px solid rgba(201, 169, 98, 0.3);
  border-radius: var(--radius);
}

.wish-form input::placeholder,
.wish-form textarea::placeholder {
  color: var(--color-text-muted);
}

.wish-form textarea {
  min-height: 100px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-gold);
  color: var(--color-bg);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity var(--transition);
}

.btn-submit:hover {
  opacity: 0.9;
}

/* Closing (sesuai referensi terhubung.id) */
.closing {
  text-align: center;
  padding: var(--section-padding);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.closing-text {
  margin: 0 0 1.75rem;
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.closing-names {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
  font-weight: 400;
}

.closing-couple {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  color: var(--color-gold);
  margin: 0;
}

/* Footer (sesuai referensi: Original Design By elemenpress.com) */
.footer {
  padding: 3.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(201, 169, 98, 0.2);
  background: var(--color-bg-section);
}

.footer-credit {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
  font-style: italic;
}

.footer-credit a {
  font-style: normal;
  font-weight: 600;
  color: var(--color-gold);
}

.footer-links {
  margin: 0.5rem 0 1.25rem;
}

.footer-links a {
  margin: 0 0.5rem;
  font-size: 0.95rem;
}

.footer-wedding {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0.5rem 0 0;
  letter-spacing: 0.05em;
}

.footer-couple {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: 1.25rem;
  color: var(--color-gold);
  margin: 0.35rem 0;
}

.footer-date {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.visible {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
  background: transparent;
  color: var(--color-cream);
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 3;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

/* Responsive tweaks (sesuai referensi mobile) */
@media (max-width: 480px) {
  .section {
    padding: 3rem 1rem;
  }

  .we-are-couple-card {
    border-radius: 60px 60px 60px 60px;
    margin: 1.5rem auto;
    padding: 0 0 1.5rem;
  }

  .countdown {
    gap: 0.75rem;
  }

  .countdown-item {
    min-width: 64px;
    max-width: none;
    padding: 0.85rem 0.5rem;
  }

  .cover-content {
    padding: 1.5rem 1.25rem;
  }

  .events {
    grid-template-columns: 1fr;
  }
}
