/* ==========================================================================
   HansSanctuary - Art-Jawa-Biru Stylesheet
   Stand-alone unified CSS bundle
   ========================================================================== */

/* 1. RESET & BASE */
/* ==========================================================================
   HansSanctuary - CSS Reset & Base Optimizations
   Prevents CLS, sets up responsive viewport and box-sizing
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--desktop-bg);
  background-image: var(--desktop-flower-bg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--color-text-main);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: hidden; /* Locked until envelope opened */
}

body.invitation-opened {
  overflow-y: auto;
}

/* Image Optimization & Zero CLS Guarantee */
img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  content-visibility: auto;
}

input, button, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* Screen reader only utility */
.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;
}



/* 2. BASE VARIABLES */
/* ==========================================================================
   HansSanctuary - Design Tokens & Variables
   Optimized for High Performance Mobile-First Digital Invitations
   ========================================================================== */

:root {
  /* Color Palette - Luxury Champagne & Warm Ivory */
  --color-primary: #C5A880;          /* Champagne Gold */
  --color-primary-light: #EADBC8;    /* Soft Gold Tint */
  --color-primary-dark: #8C6D42;     /* Antique Gold */
  --color-primary-deep: #5A4325;     /* Deep Bronze */
  
  --color-bg-main: #FBF9F5;          /* Warm Ivory Background */
  --color-bg-card: rgba(255, 255, 255, 0.85); /* Frosted Glass */
  --color-bg-alt: #F3EFEA;           /* Sandstone Section Background */
  --color-surface: #FFFFFF;
  
  --color-text-main: #2C2C2C;        /* Charcoal for readability */
  --color-text-muted: #6B6864;       /* Elegant muted slate */
  --color-text-gold: #967548;        /* Contrast Gold Text */
  --color-border: rgba(197, 168, 128, 0.3);
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-title: 'Cinzel', 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Great Vibes', cursive, serif;

  /* Shadows & Elevations */
  --shadow-sm: 0 2px 8px rgba(35, 25, 15, 0.05);
  --shadow-md: 0 8px 24px rgba(35, 25, 15, 0.08);
  --shadow-lg: 0 16px 40px rgba(35, 25, 15, 0.12);
  --shadow-gold: 0 4px 20px rgba(197, 168, 128, 0.35);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Spacing & Desktop Presentation */
  --container-max-width: 480px;      /* Optimal Mobile/Tablet Screen Width */
  --desktop-bg: #F8F5EE;             /* Clean ivory & gold desktop backdrop */
  --desktop-flower-bg: url('bg-floral-royal.svg');
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}



/* 3. ANIMATIONS & REVEALS */
/* ==========================================================================
   HansSanctuary - Scroll Reveal & Keyframe Animations
   Pure CSS hardware-accelerated transitions (Transform & Opacity only)
   60fps performance on mobile devices with zero layout recalculations
   ========================================================================== */

/* Base Reveal Attribute */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Specific Reveal Directions */
[data-reveal="fade-in"] {
  transform: none;
}

[data-reveal="slide-up"] {
  transform: translate3d(0, 36px, 0);
}

[data-reveal="slide-down"] {
  transform: translate3d(0, -36px, 0);
}

[data-reveal="slide-left"] {
  transform: translate3d(40px, 0, 0);
}

[data-reveal="slide-right"] {
  transform: translate3d(-40px, 0, 0);
}

[data-reveal="zoom-in"] {
  transform: scale(0.92);
}

/* Active State applied via IntersectionObserver */
[data-reveal].is-revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

/* Transition Delays for Staggered Effects */
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="600"] { transition-delay: 600ms; }
[data-delay="800"] { transition-delay: 800ms; }

/* --------------------------------------------------------------------------
   Floating Petals & Sparkle Dust (Pure CSS Animation)
   -------------------------------------------------------------------------- */
.petals-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.petal {
  position: absolute;
  top: -24px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 235, 238, 0.92) 0%, rgba(245, 205, 205, 0.78) 50%, rgba(197, 168, 128, 0.45) 90%);
  border-radius: 80% 0 55% 50% / 55% 0 80% 50%;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(197, 168, 128, 0.18);
  animation: fall linear infinite;
  will-change: transform;
}

.petal:nth-child(1) { left: 10%; width: 14px; height: 16px; animation-duration: 9s; animation-delay: 0s; }
.petal:nth-child(2) { left: 25%; width: 10px; height: 12px; animation-duration: 12s; animation-delay: 2s; }
.petal:nth-child(3) { left: 45%; width: 16px; height: 18px; animation-duration: 8s; animation-delay: 4s; }
.petal:nth-child(4) { left: 65%; width: 12px; height: 14px; animation-duration: 11s; animation-delay: 1s; }
.petal:nth-child(5) { left: 80%; width: 15px; height: 17px; animation-duration: 10s; animation-delay: 3s; }
.petal:nth-child(6) { left: 90%; width: 11px; height: 13px; animation-duration: 13s; animation-delay: 5s; }

