/* ============================================================
   VINTAGE JAWA 03 — WEDDING OF AJI & DWI
   Complete Design Adoption & Merge
   ============================================================ */

/* --- Custom Fonts --- */
@font-face {
  font-family: 'collina-regular';
  src: url('../fonts/collina-regular-xDMWPg.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Collina';
  src: url('../fonts/collina-regular-xDMWPg.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'bon-vivan-regular';
  src: url('../fonts/bon-vivan-regular-a1NCaB.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bon Vivan';
  src: url('../fonts/bon-vivan-regular-a1NCaB.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Theme Variables --- */
:root {
  --primary-brown: #593520;
  --secondary-brown: #8c6944;
  --dark-wood: #3a1e12;
  --deep-brown: #2d160c;
  --gold-accent: #d4af37;
  --gold-light: #f5e8c7;
  --gold-champagne: #fae8c8;
  --cream-bg: #faf7f2;
  --cream-card: #fdfaf6;
  --parchment: #f4eee6;
  --dark-text: #3c2415;
  --muted-text: #705443;
  --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
  
  --font-display: 'Vidaloka', 'collina-regular', Georgia, serif;
  --font-heading: 'Cinzel', serif;
  --font-btn: 'Aboreto', cursive, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Bon Vivan', 'collina-regular', cursive;
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: #26130b;
  color: var(--dark-text);
  font-family: var(--font-body);
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  display: none;
}

body.locked {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}

/* ============================================================
   DUAL-MODE DESKTOP & MOBILE WRAPPER
   ============================================================ */
.app-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* DESKTOP FIXED LEFT PANEL */
.desktop-panel {
  display: none;
}

@media (min-width: 992px) {
  .desktop-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    position: fixed;
    left: 0;
    top: 0;
    width: calc(100% - 500px);
    height: 100vh;
    background: linear-gradient(180deg, rgba(20, 10, 12, 0) 50%, rgba(20, 10, 12, 0.20) 78%, rgba(20, 10, 12, 0.60) 100%),
                url('../images/aji_dwi_cover.jpg?v=6.6') 55% 35% / cover no-repeat;
    padding: 60px 80px 100px;
    z-index: 10;
  }

  .desktop-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
  }

  .desktop-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 600px;
  }

  .desktop-subtitle {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 12px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  }

  .desktop-title {
    font-family: var(--font-display);
    font-size: 64px;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 16px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.7);
  }

  .desktop-date {
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: 5px;
    color: var(--gold-accent);
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  }
}

/* RIGHT INVITATION CONTAINER (CARD ON DESKTOP, FULL ON MOBILE) */
.invitation-container {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: #f7f3ec;
  position: relative;
  overflow-x: hidden;
  box-shadow: var(--card-shadow);
}

@media (min-width: 992px) {
  .invitation-container {
    margin-left: auto;
    margin-right: 0;
    width: 500px;
    border-left: 1px solid rgba(212, 175, 55, 0.3);
  }
}

/* ============================================================
   1. COVER OVERLAY (#coverOverlay)
   ============================================================ */
.cover-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: #26130b;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px clamp(35px, 5.5vh, 55px);
  text-align: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  will-change: opacity, visibility;
  overflow: hidden;
}

@media (min-width: 992px) {
  .cover-overlay {
    width: 500px;
  }
}

.cover-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 18%;
  z-index: 1;
  pointer-events: none;
}

.cover-gradient-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 11, 7, 0) 0%,
    rgba(22, 11, 7, 0) 36%,
    rgba(22, 11, 7, 0.45) 54%,
    rgba(20, 10, 6, 0.82) 75%,
    rgba(16, 8, 5, 0.96) 100%
  );
  z-index: 2;
  pointer-events: none;
}

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

.cover-card-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cover-emblem {
  width: 52px;
  height: auto;
  margin: 0 auto 5px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 10px rgba(212, 175, 55, 0.45));
  pointer-events: none;
}

.cover-badge {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3.5px;
  color: #fae69e;
  text-transform: uppercase;
  margin-bottom: 2px;
  display: inline-block;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(212, 175, 55, 0.5);
}

.cover-couple {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 0%, #fae69e 35%, #d4af37 68%, #fae69e 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fae69e;
  margin-bottom: 2px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 18px rgba(212, 175, 55, 0.45));
  letter-spacing: 0.5px;
}

.cover-divider-img {
  width: 120px;
  height: auto;
  margin: 0 auto 6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  opacity: 0.9;
  pointer-events: none;
}

.cover-date {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 2.8px;
  font-weight: 600;
  color: #fae69e;
  margin-bottom: 12px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
}

.guest-card {
  background: linear-gradient(145deg, rgba(32, 16, 11, 0.85) 0%, rgba(18, 9, 6, 0.92) 100%);
  border: 1px solid rgba(245, 230, 158, 0.65);
  border-radius: 14px;
  padding: 12px 24px 11px;
  margin-bottom: 15px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), inset 0 0 0 3px rgba(20, 10, 7, 0.7), inset 0 0 0 4px rgba(212, 175, 55, 0.35);
  width: 100%;
  max-width: 340px;
  position: relative;
}

.guest-label {
  font-family: 'Cormorant Garamond', var(--font-serif);
  font-size: 12.5px;
  font-style: italic;
  color: #e8d7b5;
  margin-bottom: 2px;
  letter-spacing: 0.6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.guest-name {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 700;
  color: #fae69e;
  margin-bottom: 2px;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 12px rgba(212, 175, 55, 0.45);
}

.guest-sub {
  font-family: 'Cormorant Garamond', var(--font-serif);
  font-size: 12px;
  font-style: italic;
  color: #d4c5a9;
  margin-bottom: 0;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.cover-apology {
  font-family: 'Cormorant Garamond', var(--font-serif);
  font-size: 11.5px;
  color: rgba(245, 230, 190, 0.78);
  font-style: italic;
  margin-top: 10px;
  margin-bottom: 0;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  border-top: none;
  padding-top: 0;
}

.btn-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #c59837 0%, #fae69e 45%, #c59837 78%, #9e7220 100%);
  color: #381e0d;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 34px;
  border-radius: 50px;
  text-decoration: none;
  border: 1px solid rgba(250, 230, 158, 0.9);
  box-shadow: 0 6px 22px rgba(184, 134, 11, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse-gold 2.4s infinite;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-open:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #d4af37 0%, #fff0b8 45%, #d4af37 78%, #a87d25 100%);
  box-shadow: 0 8px 26px rgba(184, 134, 11, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.85);
  color: #381e0d;
}

.btn-open i {
  font-size: 14px;
  color: #381e0d;
  transition: transform 0.3s ease;
}

.btn-open:hover i {
  transform: scale(1.15) rotate(-8deg);
}

@keyframes pulse-gold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(228, 203, 143, 0.55);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(228, 203, 143, 0);
  }
}

.cover-bottom {
  height: 35px;
  width: 100%;
}

/* ============================================================
   2. INNER HERO SECTION (#isi / Slide Awal)
   ============================================================ */
.inner-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: clamp(60px, 8.8vh, 80px) 20px 40px;
  overflow: hidden;
  background: url('../images/JAWA-03-FALLBACK.jpg') center center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom,
    black 0%,
    black 78%,
    rgba(0, 0, 0, 0.95) 83%,
    rgba(0, 0, 0, 0.75) 89%,
    rgba(0, 0, 0, 0.40) 94%,
    rgba(0, 0, 0, 0.10) 98%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom,
    black 0%,
    black 78%,
    rgba(0, 0, 0, 0.95) 83%,
    rgba(0, 0, 0, 0.75) 89%,
    rgba(0, 0, 0, 0.40) 94%,
    rgba(0, 0, 0, 0.10) 98%,
    transparent 100%
  );
}

.inner-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.ambient-particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 992px) {
  .ambient-particles-canvas {
    left: auto;
    right: 0;
    width: 500px;
  }
}

.hero-lockup {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: transparent;
  padding: 0;
  margin-top: clamp(25px, 4.2vh, 38px); /* Perfectly balanced with majestic Gunungan crest */
}

.hero-lockup .hero-emblem,
.hero-lockup .hero-tagline,
.hero-lockup .hero-photo-frame,
.hero-lockup .hero-title,
.hero-lockup .hero-date {
  opacity: 0;
  visibility: hidden;
}