@keyframes fall {
  0% {
    transform: translate3d(0, -20px, 0) rotate(0deg) rotateY(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.88;
  }
  50% {
    transform: translate3d(30px, 50vh, 0) rotate(180deg) rotateY(180deg);
    opacity: 0.82;
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translate3d(60px, 105vh, 0) rotate(360deg) rotateY(360deg);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Ambient Romantic Float & Shimmer Effects
   -------------------------------------------------------------------------- */
@keyframes romanticFloatSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero-portrait-wrap.is-revealed {
  animation: romanticFloatSlow 6s ease-in-out infinite;
}

.couple-photo-wrap {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.couple-card:hover .couple-photo-wrap {
  transform: translateY(-4px) scale(1.02);
}

@keyframes goldGlintSweep {
  0% { transform: translateX(-150%) rotate(25deg); }
  25%, 100% { transform: translateX(180%) rotate(25deg); }
}

.event-card, .bank-card, .rsvp-card {
  position: relative;
  overflow: hidden;
}

.event-card::after, .bank-card::after, .rsvp-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(212, 175, 55, 0.08) 50%, transparent 60%);
  transform: rotate(25deg);
  animation: goldGlintSweep 8s ease-in-out infinite;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Spinning Vinyl Animation for Audio Player
   -------------------------------------------------------------------------- */
@keyframes spinVinyl {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.is-spinning {
  animation: spinVinyl 6s linear infinite;
}

/* Sound Waves Pulsing Effect */
@keyframes pulseWave {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.4; }
  100% { transform: scale(1); opacity: 0.8; }
}

.wave-pulse {
  animation: pulseWave 2s infinite ease-in-out;
}

/* Accessibility: Reduce motion if preferred */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .petal {
    display: none !important;
  }
  .is-spinning {
    animation: none !important;
  }
}



/* 4. ENVELOPE & COVER OVERLAY */
/* ==========================================================================
   HansSanctuary - Envelope Cover Component
   High-performance 3D envelope opening transition with pure CSS transforms
   ========================================================================== */

.envelope-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--desktop-bg);
  background-image: var(--desktop-flower-bg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1),
              opacity 1s ease;
  overflow: hidden;
  will-change: transform, opacity;
}

/* Ambient glow particles behind envelope */
.envelope-overlay::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0.8; }
}

.envelope-wrapper {
  position: relative;
  width: 92%;
  max-width: 380px;
  max-height: 94vh;
  max-height: 94dvh;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The Envelope Container (Paskan 1 Layar HP) */
.envelope {
  position: relative;
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  background: linear-gradient(145deg, #FFFFFF 0%, #FAF8F3 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 45px rgba(197, 168, 128, 0.25), 0 0 0 1px rgba(212, 175, 55, 0.35);
  padding: 22px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Corner filigree decorations */
.envelope-corner {
  position: absolute;
  width: 42px;
  height: 42px;
  pointer-events: none;
  opacity: 0.55;
}
.corner-tl { top: 8px; left: 8px; }
.corner-tr { top: 8px; right: 8px; transform: rotate(90deg); }
.corner-bl { bottom: 8px; left: 8px; transform: rotate(270deg); }
.corner-br { bottom: 8px; right: 8px; transform: rotate(180deg); }

/* Envelope Flap 3D Simulation (Header Flap Rapi & Elegan) */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 54px;
  background: linear-gradient(180deg, #E5DCB0 0%, #D8CEBD 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.12));
}

/* Wax Seal Centered (Denyut Pendaran Emas Romantis di Atas Konten) */
.envelope-wax-seal {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 12;
  width: 48px;
  height: 48px;
  transition: transform 0.5s ease, opacity 0.5s ease;
  filter: drop-shadow(0 4px 10px rgba(80, 50, 20, 0.4));
  animation: waxSealBreath 3.5s ease-in-out infinite;
}

@keyframes waxSealBreath {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 4px 10px rgba(80, 50, 20, 0.4));
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    filter: drop-shadow(0 6px 18px rgba(212, 175, 55, 0.65));
  }
}

/* Kilauan Stardust Emas pada Amplop */
.envelope-sparkle {
  position: absolute;
  background: radial-gradient(circle, #FFFFFF 0%, #FFEAA7 40%, #D4AF37 80%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkleTwinkle ease-in-out infinite alternate;
}

.envelope-sparkle.es1 { top: 20%; left: 18%; width: 6px; height: 6px; animation-duration: 2.2s; animation-delay: 0.2s; }
.envelope-sparkle.es2 { top: 32%; right: 20%; width: 8px; height: 8px; animation-duration: 3s; animation-delay: 1.1s; }
.envelope-sparkle.es3 { top: 72%; left: 22%; width: 5px; height: 5px; animation-duration: 2.6s; animation-delay: 0.7s; }
.envelope-sparkle.es4 { top: 82%; right: 25%; width: 7px; height: 7px; animation-duration: 3.4s; animation-delay: 1.6s; }

@keyframes sparkleTwinkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.65) rotate(0deg);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.2) rotate(90deg);
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.85));
  }
}

/* Content inside the envelope invitation card (Tidak Tertutup Lipatan/Seal) */
.envelope-content {
  position: relative;
  z-index: 5;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px; /* Ruang aman eksklusif: nama pengantin 100% bebas terlihat tanpa terhalang */
}

.envelope-badge {
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
  font-weight: 600;
}

.envelope-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--color-text-main);
  line-height: 1.2;
  margin-bottom: 6px;
  font-weight: 700;
}