.hero-lockup.revealed .hero-emblem,
.hero-lockup.revealed .hero-tagline,
.hero-lockup.revealed .hero-photo-frame,
.hero-lockup.revealed .hero-title,
.hero-lockup.revealed .hero-date {
  visibility: visible;
  animation: heroUnisonReveal 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroUnisonReveal {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-emblem {
  width: 130px;
  height: auto;
  margin: 0 auto 6px;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(60, 36, 21, 0.18));
}

.hero-tagline {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #4a2c17;
  margin: 0 0 8px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.hero-photo-frame {
  position: relative;
  width: 158px;
  height: 220px;
  border-radius: 78px 78px 16px 16px;
  border: 3.5px solid #ffffff;
  box-shadow: 0 10px 28px rgba(60, 36, 21, 0.22), 0 3px 10px rgba(0, 0, 0, 0.12);
  margin: 0 auto 8px;
  overflow: hidden;
  background: #fdfaf6;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 4px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-title .hero-name {
  font-family: 'Cinzel', serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 3.5px;
  color: #3b1e0d;
}

.hero-title .hero-amp {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 30px;
  font-weight: 400;
  color: #8c6944;
  margin: 0 2px;
  line-height: 1;
}

.hero-date {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 4px;
  font-weight: 600;
  color: #3b1e0d;
  margin: 0;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
}

.hero-date .dot-sep {
  color: #8c6944;
  font-size: 14px;
  margin: 0 2px;
}

/* ============================================================
   COMMON SECTION STYLING
   ============================================================ */
.section-pad {
  padding: 65px 24px 75px;
  position: relative;
  text-align: center;
}

.sec-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1px;
  color: var(--primary-brown);
  margin-bottom: 12px;
}

.sec-title-light {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.sec-subtitle {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #593520;
  margin-bottom: 25px;
}

.sec-divider-img {
  width: 150px;
  height: auto;
  margin: 0 auto 24px;
  display: block;
  opacity: 0.85;
}

/* ============================================================
   3. AYAT SUCI (QS. AR-RUM : 21)
   ============================================================ */
.sec-verse {
  position: relative;
  background: transparent;
  color: var(--primary-brown);
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  overflow: visible;
}

.sec-verse::before {
  content: '';
  position: absolute;
  inset: -30px 0;
  background: url('../images/background-ayat-jawa-03-min.png') center center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 5%,
    rgba(0, 0, 0, 0.35) 12%,
    rgba(0, 0, 0, 0.70) 20%,
    rgba(0, 0, 0, 0.95) 28%,
    black 35%,
    black 65%,
    rgba(0, 0, 0, 0.95) 72%,
    rgba(0, 0, 0, 0.70) 80%,
    rgba(0, 0, 0, 0.35) 88%,
    rgba(0, 0, 0, 0.08) 95%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 5%,
    rgba(0, 0, 0, 0.35) 12%,
    rgba(0, 0, 0, 0.70) 20%,
    rgba(0, 0, 0, 0.95) 28%,
    black 35%,
    black 65%,
    rgba(0, 0, 0, 0.95) 72%,
    rgba(0, 0, 0, 0.70) 80%,
    rgba(0, 0, 0, 0.35) 88%,
    rgba(0, 0, 0, 0.08) 95%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.verse-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.verse-flower-tr {
  position: absolute;
  top: -30px;
  right: -24px;
  width: 80px;
  height: auto;
  pointer-events: none;
  z-index: 3;
  opacity: 0.90;
}

.verse-flower-bl {
  position: absolute;
  bottom: -30px;
  left: -24px;
  width: 80px;
  height: auto;
  transform: scaleX(-1) rotate(180deg);
  pointer-events: none;
  z-index: 3;
  opacity: 0.90;
}

.verse-card {
  position: relative;
  z-index: 2;
  background: rgba(250, 246, 238, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(184, 134, 11, 0.48);
  border-radius: 24px;
  padding: 38px 26px 32px;
  box-shadow: 
    0 0 0 4px rgba(250, 246, 238, 0.90),
    0 0 0 5.5px rgba(184, 134, 11, 0.28),
    0 12px 35px rgba(70, 42, 22, 0.10),
    0 2px 10px rgba(212, 175, 55, 0.15);
  text-align: center;
}

.verse-card::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(184, 134, 11, 0.32);
  border-radius: 17px;
  pointer-events: none;
}

.verse-tagline {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #96703c;
  margin: 0 0 14px;
}

.verse-bismillah {
  font-family: 'Amiri', 'Traditional Arabic', var(--font-serif);
  font-size: 28px;
  line-height: 1.8;
  margin: 0 auto 14px;
  max-width: 320px;
  background: linear-gradient(135deg, #966716 0%, #c59837 25%, #fae69e 50%, #c59837 75%, #8f6010 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #c59837;
  filter: drop-shadow(0 1px 2px rgba(90, 55, 15, 0.35));
  font-weight: 700;
  direction: rtl;
}

.verse-quote {
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.75;
  color: #4a2e1d;
  font-style: italic;
  max-width: 290px;
  margin: 0 auto 14px;
  padding: 0;
}

.verse-source {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #8c6944;
  margin: 0;
}

/* ============================================================
   4. PROFIL MEMPELAI (BRIDE & GROOM)
   ============================================================ */
.sec-couple {
  position: relative;
  background: transparent;
  color: var(--primary-brown);
}

.sec-couple::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/backgorund-mempelai-min.png') center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 3%,
    rgba(0, 0, 0, 0.35) 8%,
    rgba(0, 0, 0, 0.70) 14%,
    rgba(0, 0, 0, 0.95) 20%,
    black 28%,
    black 72%,
    rgba(0, 0, 0, 0.95) 78%,
    rgba(0, 0, 0, 0.70) 84%,
    rgba(0, 0, 0, 0.35) 90%,
    rgba(0, 0, 0, 0.08) 96%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 3%,
    rgba(0, 0, 0, 0.35) 8%,
    rgba(0, 0, 0, 0.70) 14%,
    rgba(0, 0, 0, 0.95) 20%,
    black 28%,
    black 72%,
    rgba(0, 0, 0, 0.95) 78%,
    rgba(0, 0, 0, 0.70) 84%,
    rgba(0, 0, 0, 0.35) 90%,
    rgba(0, 0, 0, 0.08) 96%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.couple-header-card {
  max-width: 350px;
  margin: 0 auto 30px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(184, 134, 11, 0.38);
  border-radius: 24px;
  padding: 22px 20px 20px;
  box-shadow: 0 10px 32px rgba(60, 36, 21, 0.12);
  position: relative;
  z-index: 2;
  text-align: center;
}

.couple-header-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  pointer-events: none;
}

.couple-salam {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #3b1e0d;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.couple-header-divider {
  width: 125px;
  height: auto;
  margin: 0 auto 10px;
  display: block;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

.couple-intro {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.75;
  color: #382012;
  font-weight: 500;
  max-width: 295px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.person-card {
  max-width: 350px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(184, 134, 11, 0.38);
  border-radius: 24px;
  padding: 26px 14px 22px;
  box-shadow: 0 10px 32px rgba(60, 36, 21, 0.12);
  position: relative;
  z-index: 2;
}

.person-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  pointer-events: none;
}

/* Cameo Oval Medallion */
.person-oval-frame {
  width: 175px;
  height: 255px;
  border-radius: 500px;
  border: 3.5px solid #ffffff;
  outline: 1.5px solid rgba(197, 152, 55, 0.55);
  outline-offset: 3px;
  box-shadow: 0 8px 25px rgba(60, 36, 21, 0.28);
  margin: 0 auto 18px;
  overflow: hidden;
  position: relative;
  background: #f4eee6;
}

.person-oval-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.person-oval-frame:hover img {
  transform: scale(1.05);
}

.person-role-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.person-role-tag .role-line {
  width: 26px;
  height: 1px;
  background: rgba(184, 134, 11, 0.6);
}

.person-role-tag .role-text {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: #96703c;
}

.person-fullname {
  font-family: 'Cinzel', var(--font-display);
  font-size: clamp(19.5px, 5.4vw, 21.5px);
  font-weight: 700;
  color: #3b1e0d;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.person-ornament-divider {
  width: 130px;
  height: auto;
  margin: 6px auto 10px;
  display: block;
  opacity: 0.85;
}

.person-lineage {
  margin-bottom: 16px;
  line-height: 1.6;
}

.person-lineage .lineage-prefix {
  display: block;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-style: italic;
  color: #6d5241;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.person-lineage .lineage-names {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: #2c160b;
  letter-spacing: 0.4px;
}

.person-lineage .gold-amp {
  font-family: var(--font-serif);
  font-style: italic;
  color: #c59837;
  font-weight: 600;
  margin: 0 4px;
  font-size: 19px;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, #ffffff 0%, #faf6ef 100%);
  color: #3e2212;
  border: 1.2px solid rgba(197, 152, 55, 0.55);
  padding: 8px 22px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 11.5px;
  letter-spacing: 0.8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(90, 55, 15, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.btn-social i {
  color: #c59837;
  font-size: 12px;
}

.btn-social:hover {
  background: var(--primary-brown);
  color: #ffffff;
  border-color: var(--primary-brown);
}

.btn-social:hover i {
  color: #ffffff;
}

.couple-ampersand-divider {
  font-family: var(--font-serif);
  font-size: 26px;
  font-style: italic;
  font-weight: 600;
  color: #966716;
  background: linear-gradient(135deg, #ffffff 0%, #faf4e8 100%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(90, 55, 15, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(197, 152, 55, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto;
  line-height: 1;
  position: relative;
  z-index: 5;
}

/* ============================================================
   5. COUNTDOWN ("MENUJU HARI BAHAGIA")
   ============================================================ */
.sec-countdown {
  position: relative;
  background: transparent;
  padding: 50px 20px;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(184, 134, 11, 0.38);
  border-radius: 24px;
  padding: 24px 18px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 10px 32px rgba(60, 36, 21, 0.12);
  position: relative;
  z-index: 2;
  text-align: center;
}

.countdown-box::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  pointer-events: none;
}

.countdown-photo {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1a0b0d;
  margin-bottom: 22px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.countdown-photo img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0 16px;
}

.cd-item {
  background: linear-gradient(135deg, #8c6944 0%, #593520 100%);
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 6px;
  box-shadow: 0 4px 12px rgba(89, 53, 32, 0.2);
}

.cd-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  display: block;
  color: #ffffff;
}

.cd-lbl {
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-top: 4px;
}

/* ============================================================
   6. RANGKAIAN ACARA (WEDDING EVENTS)
   ============================================================ */
.sec-events {
  position: relative;
  background: transparent;
  color: var(--primary-brown);
}

.sec-events::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/background-acara-jawa-03.jpg') center center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 3%,
    rgba(0, 0, 0, 0.35) 8%,
    rgba(0, 0, 0, 0.70) 14%,
    rgba(0, 0, 0, 0.95) 20%,
    black 28%,
    black 72%,
    rgba(0, 0, 0, 0.95) 78%,
    rgba(0, 0, 0, 0.70) 84%,
    rgba(0, 0, 0, 0.35) 90%,
    rgba(0, 0, 0, 0.08) 96%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 3%,
    rgba(0, 0, 0, 0.35) 8%,
    rgba(0, 0, 0, 0.70) 14%,
    rgba(0, 0, 0, 0.95) 20%,
    black 28%,
    black 72%,
    rgba(0, 0, 0, 0.95) 78%,
    rgba(0, 0, 0, 0.70) 84%,
    rgba(0, 0, 0, 0.35) 90%,
    rgba(0, 0, 0, 0.08) 96%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.event-card-box {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(140, 105, 68, 0.35);
  border-radius: 22px;
  padding: 16px 16px 26px;
  max-width: 400px;
  margin: 0 auto 26px;
  box-shadow: 0 8px 28px rgba(60, 36, 21, 0.14);
  text-align: center;
}

.event-card-photo {
  width: 100%;
  height: 225px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(60, 36, 21, 0.12);
  margin-bottom: 18px;
  background: #f4eee6;
  position: relative;
}

.event-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.6s ease;
}

.event-card-box:hover .event-card-photo img {
  transform: scale(1.03);
}

.event-heading {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-brown);
  margin-bottom: 6px;
  font-weight: 700;
}

.event-date-txt {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #593520;
  margin-bottom: 10px;
}

.event-title-divider {
  width: 130px;
  height: 1px;
  background: rgba(140, 105, 68, 0.38);
  margin: 10px auto 14px;
}

.event-time-txt {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: #593520;
  margin-bottom: 12px;
  font-weight: 500;
}

.event-venue-block {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: #4a2c17;
  margin-bottom: 20px;
}

.event-venue-name {
  margin-bottom: 4px;
}

.event-venue-name strong {
  color: var(--primary-brown);
  font-weight: 700;
}

.event-venue-address {
  color: #705443;
}

.btn-event-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  font-size: 13px;
  letter-spacing: 0.5px;
  border-radius: 9999px;
}

.event-details-list {
  text-align: left;
  max-width: 320px;
  margin: 0 auto 20px;
  font-size: 13px;
  line-height: 1.7;
}

.event-row {
  display: flex;
  margin-bottom: 6px;
}

.event-row-lbl {
  width: 75px;
  font-weight: 600;
  color: var(--primary-brown);
  white-space: nowrap;
}

.event-row-sep {
  width: 15px;
  text-align: center;
}

.event-row-val {
  flex: 1;
  color: var(--dark-wood);
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(104deg, #8c6944 0%, #593520 100%);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 25px;
  font-family: 'Cinzel', serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(89, 53, 32, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(245, 232, 199, 0.3);
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(89, 53, 32, 0.45);
}

/* ============================================================
   7. GALERI FOTO (8 AUTHENTIC MOMENTS)
   ============================================================ */
.sec-gallery {
  position: relative;
  background: transparent;
}

.gallery-hint {
  font-size: 12px;
  letter-spacing: 0.8px;
  color: #8c6944;
  margin: -10px auto 20px;
  text-align: center;
  font-weight: 500;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  background: #f0eae1;
}

.gallery-item.gallery-item-wide {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

/* ============================================================
   GALLERY HERO AUTO-SLIDER (FEATURED HIGHLIGHTS)
   ============================================================ */
.gallery-hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #150a05;
  box-shadow: 0 6px 22px rgba(60, 36, 21, 0.22);
  border: 1px solid rgba(212, 168, 83, 0.4);
}

.gallery-hero-slider .slider-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  z-index: 1;
  pointer-events: none;
}

.gallery-hero-slider .slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.gallery-hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.0);
  transition: transform 4.5s ease-out;
}

.gallery-hero-slider .slide.active img {
  transform: scale(1.06);
}

/* Badge in top left corner */
.slider-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(26, 14, 8, 0.70);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f7e6c4;
  border: 1px solid rgba(212, 168, 83, 0.45);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 11px;
  font-family: var(--font-display);
  letter-spacing: 0.8px;
  font-weight: 500;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  pointer-events: none;
}

.slider-badge i {
  color: #e5b95f;
  font-size: 10px;
}

/* Auto-Slide Progress Bar */
.slider-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 5;
  overflow: hidden;
}