.envelope-subtitle {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.envelope-recipient {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  width: 100%;
  max-width: 290px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(197, 168, 128, 0.1);
}

.recipient-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.recipient-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-deep);
  word-break: break-word;
}

.recipient-note {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  margin-top: 3px;
  font-style: italic;
}

/* Open Invitation CTA Button (Simetris & Proporsional di HP) */
.btn-open-invitation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 250px;
  min-height: 46px;
  background: linear-gradient(135deg, #C5A880 0%, #A68453 100%);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 18px rgba(166, 132, 83, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  animation: invitePulse 3.2s ease-in-out infinite;
}

@keyframes invitePulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(166, 132, 83, 0.35);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(212, 175, 55, 0.55);
  }
}

.btn-open-invitation:hover,
.btn-open-invitation:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 25px rgba(166, 132, 83, 0.45);
}

.btn-open-invitation:active {
  transform: translateY(1px) scale(0.98);
}

/* Subtle shine animation on the button */
.btn-open-invitation::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: rotate(25deg);
  animation: shineButton 3.5s infinite;
}

@keyframes shineButton {
  0% { transform: translateX(-100%) rotate(25deg); }
  25%, 100% { transform: translateX(100%) rotate(25deg); }
}

/* OPENING STATE ANIMATIONS */
.envelope-overlay.is-opening .envelope-flap {
  transform: rotateX(-180deg);
}

.envelope-overlay.is-opening .envelope-wax-seal {
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
}

.envelope-overlay.is-opened {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}



/* 5. LAYOUT & DESKTOP SCREEN CONTAINER */
/* ==========================================================================
   HansSanctuary - Layout & Typography (Mobile-First)
   Optimized for high visual appeal on smartphones with elegant desktop wrapper
   ========================================================================== */

/* Outer Desktop Frame: Centered mobile screen simulation on desktop */
.app-container,
.invitation-container {
  width: 100%;
  max-width: var(--container-max-width, 480px);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-bg-main, #FFFFFF);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.16);
  position: relative;
  overflow-x: hidden;
}

/* Common Section Styling */
.section {
  position: relative;
  padding: 64px 24px;
  text-align: center;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  margin-bottom: 36px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Ornamental SVG Dividers */
.ornament-divider {
  display: block;
  width: 180px;
  height: 24px;
  margin: 12px auto 0 auto;
}

.ornament-header {
  display: block;
  width: 200px;
  height: 50px;
  margin: 0 auto 12px auto;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 90vh;
  min-height: 90dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 40px;
  background: radial-gradient(circle at 50% 30%, #FFFDF9 0%, #F5EFE6 100%);
  overflow: hidden;
}

.hero-portrait-wrap {
  position: relative;
  width: 240px;
  height: 320px;
  margin: 0 auto 28px;
}

.hero-portrait-frame {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  pointer-events: none;
  z-index: 3;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 120px 120px 16px 16px; /* Arched luxury shape */
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
}

.hero-pretitle {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.hero-couple-names {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-text-main);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-couple-names span {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--color-primary);
  display: inline-block;
  margin: 0 4px;
}

.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-deep);
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Quote / Verse Section
   -------------------------------------------------------------------------- */
.quote-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-text-main);
  line-height: 1.8;
  margin-bottom: 16px;
}

.quote-source {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   Couple Section (Groom & Bride)
   -------------------------------------------------------------------------- */
.couple-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.couple-card {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.couple-photo-wrap {
  position: relative;
  width: 180px;
  height: 220px;
  margin-bottom: 20px;
}

.couple-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 90px 90px 12px 12px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 9 / 11;
  border: 2px solid var(--color-primary-light);
}

.couple-frame {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  pointer-events: none;
}

.couple-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.couple-title {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.couple-parents {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.couple-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--color-primary-deep);
  padding: 6px 14px;
  background: rgba(197, 168, 128, 0.12);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: background var(--transition-fast);
}

.couple-social:hover {
  background: rgba(197, 168, 128, 0.25);
}

/* Lottie Center Divider */
.lottie-ring-container {
  width: 140px;
  height: 140px;
  margin: -10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Events Section (Akad & Resepsi)
   -------------------------------------------------------------------------- */
.event-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.event-type {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary-deep);
  margin-bottom: 16px;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.event-venue-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 6px;
}

.event-address {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.event-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  background: linear-gradient(135deg, #C5A880 0%, #A68453 100%);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(166, 132, 83, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(166, 132, 83, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  background: transparent;
  color: var(--color-primary-deep);
  border: 1.5px solid var(--color-primary);
  padding: 11px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition-fast), color var(--transition-fast);
  box-sizing: border-box;
}

.btn-outline:hover {
  background: rgba(197, 168, 128, 0.1);
}

/* --------------------------------------------------------------------------
   Love Story Timeline Section
   -------------------------------------------------------------------------- */
.story-timeline {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  padding: 10px 0 20px;
}

.story-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--color-primary-light);
  transform: translateX(-50%);
}

.story-item {
  position: relative;
  margin-bottom: 36px;
}

.story-dot {
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px var(--color-primary-light);
  border-radius: 50%;
  margin: 0 auto 12px;
  position: relative;
  z-index: 2;
}

.story-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.story-year {
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 4px;
}

.story-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.story-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  aspect-ratio: 16 / 9;
}