.slider-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4a853, #f7e6c4);
  box-shadow: 0 0 10px rgba(212, 168, 83, 0.85);
  transition: width 0.08s linear;
}

/* Indicator Dots */
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 4;
  padding: 4px 10px;
  background: rgba(18, 9, 5, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  border: 1px solid rgba(212, 168, 83, 0.25);
  pointer-events: none;
}

.slider-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dots .dot.active {
  width: 20px;
  border-radius: 10px;
  background: #d4a853;
  box-shadow: 0 0 10px rgba(212, 168, 83, 0.9);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-overlay-icon {
  position: absolute;
  inset: 0;
  background: rgba(89, 53, 32, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #ffffff;
  font-size: 20px;
}

.gallery-item:hover .gallery-overlay-icon {
  opacity: 1;
}

/* ============================================================
   8. LOVE STORY (KISAH CINTA)
   ============================================================ */
.sec-story {
  position: relative;
  background: transparent;
  color: var(--primary-brown);
  padding-bottom: 50px;
}

.sec-story::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/background-story-jawa-03.jpg') center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 3%,
    rgba(0, 0, 0, 0.35) 8%,
    rgba(0, 0, 0, 0.70) 14%,
    rgba(0, 0, 0, 0.95) 20%,
    black 28%,
    black 72%,
    rgba(0, 0, 0, 0.95) 78%,
    rgba(0, 0, 0, 0.70) 84%,
    rgba(0, 0, 0, 0.35) 90%,
    rgba(0, 0, 0, 0.08) 96%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 3%,
    rgba(0, 0, 0, 0.35) 8%,
    rgba(0, 0, 0, 0.70) 14%,
    rgba(0, 0, 0, 0.95) 20%,
    black 28%,
    black 72%,
    rgba(0, 0, 0, 0.95) 78%,
    rgba(0, 0, 0, 0.70) 84%,
    rgba(0, 0, 0, 0.35) 90%,
    rgba(0, 0, 0, 0.08) 96%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.sec-story .sec-title,
.sec-story .sec-subtitle,
.sec-story .sec-divider-img {
  position: relative;
  z-index: 2;
}

.timeline-box {
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  padding-left: 32px;
  z-index: 2;
}

.timeline-box::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 20px;
  bottom: 30px;
  width: 2.5px;
  background: linear-gradient(180deg, #b8860b 0%, #d4af37 50%, rgba(184, 134, 11, 0.25) 100%);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.story-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(184, 134, 11, 0.38);
  border-radius: 20px;
  padding: 20px 22px 18px;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(60, 36, 21, 0.12);
  position: relative;
}

.story-card::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 15px;
  pointer-events: none;
}

.story-card::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fae69e 0%, #d4af37 50%, #966716 100%);
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 0 2px #b8860b, 0 3px 8px rgba(184, 134, 11, 0.5);
  z-index: 2;
}

.story-chapter-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 700;
  color: #966716;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.story-title {
  font-family: 'Cinzel', var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #3b1e0d;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.story-text {
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 1.8;
  color: #3a1e12;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* ============================================================
   9. AMPLOP DIGITAL & KIRIM HADIAH
   ============================================================ */
.sec-gift {
  position: relative;
  background: transparent;
  color: var(--primary-brown);
}

.sec-gift::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/background-wedding-gift-jawa-03-1.png') center center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 3%,
    rgba(0, 0, 0, 0.35) 8%,
    rgba(0, 0, 0, 0.70) 14%,
    rgba(0, 0, 0, 0.95) 20%,
    black 28%,
    black 72%,
    rgba(0, 0, 0, 0.95) 78%,
    rgba(0, 0, 0, 0.70) 84%,
    rgba(0, 0, 0, 0.35) 90%,
    rgba(0, 0, 0, 0.08) 96%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 3%,
    rgba(0, 0, 0, 0.35) 8%,
    rgba(0, 0, 0, 0.70) 14%,
    rgba(0, 0, 0, 0.95) 20%,
    black 28%,
    black 72%,
    rgba(0, 0, 0, 0.95) 78%,
    rgba(0, 0, 0, 0.70) 84%,
    rgba(0, 0, 0, 0.35) 90%,
    rgba(0, 0, 0, 0.08) 96%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.gift-container-card {
  max-width: 420px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(184, 134, 11, 0.38);
  border-radius: 24px;
  padding: 30px 20px 26px;
  box-shadow: 0 10px 32px rgba(60, 36, 21, 0.12);
  position: relative;
  z-index: 2;
  text-align: center;
}