.story-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Gallery Section (Zero CLS Grid)
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background-color: var(--color-bg-alt);
  aspect-ratio: 1 / 1;
}

.gallery-item:nth-child(3n + 1) {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

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

/* --------------------------------------------------------------------------
   Footer & Closing Section
   -------------------------------------------------------------------------- */
.closing-section {
  padding-bottom: 100px; /* Room for floating controls */
}

.footer-brand {
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-credits {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}



/* 6. COMPONENTS (ATM DEBIT CARDS, COUNTDOWN, RSVP, AUDIO, LIGHTBOX) */
/* ==========================================================================
   HansSanctuary - Components (Floating Audio, Countdown, RSVP, Gift, Lightbox)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Floating Audio Player Component
   -------------------------------------------------------------------------- */
.floating-audio {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 16px rgba(197, 168, 128, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  color: var(--color-primary-dark);
}

.audio-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.4);
}

.audio-disc-icon {
  width: 48px;
  height: 48px;
  position: absolute;
  inset: 0;
  margin: auto;
  pointer-events: none;
}

.audio-status-icon {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  color: var(--color-primary-deep);
}

/* Ripple wave pulse when playing */
.audio-btn.is-playing::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  animation: audioPulse 2s infinite ease-out;
  pointer-events: none;
}

@keyframes audioPulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* --------------------------------------------------------------------------
   2. Countdown Timer Component
   -------------------------------------------------------------------------- */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 380px;
  margin: 24px auto 0;
}

.countdown-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.countdown-num {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary-deep);
  line-height: 1;
  margin-bottom: 4px;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   3. Wedding Gift / Amplop Digital & Realistic ATM Debit Cards
   Aspect Ratio: ISO/IEC 7810 ID-1 (1.586 : 1)
   -------------------------------------------------------------------------- */
.gift-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
}

.gift-bank-logo {
  height: 34px;
  margin: 0 auto 14px;
}