.gift-container-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  pointer-events: none;
}

.gift-desc {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.75;
  color: #3b2214;
  font-weight: 500;
  max-width: 360px;
  margin: 0 auto 22px;
  position: relative;
  z-index: 1;
}

.btn-toggle-envelope {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #c59837 0%, #fae69e 45%, #c59837 78%, #9e7220 100%);
  color: #381e0d;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(250, 230, 158, 0.85);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  margin-bottom: 25px;
  transition: all 0.3s ease;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-toggle-envelope i {
  color: #381e0d;
  font-size: 13.5px;
}

.btn-toggle-envelope:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #d4af37 0%, #fff0b8 45%, #d4af37 78%, #a87d25 100%);
  box-shadow: 0 8px 25px rgba(184, 134, 11, 0.48), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.envelope-accordion {
  display: block;
  max-width: 420px;
  margin: 0 auto;
}

/* Skeuomorphic Bank Card */
.bank-card {
  background: linear-gradient(135deg, #2b394e 0%, #172233 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bank-card-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.bank-logo {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

.bank-card-middle {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.atm-chip {
  width: 38px;
  height: auto;
}

.bank-acc-num {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  letter-spacing: 3.2px;
  font-weight: 700;
  color: #fae69e;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.bank-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bank-holder {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
}

.btn-card-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(250, 230, 158, 0.45);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-copy:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Physical Gift Registry Card */
.physical-gift-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(140, 105, 68, 0.3);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 6px 20px rgba(60, 36, 21, 0.08);
  text-align: left;
}

.gift-icon-hdr {
  text-align: center;
  font-size: 28px;
  color: var(--secondary-brown);
  margin-bottom: 8px;
}

.gift-card-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--primary-brown);
  margin-bottom: 16px;
}

.gift-info-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 18px;
}

.gift-info-row {
  display: flex;
}

.gift-lbl {
  width: 110px;
  font-weight: 600;
  color: var(--primary-brown);
  white-space: nowrap;
}

.gift-sep {
  width: 15px;
  text-align: center;
}

.gift-val {
  flex: 1;
  color: var(--dark-wood);
  line-height: 1.5;
}

.btn-copy-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(104deg, #8c6944 0%, #593520 100%);
  color: #ffffff;
  padding: 12px;
  border-radius: 25px;
  font-family: 'Cinzel', serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(250, 230, 158, 0.35);
  box-shadow: 0 4px 12px rgba(89, 53, 32, 0.25);
  transition: all 0.3s ease;
}

.btn-copy-address:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(89, 53, 32, 0.38);
}

/* ============================================================
   10. BUKU TAMU / RSVP & WISHES FEED
   ============================================================ */
.sec-rsvp {
  position: relative;
  background: transparent;
  color: var(--primary-brown);
}

.sec-rsvp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/background-wishes-jawa-03-1.png') center center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 3%,
    rgba(0, 0, 0, 0.35) 8%,
    rgba(0, 0, 0, 0.70) 14%,
    rgba(0, 0, 0, 0.95) 20%,
    black 28%,
    black 72%,
    rgba(0, 0, 0, 0.95) 78%,
    rgba(0, 0, 0, 0.70) 84%,
    rgba(0, 0, 0, 0.35) 90%,
    rgba(0, 0, 0, 0.08) 96%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 3%,
    rgba(0, 0, 0, 0.35) 8%,
    rgba(0, 0, 0, 0.70) 14%,
    rgba(0, 0, 0, 0.95) 20%,
    black 28%,
    black 72%,
    rgba(0, 0, 0, 0.95) 78%,
    rgba(0, 0, 0, 0.70) 84%,
    rgba(0, 0, 0, 0.35) 90%,
    rgba(0, 0, 0, 0.08) 96%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.rsvp-form-box {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(184, 134, 11, 0.38);
  border-radius: 24px;
  padding: 30px 22px 26px;
  max-width: 420px;
  margin: 0 auto 30px;
  box-shadow: 0 10px 32px rgba(60, 36, 21, 0.12);
  position: relative;
  z-index: 2;
  text-align: left;
}

.rsvp-form-box::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  pointer-events: none;
}

.rsvp-header {
  text-align: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.form-label-royal {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: #3b1e0d;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.form-group {
  margin-bottom: 16px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(140, 105, 68, 0.35);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 13.5px;
  background: #fdfaf6;
  color: var(--dark-text);
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary-brown);
  background: #ffffff;
}

.form-textarea {
  min-height: 90px;
  resize: none;
}