.gift-account-number {
  font-family: monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.gift-account-holder {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  min-height: 42px;
  margin: 0 auto;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(197, 168, 128, 0.15);
  color: var(--color-primary-deep);
  font-size: 0.84rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-sizing: border-box;
  cursor: pointer;
  border: 1px solid rgba(197, 168, 128, 0.4);
}

.btn-copy:hover {
  background: var(--color-primary);
  color: #FFFFFF;
}

.qris-preview {
  width: 170px;
  height: 170px;
  margin: 12px auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

/* Realistic Physical ATM / Debit Card Container */
.atm-card-wrapper {
  max-width: 380px;
  margin: 0 auto 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.atm-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: 16px;
  padding: 18px 22px;
  box-sizing: border-box;
  color: #FFFFFF;
  overflow: hidden;
  box-shadow: 
    0 18px 38px rgba(0, 0, 0, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  user-select: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.atm-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 
    0 24px 46px rgba(0, 0, 0, 0.36),
    0 6px 16px rgba(0, 0, 0, 0.22),
    inset 0 1px 2px rgba(255, 255, 255, 0.45);
}

/* Metallic holographic shine refraction overlay */
.atm-card::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 220%;
  background: linear-gradient(
    115deg,
    transparent 36%,
    rgba(255, 255, 255, 0.12) 46%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.12) 54%,
    transparent 64%
  );
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.65s ease;
}

.atm-card:hover::before {
  transform: rotate(-15deg) translateY(12%);
}

/* Guilloche fine security curves overlay */
.atm-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.22) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* 1. BCA Paspor Platinum / Blue Design */
.atm-card.bca {
  background: 
    radial-gradient(ellipse at 85% 15%, rgba(0, 163, 255, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 85%, rgba(0, 43, 91, 0.9) 0%, transparent 65%),
    linear-gradient(135deg, #061c38 0%, #004b93 42%, #002855 80%, #001229 100%);
}

/* 2. Bank Mandiri Debit Gold / Navy Design */
.atm-card.mandiri {
  background: 
    radial-gradient(ellipse at 90% 75%, rgba(251, 133, 0, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 25%, rgba(255, 183, 3, 0.22) 0%, transparent 50%),
    linear-gradient(135deg, #09172c 0%, #132a4e 44%, #0b1a30 78%, #040a14 100%);
}

.atm-card.mandiri .mandiri-bg-swoosh {
  position: absolute;
  right: -30px;
  top: -20px;
  width: 220px;
  height: 240px;
  background: radial-gradient(circle at 70% 30%, rgba(255, 183, 3, 0.28) 0%, rgba(251, 133, 0, 0.14) 50%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Inner Layers */
.atm-card-header,
.atm-card-number,
.atm-card-footer {
  position: relative;
  z-index: 3;
}

/* Card Header */
.atm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.atm-chip-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.atm-chip {
  width: 44px;
  height: 35px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  display: block;
}

.atm-contactless {
  width: 20px;
  height: 20px;
  opacity: 0.9;
  display: block;
}

.atm-bank-logo {
  height: 26px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  display: block;
}

/* Card Number: 3D Embossed Font */
.atm-card-number {
  font-family: 'OCR A Extended', 'Courier New', Courier, monospace;
  font-size: clamp(1.05rem, 4.4vw, 1.28rem);
  font-weight: 700;
  letter-spacing: clamp(1.8px, 0.8vw, 3px);
  color: #FFFFFF;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 -1px 0.5px rgba(255, 255, 255, 0.6),
    1px 0 1px rgba(0, 0, 0, 0.8);
  margin: 8px 0 6px;
  display: flex;
  justify-content: space-between;
}

/* Card Footer */
.atm-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.atm-holder-wrap {
  display: flex;
  flex-direction: column;
}

.atm-card-validity {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.atm-valid-label {
  font-size: 0.5rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.atm-valid-date {
  font-family: 'OCR A Extended', 'Courier New', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #FFFFFF;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85);
}

.atm-card-holder {
  font-family: 'OCR A Extended', 'Courier New', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 -0.5px 0.5px rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.atm-network-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.atm-network-logo {
  height: 24px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  display: block;
}

.atm-debit-text {
  font-family: 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 1px;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Action button underneath ATM Card */
.btn-atm-copy {
  margin-top: 10px;
  width: 100%;
  max-width: 380px;
}

/* --------------------------------------------------------------------------
   4. RSVP & Wishes Form
   -------------------------------------------------------------------------- */
.rsvp-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(197, 168, 128, 0.4);
  border-radius: var(--radius-sm);
  background: #FFFDFB;
  color: var(--color-text-main);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2);
}

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

/* Radio Group for Attendance (Simetris di HP) */
.radio-group {
  display: flex;
  gap: 6px;
  width: 100%;
}

.radio-label {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border: 1px solid rgba(197, 168, 128, 0.4);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  background: #FFFDFB;
  transition: all var(--transition-fast);
  text-align: center;
  box-sizing: border-box;
}

.radio-label input {
  display: none;
}

.radio-label:has(input:checked) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
  font-weight: 600;
}

.wishes-list {
  margin-top: 28px;
  max-height: 320px;
  overflow-y: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.wish-item {
  background: #FAF7F2;
  border: 1px solid rgba(197, 168, 128, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px;
}

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

.wish-author {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary-deep);
}

.wish-status-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(197, 168, 128, 0.2);
  color: var(--color-primary-dark);
  font-weight: 600;
}

.wish-text {
  font-size: 0.82rem;
  color: var(--color-text-main);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   5. Toast Notification System
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2C2825;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  border: 1px solid rgba(197, 168, 128, 0.4);
}

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

/* --------------------------------------------------------------------------
   6. Lightbox Modal
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 12, 10, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}



/* 7. THEME-SPECIFIC CUSTOMIZATIONS: Art-Jawa-Biru */
:root {
      --color-royal-blue: #162c4a;
      --color-royal-blue-light: #284B73;
      --color-royal-navy: #0a192f;
      --color-gold-jawa: #D7BB83;
      --color-gold-light: #FCE5A2;
      --color-gold-dark: #A37F38;
      
      --color-bg-body: #081220;
      --color-bg-card: rgba(255, 255, 255, 0.96);
      --color-card-border: rgba(215, 187, 131, 0.45);
      
      --color-text-title: #284B73;
      --color-text-dark: #1f2d3d;
      --color-text-muted: #536579;
      --color-text-gold: #C09A4D;

      --font-jawa-title: 'Cormorant Infant', 'Playfair Display', serif;
      --font-jawa-script: 'Pinyon Script', cursive;
      --font-jawa-body: 'Poppins', 'Lora', sans-serif;
    }

    /* Desktop Outer Viewport Background */
    body {
      background-color: var(--color-bg-body);
      background-image: url('farhan-hannah/bg-floral-jawa-biru.svg');
      background-repeat: no-repeat;
      background-position: center center;
      background-attachment: fixed;
      background-size: cover;
      margin: 0;
      padding: 0;
      font-family: var(--font-jawa-body);
      color: var(--color-text-dark);
      overflow-x: hidden;
    }

    /* Constrained App Container to Mobile Screen */
    .app-container {
      max-width: 480px;
      margin: 0 auto;
      min-height: 100vh;
      background: #0a192f url('art-jawa-biru/BACK-JAWA-BIRU-3-3.jpg') top center repeat-y;
      background-size: 100% auto;
      box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
      position: relative;
      overflow: hidden;
    }

    /* Prevent scrolling when cover modal is active */
    body.locked-scroll {
      overflow: hidden !important;
      height: 100vh !important;
    }

    /* -----------------------------------------------------------------------
       1. COVER / FULLSCREEN INVITATION MODAL
       ----------------------------------------------------------------------- */
    .jawa-cover-overlay {
      position: fixed;
      inset: 0;
      z-index: 999999;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(4, 9, 18, 0.92);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
    }

    .jawa-cover-overlay.is-opened {
      transform: translateY(-100%);
      opacity: 0;
      pointer-events: none;
    }

    .jawa-cover-container {
      width: 100%;
      max-width: 440px;
      height: 100vh;
      max-height: 900px;
      background: #0a192f url('art-jawa-biru/CVR-JAWA-BIRU-3-2.jpg') center center no-repeat;
      background-size: cover;
      box-shadow: 0 10px 40px rgba(0,0,0,0.8);
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      padding: 36px 20px 40px;
      box-sizing: border-box;
      text-align: center;
      color: #FFFFFF;
      overflow-y: auto;
    }

    .jawa-gunungan-ornament {
      width: 90px;
      height: auto;
      filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
      animation: gentleFloat 4s ease-in-out infinite;
      margin-bottom: 6px;
    }

    @keyframes gentleFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }

    .cover-top-tag {
      font-family: 'Cinzel', serif;
      font-size: 0.82rem;
      letter-spacing: 4px;
      text-transform: uppercase;
      color: var(--color-gold-jawa);
      margin-bottom: 2px;
      text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    }

    .cover-title-names {
      font-family: var(--font-jawa-title);
      font-size: 2.5rem;
      font-weight: 700;
      color: #FFFFFF;
      line-height: 1.15;
      margin: 4px 0 14px;
      text-shadow: 0 3px 12px rgba(0,0,0,0.8);
    }

    .cover-title-names span {
      color: var(--color-gold-jawa);
      font-family: var(--font-jawa-script);
      font-size: 3rem;
      font-weight: 400;
      vertical-align: middle;
      display: inline-block;
      margin: 0 4px;
    }

    /* Arched Couple Portrait on Cover */
    .cover-arch-photo {
      width: 170px;
      height: 225px;
      border-radius: 95px 95px 14px 14px;
      border: 3px solid var(--color-gold-jawa);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(215, 187, 131, 0.4);
      overflow: hidden;
      margin: 0 auto 16px;
      position: relative;
    }

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

    /* Guest Recipient Card */
    .cover-guest-box {
      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1.5px solid var(--color-gold-jawa);
      border-radius: 16px;
      padding: 16px 20px;
      width: 100%;
      max-width: 320px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.4);
      color: var(--color-text-dark);
      margin-bottom: 18px;
    }

    .guest-to-label {
      font-size: 0.76rem;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: var(--color-royal-blue);
      font-weight: 600;
      margin-bottom: 4px;
    }

    .guest-to-name {
      font-family: var(--font-jawa-title);
      font-size: 1.35rem;
      font-weight: 700;
      color: var(--color-royal-blue-light);
      margin: 2px 0;
      word-break: break-word;
    }

    .guest-to-sub {
      font-size: 0.78rem;
      color: var(--color-text-muted);
      font-style: italic;
    }

    /* Buka Undangan Button */
    .btn-buka-undangan {
      background: linear-gradient(135deg, #284B73 0%, #162c4a 100%);
      border: 1.5px solid var(--color-gold-jawa);
      color: #FFFFFF;
      padding: 13px 28px;
      border-radius: 999px;
      font-family: 'Poppins', sans-serif;
      font-size: 0.92rem;
      font-weight: 600;
      letter-spacing: 1px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      box-shadow: 0 8px 24px rgba(40, 75, 115, 0.6), 0 0 15px rgba(215, 187, 131, 0.4);
      transition: all 0.3s ease;
      animation: btnPulse 2.5s infinite;
    }

    .btn-buka-undangan:hover {
      transform: translateY(-2px) scale(1.03);
      box-shadow: 0 12px 30px rgba(40, 75, 115, 0.8), 0 0 20px rgba(215, 187, 131, 0.6);
      background: linear-gradient(135deg, #325e91 0%, #1c365c 100%);
    }

    @keyframes btnPulse {
      0%, 100% { box-shadow: 0 8px 24px rgba(40, 75, 115, 0.6), 0 0 10px rgba(215, 187, 131, 0.3); }
      50% { box-shadow: 0 12px 32px rgba(40, 75, 115, 0.9), 0 0 22px rgba(215, 187, 131, 0.7); }
    }

    /* -----------------------------------------------------------------------
       2. HERO SECTION (AFTER OPENING)
       ----------------------------------------------------------------------- */
    .jawa-hero-section {
      min-height: 100vh;
      background: url('art-jawa-biru/CVR-JAWA-BIRU-3-2.jpg') top center no-repeat;
      background-size: cover;
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 80px 24px 60px;
      box-sizing: border-box;
      text-align: center;
      color: #FFFFFF;
    }

    .jawa-hero-section::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(10, 25, 47, 0.4) 0%, rgba(10, 25, 47, 0.75) 70%, rgba(10, 25, 47, 0.98) 100%);
      pointer-events: none;
    }

    .hero-inner-content {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .hero-top-badge {
      font-family: 'Cinzel', serif;
      font-size: 0.85rem;
      letter-spacing: 5px;
      color: var(--color-gold-jawa);
      text-transform: uppercase;
      margin-bottom: 12px;
      text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    }

    .hero-main-title {
      font-family: var(--font-jawa-title);
      font-size: 3rem;
      font-weight: 700;
      color: #FFFFFF;
      line-height: 1.15;
      margin: 0 0 16px;
      text-shadow: 0 4px 18px rgba(0,0,0,0.85);
    }

    .hero-main-title em {
      font-family: var(--font-jawa-script);
      font-size: 3.6rem;
      font-style: normal;
      color: var(--color-gold-jawa);
      display: inline-block;
      margin: 0 6px;
    }

    .hero-date-badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 24px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid var(--color-gold-jawa);
      font-size: 0.92rem;
      color: #FFFFFF;
      letter-spacing: 1.5px;
      margin-bottom: 14px;
    }

    .hero-hashtag {
      font-size: 0.84rem;
      letter-spacing: 2px;
      color: var(--color-gold-light);
      font-style: italic;
    }

    /* -----------------------------------------------------------------------
       3. SECTION STYLING & CARDS
       ----------------------------------------------------------------------- */
    .section-jawa {
      padding: 60px 20px;
      position: relative;
      box-sizing: border-box;
    }

    .section-head {
      text-align: center;
      margin-bottom: 32px;
    }

    .jawa-tag {
      font-family: 'Cinzel', serif;
      font-size: 0.78rem;
      letter-spacing: 4px;
      color: var(--color-gold-jawa);
      text-transform: uppercase;
      display: block;
      margin-bottom: 6px;
      font-weight: 600;
    }

    .jawa-title {
      font-family: var(--font-jawa-title);
      font-size: 2.2rem;
      font-weight: 700;
      color: #FFFFFF;
      line-height: 1.25;
      margin: 0 0 10px;
      text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    }

    .jawa-title.dark-text {
      color: var(--color-royal-blue);
    }

    .jawa-desc {
      font-size: 0.86rem;
      line-height: 1.65;
      color: rgba(255, 255, 255, 0.82);
      max-width: 380px;
      margin: 0 auto;
    }

    .jawa-desc.dark-text {
      color: var(--color-text-muted);
    }

    /* Glass White Card */
    .jawa-card {
      background: var(--color-bg-card);
      border: 1.5px solid var(--color-card-border);
      border-radius: 20px;
      padding: 26px 20px;
      box-shadow: 0 14px 36px rgba(4, 10, 20, 0.45);
      position: relative;
      margin-bottom: 24px;
      box-sizing: border-box;
      color: var(--color-text-dark);
    }

    /* -----------------------------------------------------------------------
       4. QUOTE AR-RUM 21 SECTION
       ----------------------------------------------------------------------- */
    .quote-box {
      background: rgba(255, 255, 255, 0.95);
      border: 2px solid var(--color-gold-jawa);
      border-radius: 22px;
      padding: 30px 22px;
      text-align: center;
      box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
      position: relative;
    }

    .quote-frame-ornament {
      width: 140px;
      height: auto;
      margin: 0 auto 16px;
      display: block;
    }

    .quote-body-text {
      font-family: 'Lora', serif;
      font-size: 0.88rem;
      font-style: italic;
      line-height: 1.8;
      color: var(--color-royal-blue);
      margin-bottom: 14px;
    }

    .quote-surah {
      font-family: 'Cinzel', serif;
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--color-gold-dark);
      letter-spacing: 2px;
    }

    /* -----------------------------------------------------------------------
       5. COUPLE PROFILES (BRIDE & GROOM)
       ----------------------------------------------------------------------- */
    .couple-item {
      text-align: center;
      margin-bottom: 34px;
    }

    .couple-arch-frame {
      width: 190px;
      height: 250px;
      border-radius: 100px 100px 18px 18px;
      border: 3.5px solid var(--color-gold-jawa);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(215, 187, 131, 0.4);
      overflow: hidden;
      margin: 0 auto 16px;
      position: relative;
      background: #0d1e38;
    }

    .couple-arch-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.6s ease;
    }

    .couple-arch-frame:hover img {
      transform: scale(1.05);
    }

    .couple-role-tag {
      font-family: var(--font-jawa-script);
      font-size: 2.2rem;
      color: var(--color-gold-jawa);
      line-height: 1;
      margin-bottom: 4px;
    }

    .couple-fullname {
      font-family: var(--font-jawa-title);
      font-size: 1.6rem;
      font-weight: 700;
      color: #FFFFFF;
      margin: 2px 0 6px;
      text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    }

    .couple-parents-info {
      font-size: 0.84rem;
      line-height: 1.6;
      color: rgba(255, 255, 255, 0.8);
      margin-bottom: 12px;
    }

    .btn-couple-ig {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 18px;
      border-radius: 999px;
      background: rgba(215, 187, 131, 0.18);
      border: 1px solid var(--color-gold-jawa);
      color: var(--color-gold-light);
      font-size: 0.8rem;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.25s ease;
    }

    .btn-couple-ig:hover {
      background: var(--color-gold-jawa);
      color: var(--color-royal-blue);
      transform: translateY(-2px);
    }

    /* -----------------------------------------------------------------------
       6. COUNTDOWN TIMER
       ----------------------------------------------------------------------- */
    .countdown-wrap {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      max-width: 380px;
      margin: 0 auto 24px;
    }

    .countdown-box {
      background: rgba(255, 255, 255, 0.94);
      border: 1.5px solid var(--color-gold-jawa);
      border-radius: 14px;
      padding: 12px 6px;
      text-align: center;
      box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    }

    .countdown-val {
      font-family: var(--font-jawa-title);
      font-size: 1.65rem;
      font-weight: 700;
      color: var(--color-royal-blue);
      line-height: 1;
      margin-bottom: 4px;
    }

    .countdown-unit {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--color-gold-dark);
      font-weight: 600;
    }

    /* -----------------------------------------------------------------------
       7. ACARA / EVENT CARDS
       ----------------------------------------------------------------------- */
    .event-card {
      background: rgba(255, 255, 255, 0.96);
      border: 2px solid var(--color-gold-jawa);
      border-radius: 22px;
      padding: 28px 20px;
      text-align: center;
      margin-bottom: 24px;
      box-shadow: 0 12px 34px rgba(0,0,0,0.4);
      position: relative;
    }

    .event-card-icon {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background: linear-gradient(135deg, #284B73 0%, #162c4a 100%);
      border: 2px solid var(--color-gold-jawa);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: -48px auto 14px;
      color: var(--color-gold-jawa);
      box-shadow: 0 6px 18px rgba(40, 75, 115, 0.45);
    }

    .event-card-title {
      font-family: var(--font-jawa-title);
      font-size: 1.8rem;
      font-weight: 700;
      color: var(--color-royal-blue);
      margin: 0 0 8px;
    }

    .event-date-row {
      font-size: 0.92rem;
      font-weight: 600;
      color: var(--color-gold-dark);
      margin-bottom: 4px;
    }

    .event-time-row {
      font-size: 0.85rem;
      color: var(--color-text-muted);
      margin-bottom: 14px;
    }

    .event-venue-name {
      font-weight: 700;
      color: var(--color-royal-blue);
      font-size: 0.95rem;
      margin-bottom: 4px;
    }

    .event-venue-address {
      font-size: 0.84rem;
      line-height: 1.55;
      color: var(--color-text-muted);
      margin-bottom: 18px;
    }

    .btn-event-map {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 22px;
      border-radius: 999px;
      background: linear-gradient(135deg, #284B73 0%, #162c4a 100%);
      color: #FFFFFF;
      font-size: 0.85rem;
      font-weight: 600;
      text-decoration: none;
      border: 1px solid var(--color-gold-jawa);
      box-shadow: 0 4px 14px rgba(40, 75, 115, 0.35);
      transition: all 0.25s ease;
    }

    .btn-event-map:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(40, 75, 115, 0.5);
      background: linear-gradient(135deg, #325e91 0%, #1c365c 100%);
    }

    /* -----------------------------------------------------------------------
       8. LIVE STREAMING
       ----------------------------------------------------------------------- */
    .live-stream-box {
      background: rgba(255, 255, 255, 0.94);
      border: 1.5px dashed var(--color-gold-jawa);
      border-radius: 20px;
      padding: 24px 20px;
      text-align: center;
      margin-bottom: 24px;
    }

    /* -----------------------------------------------------------------------
       9. GALLERY SECTION
       ----------------------------------------------------------------------- */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-bottom: 20px;
    }

    .gallery-item {
      border-radius: 14px;
      overflow: hidden;
      border: 2px solid var(--color-gold-jawa);
      box-shadow: 0 6px 20px rgba(0,0,0,0.4);
      aspect-ratio: 4 / 5;
      cursor: pointer;
      position: relative;
    }

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

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

    /* -----------------------------------------------------------------------
       10. LOVE STORY TIMELINE
       ----------------------------------------------------------------------- */
    .timeline-wrap {
      position: relative;
      padding-left: 28px;
      margin-bottom: 30px;
    }

    .timeline-wrap::before {
      content: '';
      position: absolute;
      left: 8px;
      top: 10px;
      bottom: 10px;
      width: 2px;
      background: var(--color-gold-jawa);
    }

    .timeline-step {
      position: relative;
      margin-bottom: 26px;
    }

    .timeline-dot {
      position: absolute;
      left: -28px;
      top: 4px;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--color-gold-jawa);
      border: 3px solid #0a192f;
      box-shadow: 0 0 10px rgba(215, 187, 131, 0.8);
    }

    .timeline-card {
      background: rgba(255, 255, 255, 0.95);
      border: 1px solid var(--color-card-border);
      border-radius: 14px;
      padding: 18px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    }

    .timeline-title {
      font-family: var(--font-jawa-title);
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--color-royal-blue);
      margin: 0 0 6px;
    }

    .timeline-date {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--color-gold-dark);
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .timeline-desc {
      font-size: 0.84rem;
      line-height: 1.6;
      color: var(--color-text-muted);
      margin: 0;
    }

    /* -----------------------------------------------------------------------
       11. FLOATING BOTTOM DOCK NAVIGATION
       ----------------------------------------------------------------------- */
    .bottom-dock {
      position: fixed;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(22, 44, 74, 0.94);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1.5px solid var(--color-gold-jawa);
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 16px rgba(215, 187, 131, 0.3);
      border-radius: 9999px;
      padding: 6px 14px;
      display: flex;
      align-items: center;
      gap: 6px;
      z-index: 99999;
      max-width: 95vw;
      transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .dock-link {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      color: rgba(255, 255, 255, 0.75);
      text-decoration: none;
      transition: all 0.25s ease;
    }

    .dock-link svg {
      width: 20px;
      height: 20px;
      stroke-width: 2;
    }

    .dock-link:hover,
    .dock-link.active {
      color: var(--color-gold-light);
      background: rgba(215, 187, 131, 0.22);
      transform: translateY(-2px);
    }

    /* -----------------------------------------------------------------------
       12. FLOATING MUSIC DISC PLAYER
       ----------------------------------------------------------------------- */
    .floating-music-btn {
      position: fixed;
      top: 24px;
      right: 24px;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: #162c4a;
      border: 2px solid var(--color-gold-jawa);
      color: var(--color-gold-jawa);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 99998;
      cursor: pointer;
      transition: transform 0.3s ease;
    }

    .floating-music-btn.is-playing {
      animation: spinDisc 6s linear infinite;
    }

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