.attendance-group {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.btn-att {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  border: 1px solid rgba(140, 105, 68, 0.35);
  background: #fdfaf6;
  color: var(--primary-brown);
  font-family: 'Cinzel', serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-att.active {
  background: var(--primary-brown);
  color: #ffffff;
  border-color: var(--primary-brown);
}

.btn-submit-wishes {
  width: 100%;
  padding: 13px;
  background: linear-gradient(104deg, #8c6944 0%, #593520 100%);
  color: #ffffff;
  border-radius: 25px;
  border: 1px solid rgba(250, 230, 158, 0.35);
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(89, 53, 32, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-submit-wishes:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(89, 53, 32, 0.45);
}

/* Wishes List Feed */
.wishes-feed {
  max-width: 420px;
  margin: 0 auto;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 28px;
}

.wish-item-card {
  background: #ffffff;
  border: 1px solid rgba(140, 105, 68, 0.22);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 3px 12px rgba(60, 36, 21, 0.06);
  text-align: left;
}

.wish-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.wish-author {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--primary-brown);
  font-weight: 600;
}

.wish-badge {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.wish-badge.hadir {
  background: #e8f5e9;
  color: #2e7d32;
}

.wish-badge.tidak-hadir {
  background: #ffebee;
  color: #c62828;
}

.wish-msg {
  font-size: 13px;
  line-height: 1.6;
  color: var(--dark-wood);
}

.wish-date {
  font-size: 11px;
  color: #705443;
  margin-top: 6px;
  font-weight: 500;
}

/* ============================================================
   11. PENUTUP (CLOSING)
   ============================================================ */
.sec-closing {
  position: relative;
  background: #1e0f08;
  color: #ffffff;
  padding-bottom: 95px;
  overflow: hidden;
}

.sec-closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/background-closing-jawa-03.jpg') center center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 4%,
    rgba(0, 0, 0, 0.45) 10%,
    rgba(0, 0, 0, 0.85) 16%,
    black 22%,
    black 100%
  );
  mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 4%,
    rgba(0, 0, 0, 0.45) 10%,
    rgba(0, 0, 0, 0.85) 16%,
    black 22%,
    black 100%
  );
  pointer-events: none;
  z-index: 0;
}

.sec-closing::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(247, 243, 236, 0.95) 0%,
    rgba(247, 243, 236, 0.55) 6%,
    rgba(30, 15, 8, 0.25) 16%,
    rgba(30, 15, 8, 0.55) 30%,
    rgba(30, 15, 8, 0.65) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.closing-content {
  position: relative;
  z-index: 2;
  max-width: 420px;
  margin: 0 auto;
  background: rgba(30, 15, 8, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 22px;
  padding: 32px 24px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.closing-text {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.85;
  color: #f7ede2;
  margin-bottom: 18px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.closing-salam {
  font-family: 'Cinzel', var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--gold-light);
  margin-bottom: 20px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.closing-regards {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: #fae8c8;
  margin-bottom: 10px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.closing-names {
  font-family: var(--font-display);
  font-size: 42px;
  color: #ffffff !important;
  text-shadow: 0 3px 12px rgba(0,0,0,0.8);
  margin-bottom: 18px;
}

.closing-family {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.85;
  color: #fae8c8;
  margin-bottom: 25px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.closing-family .gold-amp {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  color: #fae69e;
  margin: 0 2px;
}

.closing-emblem {
  width: 120px;
  height: auto;
  margin: 0 auto;
  opacity: 0.9;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
}

.closing-credit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(30, 15, 8, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 50px;
  padding: 7px 18px;
  margin: 32px auto 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.8px;
  color: #fae8c8;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.closing-credit-badge strong {
  color: var(--gold-light);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* ============================================================
   FLOATING MUSIC BUTTON & LIGHTBOX MODAL
   ============================================================ */
.music-btn {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  left: calc(18px + env(safe-area-inset-left, 0px));
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #593520;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  color: #593520;
  font-size: 15px;
  transition: all 0.3s ease;
}

@media (min-width: 992px) {
  .music-btn {
    left: 30px;
    bottom: 30px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

.music-btn.playing i {
  animation: spinRecord 4s linear infinite;
}

@keyframes spinRecord {
  100% { transform: rotate(360deg); }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 30px;
  color: #ffffff;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(38, 19, 11, 0.95);
  color: #f7e7c4;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  border: 1px solid var(--gold-accent);
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  z-index: 999999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================
   ELEMENTOR / ANIMATE.CSS ANIMATION ENGINE
   ============================================================ */
.animated {
  animation-duration: 1.25s;
  animation-fill-mode: both;
}

.animated-slow {
  animation-duration: 2s;
  animation-fill-mode: both;
}

.animated-fast {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-26px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(26px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.92, 0.92, 1) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1) translateY(0);
  }
}

@keyframes rotateInDownLeft {
  from {
    transform: rotate3d(0, 0, 1, -12deg) translate3d(-10px, 10px, 0);
    opacity: 0;
    transform-origin: left bottom;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    transform-origin: left bottom;
  }
}

@keyframes rotateInDownRight {
  from {
    transform: rotate3d(0, 0, 1, 12deg) translate3d(10px, 10px, 0);
    opacity: 0;
    transform-origin: right bottom;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    transform-origin: right bottom;
  }
}

/* Scroll reveal triggers */
.idb-reveal {
  opacity: 0;
  transition: opacity 0.5s ease-out;
  will-change: opacity, transform;
}

.idb-reveal.active {
  opacity: 1 !important;
}

.idb-reveal.active.fade-up,
.idb-reveal.active.fadeInUp {
  animation: fadeInUp 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.idb-reveal.active.fadeInDown {
  animation: fadeInDown 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.idb-reveal.active.zoom-in,
.idb-reveal.active.zoomIn {
  animation: zoomIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.idb-reveal.active.fadeInLeft {
  animation: fadeInLeft 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.idb-reveal.active.zoom-down {
  animation: fadeInDown 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.idb-reveal.active.rotateInDownLeft {
  animation: rotateInDownLeft 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.idb-reveal.active.rotateInDownRight {
  animation: rotateInDownRight 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Staggered Animation Delays */
.idb-reveal.delay-100 { animation-delay: 0.15s !important; }
.idb-reveal.delay-200 { animation-delay: 0.28s !important; }
.idb-reveal.delay-300 { animation-delay: 0.40s !important; }
.idb-reveal.delay-400 { animation-delay: 0.52s !important; }
.idb-reveal.delay-500 { animation-delay: 0.65s !important; }
