/* ==========================================================================
   TEMA: SAGE SERENADE (NYL-WED-SGE01) / CHARCOAL & WHISPER SAGE
   Inspirasi: Bromo / Savanna Adventure Prewedding
   Nanyala Invitation - Wedding Collection
   ========================================================================== */

:root {
  /* Latar Belakang & Kartu */
  --bg: #f5f2ed;
  /* Warm Off-White / Sky Mist */
  --card-bg: #fcfaf7;
  /* Warm Pearl Ivory untuk Kontainer Kartu */

  /* Identitas & Aksen */
  --primary: #1c1b1a;
  /* Charcoal / Black Velvet Outfit */
  --primary-rgb: 28, 27, 26;
  --secondary: #8b9b90;
  /* Muted Sage Grey / Jeep Body */
  --secondary-rgb: 139, 155, 144;
  --secondary-light: #e8ece9;
  /* Soft Mint Wash untuk Card Info */
  --accent: #c8874e;
  /* Muted Amber / Signal Amber Accent */
  --accent-rgb: 200, 135, 78;
  --accent-hover: #b3733b;
  --earth-sand: #d4c3b3;
  /* Dry Grass / Savanna Beige */
  --earth-sand-light: #f0ebe4;

  /* Palet Baru: Merah Maron (Royal Wine Maroon) */
  --maroon: #781d29;
  --maroon-rgb: 120, 29, 41;
  --maroon-hover: #8f2331;
  --maroon-dark: #5c1620;
  --maroon-glow: rgba(120, 29, 41, 0.42);

  /* Overlay Foto Cover (Gradiasi Hitam: Atas 10%, Tengah 25%, Bawah 75%) */
  --cover-overlay-top: rgba(0, 0, 0, 0.10);
  --cover-overlay-mid: rgba(0, 0, 0, 0.25);
  --cover-overlay-bottom: rgba(0, 0, 0, 0.75);
  --cover-photo-overlay: linear-gradient(180deg, var(--cover-overlay-top) 0%, var(--cover-overlay-mid) 50%, var(--cover-overlay-bottom) 100%);

  /* Overlay Foto Background Isi Undangan Selain Cover (Opacity Hitam 40%) */
  --bg-photo-overlay-opacity: 0.40;
  --bg-photo-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.40) 100%);

  /* Tipografi Teks */
  --text: #2b2927;
  /* Dark Charcoal Body Text */
  --text-muted: #736e68;
  /* Muted Grey Brown untuk Subtitle */
  --border-color: #e2ddd5;
  /* Garis Halus Pemisah Konten */
  --border-light: rgba(226, 221, 213, 0.6);

  /* Fonts */
  --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Alex Brush', cursive;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(28, 27, 26, 0.05);
  --shadow-md: 0 8px 24px rgba(28, 27, 26, 0.08);
  --shadow-lg: 0 16px 40px rgba(28, 27, 26, 0.12);
  --shadow-gold: 0 4px 20px rgba(200, 135, 78, 0.25);

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

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease-in-out;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: #121211;
  /* Dark aesthetic background for desktop surround */
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ==========================================================================
   LAYOUT ARCHITECTURE (Mobile-First + Refined Desktop Ambient Frame)
   ========================================================================== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  position: relative;
  background: #151413;
}

/* Desktop Ambient Backdrop */
.desktop-ambient {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(139, 155, 144, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(200, 135, 78, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, rgba(20, 19, 18, 0.95) 0%, rgba(15, 14, 13, 0.98) 100%);
}

.desktop-ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(10, 10, 10, 0.8) 100%);
}

/* Side Branding on Desktop */
.desktop-side-banner {
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  color: rgba(245, 242, 237, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-family: var(--font-display);
  font-size: 0.8rem;
  writing-mode: vertical-rl;
  user-select: none;
}

.desktop-side-banner.left {
  left: 4vw;
}

.desktop-side-banner.right {
  right: 4vw;
  transform: translateY(-50%) rotate(180deg);
}

/* Main Mobile/Tablet Invitation Frame */
.invitation-container {
  width: 100%;
  max-width: 540px;
  /* Golden mobile/app ratio */
  background-color: var(--bg);
  min-height: 100vh;
  position: relative;
  z-index: 10;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
  padding-bottom: 0;
  /* Navigasi dihapus, ruang bawah rapi */
}

@media (min-width: 1024px) {

  .desktop-ambient,
  .desktop-side-banner {
    display: block;
  }
}

/* ==========================================================================
   COVER OVERLAY (Buka Undangan - Highlight 7.jpg)
   ========================================================================== */
.cover-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 2rem 1.4rem 4.8rem;
  color: #ffffff;
  background-color: #000000;
  background-image:
    var(--cover-photo-overlay),
    url('Galeri/5.jpg');
  background-size: cover;
  background-position: center 10%;
  background-repeat: no-repeat;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
}

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

/* Subtle Vignette (dinonaktifkan agar opacity hitam 50% seragam dan jernih) */
.cover-overlay::before {
  display: none;
}

/* Vertical Center Header (Tepat di Tengah Vertikal Layar) */
.cover-header {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: calc(100% - 2.8rem);
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.cover-kicker {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--earth-sand);
  margin-bottom: 0.35rem;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cover-kicker .kicker-sep {
  color: var(--accent);
  font-size: 0.85em;
  opacity: 0.85;
}

/* Judul Mempelai (Monogram Mewah Y & I Berukuran Besar Ideal) */
.cover-title {
  font-family: var(--font-serif);
  font-size: clamp(4.2rem, 14.5vw, 6.0rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 0.96;
  letter-spacing: 0.08em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.9);
  margin-top: 0.15rem;
}

.cover-title .ampersand {
  font-family: var(--font-script);
  font-size: 0.92em;
  color: var(--accent);
  margin: 0 0.45rem;
  font-weight: 400;
}

/* Cover Footer (Kepada Yth & Buka Undangan - Tetap di Bawah) */
.cover-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

/* Guest Recipient Display - Seamless Floating Editorial (Tipografi Minimalis Elegan) */
.guest-card {
  width: 100%;
  max-width: 300px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  text-align: center;
}

.guest-card .recipient-label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  color: rgba(245, 242, 237, 0.82);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.guest-card .guest-name {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3.8vw, 1.35rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

/* Open Invitation CTA Button - Rounded Rectangle, Subtle Maroon Gradient, No Outline, Animated */
.btn-open-invitation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.72rem 1.7rem;
  background: linear-gradient(135deg, #882230 0%, #661823 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px var(--maroon-glow);
  cursor: pointer;
  margin-top: 0.35rem;
  animation: openBtnZoomIn 3s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, background 0.35s ease;
}

.btn-open-invitation:hover {
  animation-play-state: paused;
  background: linear-gradient(135deg, #992837 0%, #751a26 100%);
  color: #ffffff;
  transform: scale(1.02);
  box-shadow: 0 10px 28px rgba(136, 34, 48, 0.65);
}

.btn-open-invitation:active {
  transform: scale(0.95);
}

.btn-open-invitation svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.3s ease;
  animation: openIconZoomIn 3s ease-in-out infinite;
}

.btn-open-invitation:hover svg {
  animation-play-state: paused;
  transform: scale(1.08);
}

/* Micro-Animation Zoom In Halus & Elegan (97% ke 100%) yang Stay di Tombol Cover */
@keyframes openBtnZoomIn {
  0%,
  100% {
    transform: scale(0.97);
    box-shadow: 0 5px 16px rgba(120, 29, 41, 0.38);
  }

  50% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(120, 29, 41, 0.55);
  }
}

@keyframes openIconZoomIn {
  0%,
  100% {
    transform: scale(0.97);
  }

  50% {
    transform: scale(1);
  }
}

@keyframes envelopeBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-1.5px) scale(1.1);
  }
}

/* ==========================================================================
   FLOATING AUDIO PLAYER WIDGET
   ========================================================================== */
.music-widget {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.music-widget.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .music-widget {
    right: calc(50% - 270px + 20px);
    /* Aligns to right edge of container */
    bottom: 28px;
  }
}

.music-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--maroon);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px var(--maroon-glow);
  position: relative;
  transition: var(--transition-fast);
  cursor: pointer;
}

.music-btn:hover {
  background: var(--maroon-hover);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(120, 29, 41, 0.6);
}

.classic-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

/* When playing: show pause bars */
.music-btn.playing .icon-play {
  display: none;
}

.music-btn.playing .icon-pause {
  display: block;
}

/* When paused: show classic play triangle */
.music-btn.paused .icon-play {
  display: block;
  transform: translateX(1.5px);
  /* Optical centering for triangle */
}

.music-btn.paused .icon-pause {
  display: none;
}

/* Subtle pulse while music is playing */
.music-btn.playing {
  animation: classicMusicPulse 2.4s ease-in-out infinite;
}

@keyframes classicMusicPulse {

  0%,
  100% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 0 var(--maroon-glow);
  }

  50% {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4), 0 0 0 7px rgba(120, 29, 41, 0);
  }
}

/* ==========================================================================
   OUTLINE ICONS SYSTEM (Consistent Stroke, Sizing & Aesthetics)
   ========================================================================== */
.icon-outline {
  fill: none !important;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

/* ==========================================================================
   COMMON SECTION STYLING
   ========================================================================== */
section {
  padding: 4.5rem 1.5rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 2.8rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.section-tag .icon-outline {
  width: 15px;
  height: 15px;
  stroke: var(--accent);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.45rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.section-title.script {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 7vw, 3.4rem);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-top: -0.2rem;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 1rem auto 0;
}

.section-divider .line {
  width: 38px;
  height: 1px;
  background: var(--earth-sand);
}

.section-divider svg,
.section-divider .icon-outline {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
}

/* ==========================================================================
   HERO SECTION (Inside Invitation - 100dvh Fullscreen Viewport)
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3.5rem 1.5rem;
  text-align: center;
  position: relative;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.hero-names {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6.5vw, 3.2rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero-names .ampersand {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 7vw, 3.4rem);
  color: var(--accent);
  font-weight: 400;
  display: inline-block;
  margin: 0 0.2rem;
}

.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--primary);
  background: var(--secondary-light);
  padding: 0.45rem 1.35rem;
  border-radius: var(--radius-full);
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-color);
}

/* Editorial Hero Photo Frame - Highlight 7.jpg */
.hero-frame-wrapper {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  padding: 12px;
}

.hero-frame-border {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--secondary);
  border-radius: 190px 190px 24px 24px;
  transform: translate(10px, 10px);
  z-index: 1;
  pointer-events: none;
}

.hero-photo-card {
  position: relative;
  z-index: 2;
  border-radius: 180px 180px 20px 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--card-bg);
  background: var(--primary);
}

.hero-photo-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-position: center 25%;
  transform: scale(1.12) translate3d(0, 0, 0);
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0, 0, 0.2, 1);
}

.hero-photo-card:hover img {
  transform: scale(1.16) translate3d(0, 0, 0);
}

.hero-scripture-caption {
  margin-top: 2.2rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0 1rem;
}

.hero-scripture-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0.2rem;
}

.hero-scripture-ornament .line {
  width: 32px;
  height: 1px;
  background: var(--earth-sand);
}

.hero-scripture-ornament svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
}

.hero-scripture-text {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.8vw, 1.18rem);
  font-style: italic;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.hero-scripture-ref {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   BIBLE VERSE (AYAT ALKITAB) SECTION
   ========================================================================== */
.quote-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3.5rem 1.5rem;
  background-color: #1a1918;
  background-image: var(--bg-photo-overlay), url('Galeri/5.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 3.2rem 1.8rem 2.6rem;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 120px 120px 32px 32px;
  /* Cathedral Arch Silhouette */
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.50), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.quote-card .scripture-cross {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  color: #df9e62;
}

.quote-card .scripture-cross svg,
.quote-card .scripture-cross .icon-outline {
  width: 28px;
  height: 36px;
  stroke: #df9e62;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 12px rgba(223, 158, 98, 0.35));
}

.quote-card .quote-intro-latin {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #df9e62;
  font-weight: 700;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.quote-card .quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 3.2vw, 1.25rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.9;
  color: #ffffff;
  margin-bottom: 1.35rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.95);
}

.quote-card .quote-source {
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #df9e62;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

/* ==========================================================================
   COUPLE SECTION (Mempelai Pria & Wanita)
   ========================================================================== */
.couple-section {
  background-color: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Luxury Botanical Floral Pattern Overlay with Ultra-Soft Feathered Fade-in */
.couple-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('floral-pattern.svg');
  background-repeat: repeat;
  background-size: 80px 80px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 17.5rem,
    rgba(0, 0, 0, 0.08) 19rem,
    rgba(0, 0, 0, 0.32) 21rem,
    rgba(0, 0, 0, 0.70) 23rem,
    rgba(0, 0, 0, 1) 25rem,
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 17.5rem,
    rgba(0, 0, 0, 0.08) 19rem,
    rgba(0, 0, 0, 0.32) 21rem,
    rgba(0, 0, 0, 0.70) 23rem,
    rgba(0, 0, 0, 1) 25rem,
    rgba(0, 0, 0, 1) 100%
  );
}

/* Subtle Soft Vignette so cards and text remain in perfect focus */
.couple-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(245, 242, 237, 0.25) 0%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

.couple-section .section-header,
.couple-cards-container {
  position: relative;
  z-index: 2;
}

.couple-intro {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 3.1vw, 1.15rem);
  font-style: italic;
  font-weight: 500;
  color: var(--text);
  max-width: 440px;
  margin: 0 auto 3rem;
  line-height: 1.85;
  position: relative;
  z-index: 2;
  padding: 0 0.5rem;
}

.couple-cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
}

.couple-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 100px 100px 30px 30px;
  /* Dome Crown Silhouette */
  padding: 2.8rem 1.8rem 2.2rem;
  text-align: center;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 16px 36px -10px rgba(28, 27, 26, 0.08);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.couple-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.couple-photo-wrapper {
  width: 160px;
  height: 210px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.couple-photo-wrapper .border-accent {
  position: absolute;
  inset: -6px;
  border: 1.5px solid var(--earth-sand);
  border-radius: 80px 80px var(--radius-md) var(--radius-md);
  transform: rotate(3deg);
  z-index: 1;
}

.couple-photo {
  width: 100%;
  height: 100%;
  border-radius: 75px 75px var(--radius-md) var(--radius-md);
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--card-bg);
}

.couple-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12) translate3d(0, 0, 0);
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0, 0, 0.2, 1);
}

.couple-card:hover .couple-photo img {
  transform: scale(1.16) translate3d(0, 0, 0);
}

.couple-name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.couple-role {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.couple-parents {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 1.4rem;
}

.couple-parents strong {
  color: var(--text);
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.72rem 1.7rem;
  border-radius: 12px;
  background: var(--secondary-light);
  border: 1px solid var(--secondary);
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-social svg,
.btn-social .icon-outline {
  width: 15px;
  height: 15px;
}

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

.couple-separator {
  text-align: center;
  margin: -0.5rem 0;
  position: relative;
  z-index: 5;
}

.couple-separator .ampersand-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  font-size: 2.2rem;
  border: 3px solid var(--bg);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   COUNTDOWN SECTION & SAVE TO CALENDAR
   ========================================================================== */
.countdown-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 1.5rem;
  background-color: #121110;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-parallax-bg {
  position: absolute;
  top: -25%;
  left: 0;
  right: 0;
  bottom: -25%;
  height: 150%;
  background-image: var(--bg-photo-overlay), url('Galeri/8.jpg');
  background-size: cover;
  background-position: center 35%;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.countdown-section::before {
  display: none;
}

.countdown-section .section-header,
.countdown-section .countdown-grid,
.countdown-section .calendar-actions {
  position: relative;
  z-index: 3;
}

.countdown-section .section-tag {
  color: var(--earth-sand);
}

.countdown-section .section-title {
  color: #ffffff;
}

/* Countdown Display Container (Lebih Rapat dengan Kotak Kaca Hitam Transparan) */
.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.4vw, 7px);
  width: 100%;
  max-width: 375px;
  margin: 0 auto 2.8rem;
  position: relative;
  z-index: 2;
  padding: 0 0.5rem;
}

/* Unit Waktu (Kotak Hitam Transparan Frosted Glass) */
.countdown-item,
.countdown-card {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30), inset 0 1px 1px rgba(255, 255, 255, 0.10);
  padding: 0.85rem 0.2rem 0.75rem;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.countdown-item:hover,
.countdown-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 135, 78, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(200, 135, 78, 0.2);
}

.countdown-item .number,
.countdown-card .number {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5.8vw, 2.35rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.countdown-item .label,
.countdown-card .label {
  font-family: var(--font-sans);
  font-size: clamp(0.58rem, 1.6vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--earth-sand);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Titik Dua Pemisah Antara Unit Waktu */
.countdown-separator {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3.2vw, 1.5rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  margin: 0 -1px;
}

/* Calendar Button Actions */
.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.72rem 1.7rem;
  background: linear-gradient(135deg, #882230 0%, #661823 100%);
  border: none;
  color: #ffffff;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 6px 20px var(--maroon-glow);
  cursor: pointer;
  text-decoration: none;
}

.btn-calendar:hover {
  background: linear-gradient(135deg, #992837 0%, #751a26 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(120, 29, 41, 0.6);
}

.btn-calendar.secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.btn-calendar.secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-calendar svg {
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   EVENTS SECTION (Akad & Resepsi)
   ========================================================================== */
.events-section {
  background-color: var(--bg);
}

.events-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.event-card {
  background: var(--card-bg);
  border-radius: 95px 95px 30px 30px;
  /* Cathedral Arch Silhouette */
  padding: 3rem 1.8rem 2.5rem;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 16px 36px -10px rgba(28, 27, 26, 0.08);
  position: relative;
  text-align: center;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.event-card:hover {
  box-shadow: 0 20px 45px -10px rgba(28, 27, 26, 0.12);
  border-color: var(--secondary);
  transform: translateY(-4px);
}

.event-card-header {
  margin-bottom: 1.5rem;
}

.event-icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--secondary-light);
  border: 1.5px solid var(--secondary);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.event-icon-badge svg,
.event-icon-badge .icon-outline {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
}

.event-name {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4.5vw, 2.15rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.event-tagline {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* ==========================================================================
   EVENT HIGHLIGHT DATETIME (Prominent Date Trio & Warm Time Capsule)
   ========================================================================== */
.event-datetime {
  background: linear-gradient(145deg, #ffffff 0%, #faf6f0 100%);
  border-radius: 24px;
  padding: 1.35rem 1.1rem 1.25rem;
  margin: 1.5rem 0 1.6rem;
  border: 1.5px solid rgba(120, 29, 41, 0.25);
  box-shadow: 
    0 10px 28px -6px rgba(120, 29, 41, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-datetime::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--maroon), transparent);
}

.event-card:hover .event-datetime {
  transform: translateY(-2px);
  box-shadow: 
    0 14px 34px -6px rgba(120, 29, 41, 0.18),
    0 0 0 1px rgba(120, 29, 41, 0.25);
}

.datetime-header-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0.85rem;
}

.datetime-header-tag .tag-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 29, 41, 0.35), transparent);
}

.datetime-header-tag .tag-text {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 700;
}

/* Date Trio Layout (Hari | 05 | Bulan Tahun) - Elegant Wine Maroon */
.event-date-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.2rem 0;
}

.date-trio-day {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
  text-align: right;
  flex: 1;
}

.date-trio-divider {
  width: 1.5px;
  height: 38px;
  background: linear-gradient(180deg, transparent, rgba(120, 29, 41, 0.35), transparent);
}

.date-trio-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.9;
  color: var(--maroon);
  text-align: center;
  min-width: 58px;
  text-shadow: 0 2px 14px rgba(120, 29, 41, 0.22);
  letter-spacing: -0.02em;
}

.date-trio-month {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
  line-height: 1.15;
}

.date-trio-month .month-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
}

.date-trio-month .year-label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* Time Sub-Highlight Badge */
.event-time-highlight {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(200, 135, 78, 0.28);
  display: flex;
  justify-content: center;
}

.time-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.52rem 1.15rem;
  background: linear-gradient(135deg, rgba(200, 135, 78, 0.14) 0%, rgba(200, 135, 78, 0.24) 100%);
  border: 1px solid rgba(200, 135, 78, 0.48);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(200, 135, 78, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.time-highlight-badge:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(200, 135, 78, 0.25);
}

.time-badge-icon {
  stroke: var(--accent);
  filter: drop-shadow(0 1px 4px rgba(200, 135, 78, 0.35));
  flex-shrink: 0;
}

.time-badge-text {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.time-badge-status {
  font-size: 0.72rem;
  font-weight: 600;
  color: #8c4c1a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 6px;
  border-left: 1.5px solid rgba(200, 135, 78, 0.4);
}

@media (max-width: 380px) {
  .date-trio-number {
    font-size: 2.4rem;
    min-width: 48px;
  }
  .date-trio-day,
  .date-trio-month .month-label {
    font-size: 0.85rem;
  }
  .time-badge-text {
    font-size: 0.82rem;
  }
  .time-highlight-badge {
    padding: 0.45rem 0.9rem;
    gap: 6px;
  }
}

.event-venue {
  margin-bottom: 1.8rem;
}

.event-venue-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

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

/* Dress Code Box */
.dresscode-box {
  background: var(--secondary-light);
  border-radius: 20px;
  /* Soft Capsule Box */
  padding: 1rem 0.9rem;
  margin-bottom: 1.8rem;
  text-align: center;
}

.dresscode-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dresscode-palettes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 0.5rem;
}

.color-chip {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.dresscode-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.72rem 1.7rem;
  background: linear-gradient(135deg, #882230 0%, #661823 100%);
  border: none;
  color: #ffffff;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 6px 18px var(--maroon-glow);
  cursor: pointer;
  text-decoration: none;
}

.btn-map:hover {
  background: linear-gradient(135deg, #992837 0%, #751a26 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(120, 29, 41, 0.6);
}

.btn-map svg,
.btn-map .icon-outline {
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   LOVE STORY / TIMELINE SECTION
   ========================================================================== */
.story-section {
  background-color: #f9f7f4;
  background-image: linear-gradient(rgba(249, 247, 244, 0.94), rgba(249, 247, 244, 0.96)), url('Galeri/5.jpg');
  background-size: cover;
  background-position: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.timeline {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 2px;
  background: var(--earth-sand);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.8rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--maroon);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--maroon);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 0.2em;
  color: var(--maroon);
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-year svg,
.timeline-year .icon-outline {
  stroke: var(--maroon);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.5vw, 1.55rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.timeline-photo {
  border-radius: 26px;
  /* Soft Rounded Photo Frame */
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(28, 27, 26, 0.08);
  border: 1.5px solid var(--border-color);
}

.timeline-photo img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transform: scale(1.1) translate3d(0, 0, 0);
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0, 0, 0.2, 1);
}

.timeline-photo:hover img {
  transform: scale(1.14) translate3d(0, 0, 0);
}

/* ==========================================================================
   OUR MOMENTS & CINEMATIC FILM (UNIFIED VIDEO & GALLERY)
   ========================================================================== */
.gallery-section {
  position: relative;
  overflow: hidden;
  background-color: #141312;
  color: #ffffff;
  padding: 5rem 1.5rem 5.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Atmospheric Blurred Background Photo with Parallax spanning Video & Gallery */
.video-parallax-bg {
  position: absolute;
  top: -20%;
  left: -25px;
  right: -25px;
  bottom: -20%;
  height: 140%;
  background-image: var(--bg-photo-overlay), url('Galeri/10.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(15px);
  -webkit-filter: blur(15px);
  opacity: var(--bg-photo-overlay-opacity);
  z-index: 1;
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(1.08);
  will-change: transform;
}

/* Delicate Floral Pattern Overlay */
.video-pattern-overlay {
  position: absolute;
  inset: 0;
  background-image: url('floral-pattern.svg');
  background-repeat: repeat;
  background-size: 80px 80px;
  opacity: 0.16;
  mix-blend-mode: overlay;
  z-index: 1;
  pointer-events: none;
}

.gallery-section .section-header {
  position: relative;
  z-index: 3;
  margin-bottom: 2.2rem;
}

.gallery-section .section-tag {
  color: var(--earth-sand);
}

.gallery-section .section-title {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.gallery-section .section-divider .line {
  background: rgba(255, 255, 255, 0.25);
}

.gallery-section .section-divider svg {
  stroke: var(--accent);
}

.video-subtitle {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 440px;
  margin: 0.8rem auto 0;
  line-height: 1.75;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* Video Highlight Focus Container */
.video-container {
  max-width: 470px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

/* Radiant Outer Glow with Expansive Soft Maroon Pattern Halo */
.video-container::before {
  content: '';
  position: absolute;
  inset: -45px;
  border-radius: 54px;
  background-image: 
    radial-gradient(ellipse at center, rgba(120, 29, 41, 0.32) 0%, rgba(120, 29, 41, 0.14) 48%, rgba(120, 29, 41, 0.04) 75%, transparent 92%),
    url('floral-pattern.svg');
  background-size: auto, 70px 70px;
  background-position: center;
  opacity: 0.30;
  filter: blur(32px);
  -webkit-filter: blur(32px);
  z-index: -1;
  pointer-events: none;
  animation: maroonPatternAura 4.5s ease-in-out infinite alternate;
}

@keyframes maroonPatternAura {
  0% {
    opacity: 0.22;
    transform: scale(0.96);
    filter: blur(28px);
  }
  100% {
    opacity: 0.36;
    transform: scale(1.05);
    filter: blur(38px);
  }
}

/* The Luxury Dark Mode Video Card with Expansive Soft Maroon Outer Glow */
.video-card {
  background: rgba(22, 21, 20, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 26px;
  border: 1.5px solid rgba(120, 29, 41, 0.25);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 35px 4px rgba(120, 29, 41, 0.20),
    0 0 85px 16px rgba(120, 29, 41, 0.12),
    0 0 150px 30px rgba(120, 29, 41, 0.06),
    0 24px 55px rgba(0, 0, 0, 0.60);
  overflow: hidden;
  padding: 12px;
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.video-card:hover {
  border-color: rgba(120, 29, 41, 0.45);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 0 45px 6px rgba(120, 29, 41, 0.28),
    0 0 110px 20px rgba(120, 29, 41, 0.16),
    0 0 180px 36px rgba(120, 29, 41, 0.09),
    0 28px 65px rgba(0, 0, 0, 0.70);
  transform: translateY(-4px);
}

.video-frame {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.prewed-native-video {
  width: 100%;
  height: auto;
  max-height: 480px;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  background: #000000;
}

/* Floating Controls Overlay */
.video-controls-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}

.btn-video-control {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(18, 17, 16, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: var(--transition-fast);
  user-select: none;
}

.btn-video-control:hover {
  background: rgba(120, 29, 41, 0.88);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.04);
}

.btn-video-control.play-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
}

/* Sound toggle states */
.sound-toggle .icon-sound-on {
  display: none;
}

.sound-toggle .icon-sound-off {
  display: block;
}

.sound-toggle.unmuted {
  background: rgba(120, 29, 41, 0.9);
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--maroon-glow);
}

.sound-toggle.unmuted .icon-sound-on {
  display: block;
}

.sound-toggle.unmuted .icon-sound-off {
  display: none;
}

/* Play toggle states */
.play-toggle .icon-video-play {
  display: none;
}

.play-toggle .icon-video-pause {
  display: block;
}

.play-toggle.paused .icon-video-play {
  display: block;
  transform: translateX(1px);
}

.play-toggle.paused .icon-video-pause {
  display: none;
}

.video-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 0.6rem 0.55rem;
  text-align: center;
  background: transparent;
}

.video-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.video-info-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #df9e62;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 0 14px rgba(223, 158, 98, 0.4);
}

.video-info-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Connecting Divider between Video & Photo Gallery */
.gallery-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 3.2rem auto 2.2rem;
  max-width: 440px;
  position: relative;
  z-index: 3;
}

.connector-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.connector-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--earth-sand);
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.connector-badge svg {
  stroke: var(--accent);
  width: 15px;
  height: 15px;
}

/* Unified Photo Gallery Grid on Dark Bokeh Backdrop */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  position: relative;
  z-index: 3;
  max-width: 480px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  background: #1c1b1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition-smooth);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.gallery-item:hover {
  border-color: rgba(200, 135, 78, 0.7);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 20px rgba(120, 29, 41, 0.4);
  transform: translateY(-3px);
}

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

.gallery-overlay-icon {
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 18, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--earth-sand);
}

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

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(18, 17, 16, 0.95);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

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

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
  color: var(--earth-sand);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-top: 1rem;
  text-align: center;
}

.lightbox-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}

.lightbox-close-btn:hover {
  background: var(--accent);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: var(--accent);
}

.lightbox-nav-btn.prev {
  left: 1.5rem;
}

.lightbox-nav-btn.next {
  right: 1.5rem;
}

/* ==========================================================================
   WEDDING GIFT / AMPLOP DIGITAL SECTION
   ========================================================================== */
.gift-section {
  background-color: var(--card-bg);
  background-image: linear-gradient(180deg, rgba(247, 244, 239, 0.94) 0%, rgba(245, 242, 237, 0.97) 100%), url('Galeri/9.jpg');
  background-size: cover;
  background-position: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  position: relative;
}

.gift-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 1.8rem;
  line-height: 1.7;
}

/* ==========================================================================
   GIFT ACCORDION TOGGLE BUTTON & SMOOTH COLLAPSE
   ========================================================================== */
.gift-toggle-wrapper {
  margin: 0 auto;
  max-width: 420px;
  display: flex;
  justify-content: center;
}

.btn-toggle-gift {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.72rem 1.7rem;
  background: linear-gradient(135deg, #882230 0%, #661823 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--maroon-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  user-select: none;
}

.btn-toggle-gift:hover {
  background: linear-gradient(135deg, #992837 0%, #751a26 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(120, 29, 41, 0.6);
}

.btn-toggle-gift:active {
  transform: translateY(0);
}

.btn-toggle-gift .btn-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: color 0.3s ease, transform 0.3s ease;
}

.btn-toggle-gift:hover .btn-toggle-icon,
.btn-toggle-gift.active .btn-toggle-icon {
  color: #ffffff;
}

.btn-toggle-gift.active {
  background: linear-gradient(135deg, #661823 0%, #4a1019 100%);
  box-shadow: 0 8px 24px var(--maroon-glow);
}

.btn-toggle-gift .btn-toggle-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-toggle-gift.active .btn-toggle-chevron {
  transform: rotate(180deg);
}

/* Collapsible Animated Container (CSS Grid 0fr -> 1fr with opacity transition) */
.gift-collapse-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease, margin-top 0.4s ease;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
}

.gift-collapse-wrapper.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 2rem;
}

.gift-collapse-inner {
  min-height: 0;
  visibility: hidden;
  transition: visibility 0.5s ease;
}

.gift-collapse-wrapper.open .gift-collapse-inner {
  visibility: visible;
}

/* Staggered card entrance micro-animation when opened */
.gift-collapse-wrapper.open .bank-card:nth-child(1) {
  animation: giftCardSlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.08s;
}

.gift-collapse-wrapper.open .bank-card:nth-child(2) {
  animation: giftCardSlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.18s;
}

.gift-collapse-wrapper.open .physical-gift-card {
  animation: giftCardSlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.28s;
}

@keyframes giftCardSlideIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gift-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 420px;
  margin: 0 auto;
}

.bank-card {
  background: linear-gradient(135deg, #1c1b1a 0%, #2b2927 100%);
  border-radius: 28px;
  /* Elegant Rounded Card Silhouette */
  padding: 2rem 1.8rem;
  text-align: left;
  color: #ffffff;
  position: relative;
  box-shadow: 0 16px 36px -10px rgba(28, 27, 26, 0.25);
  border: 1px solid rgba(212, 195, 179, 0.25);
  overflow: hidden;
}

.bank-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(200, 135, 78, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.bank-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.bank-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--earth-sand);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bank-logo .icon-outline {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
}

.bank-chip {
  width: 36px;
  height: 26px;
  background: linear-gradient(135deg, #d4c3b3 0%, #a89481 100%);
  border-radius: 4px;
}

.account-number {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.account-holder {
  font-size: 0.85rem;
  color: rgba(245, 242, 237, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.4rem;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.72rem 1.7rem;
  background: linear-gradient(135deg, #882230 0%, #661823 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--maroon-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-copy:hover {
  background: linear-gradient(135deg, #992837 0%, #751a26 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(120, 29, 41, 0.55);
}

.btn-copy svg,
.btn-copy .icon-outline {
  width: 15px;
  height: 15px;
}

/* Physical Gift Address Card */
.physical-gift-card {
  background: var(--secondary-light);
  border-radius: 44px 18px 44px 18px;
  /* Asymmetric Botanical Silhouette */
  padding: 2.2rem 1.8rem;
  text-align: left;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 12px 30px -8px rgba(28, 27, 26, 0.08);
}

.physical-gift-card h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.physical-gift-card h4 .icon-outline {
  stroke: var(--accent);
}

.physical-gift-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

/* ==========================================================================
   RSVP & GUESTBOOK SECTION
   ========================================================================== */
.rsvp-section {
  background-color: var(--bg);
}

.rsvp-form-card {
  background: var(--card-bg);
  border-radius: 75px 75px 32px 32px;
  /* Arch Crown Silhouette */
  padding: 2.8rem 1.8rem 2.4rem;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 16px 38px -10px rgba(28, 27, 26, 0.08);
  max-width: 440px;
  margin: 0 auto 3rem;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(200, 135, 78, 0.15);
}

.form-control option {
  background: #ffffff;
  color: var(--text);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
  border-radius: 18px;
}

/* Radio Group Attendance */
.attendance-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  padding: 0.75rem 0.3rem;
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  /* Smooth Pill Shape */
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.radio-pill label .icon-outline {
  width: 14px;
  height: 14px;
}

.radio-pill input:checked+label {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(28, 27, 26, 0.15);
}

.rsvp-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0.8rem;
}

.btn-submit-rsvp {
  width: 100%;
  padding: 0.72rem 1.7rem;
  background: linear-gradient(135deg, #882230 0%, #661823 100%);
  border: none;
  color: #ffffff;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--maroon-glow);
}

.btn-submit-rsvp:hover:not(:disabled) {
  background: linear-gradient(135deg, #992837 0%, #751a26 100%);
  box-shadow: 0 10px 28px rgba(120, 29, 41, 0.6);
  transform: translateY(-2px);
}

.btn-submit-rsvp:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.spin-icon {
  animation: spinLoader 0.9s linear infinite;
}

@keyframes spinLoader {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.btn-wa-rsvp {
  width: 100%;
  padding: 0.72rem 1.7rem;
  background: #25D366;
  color: #ffffff;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  text-decoration: none;
}

.btn-wa-rsvp:hover {
  background: #1eb954;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

/* Guestbook Stream */
.wishes-stream-wrapper {
  max-width: 440px;
  margin: 0 auto;
}

.wishes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.wishes-header h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wishes-header h4 .icon-outline {
  stroke: var(--accent);
}

.wishes-count {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  background: rgba(200, 135, 78, 0.16);
  border: 1px solid rgba(200, 135, 78, 0.35);
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--earth-sand);
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.wish-item {
  background: var(--card-bg);
  border-radius: 22px;
  /* Soft Rounded Card */
  padding: 1.35rem 1.25rem;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(28, 27, 26, 0.04);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wish-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

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

.wish-status-badge {
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.wish-status-badge.hadir {
  background: #e6f4ea;
  color: #137333;
}

.wish-status-badge.tidak {
  background: #fce8e6;
  color: #c5221f;
}

.wish-status-badge.ragu {
  background: #fef7e0;
  color: #b06000;
}

.wish-text {
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.6;
}

.wish-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ==========================================================================
   PROTOCOLS & CLOSING SECTION
   ========================================================================== */
.protocols-section {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

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

.protocol-card {
  padding: 1.4rem 0.6rem;
  background: var(--bg);
  border-radius: 28px;
  /* Organic Squircle Capsule */
  border: 1.5px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(28, 27, 26, 0.04);
  transition: transform 0.3s ease;
}

.protocol-card:hover {
  transform: translateY(-3px);
}

.protocol-card svg,
.protocol-card .icon-outline {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  margin-bottom: 0.6rem;
}

.protocol-card p {
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
}

/* ==========================================================================
   CLOSING SECTION (God Bless Our Union & Atmospheric Noir Background)
   ========================================================================== */
.closing-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 48px 48px 0 0;
  background-color: #0c0b0a;
  background-image: 
    linear-gradient(
      180deg, 
      rgba(12, 11, 10, 0.90) 0%, 
      rgba(15, 14, 13, 0.80) 30%, 
      rgba(15, 14, 13, 0.82) 70%, 
      rgba(10, 9, 8, 0.95) 100%
    ), 
    url('Galeri/10.jpg');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  color: #ffffff;
  text-align: center;
  padding: 4.5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.closing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('floral-pattern.svg');
  background-size: 80px 80px;
  background-position: center;
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

.closing-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, transparent 25%, rgba(8, 8, 7, 0.70) 90%);
  pointer-events: none;
  z-index: 1;
}

.closing-content {
  max-width: 440px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.closing-cross {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.closing-cross svg,
.closing-cross .icon-outline {
  filter: drop-shadow(0 2px 10px rgba(200, 135, 78, 0.5));
  stroke: var(--accent);
}

.closing-tag {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--earth-sand);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(212, 195, 179, 0.25);
}

.closing-message {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3.2vw, 1.25rem);
  line-height: 1.9;
  color: rgba(245, 242, 237, 0.94);
  margin-bottom: 2.2rem;
  font-style: italic;
  font-weight: 500;
}

.closing-couple-names {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6.5vw, 3rem);
  font-weight: 600;
  color: var(--earth-sand);
  margin-bottom: 0.5rem;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

.closing-family {
  font-size: 0.88rem;
  color: rgba(245, 242, 237, 0.75);
  margin-top: 1.2rem;
  line-height: 1.75;
}

/* ==========================================================================
   ELEVATED BRAND FOOTER (Made with Love & Nanyala Luxury Signature)
   ========================================================================== */
.closing-footer-wrapper {
  max-width: 440px;
  width: 100%;
  margin: 3.2rem auto 0;
  position: relative;
  z-index: 2;
}

.footer-divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.6rem;
}

.footer-divider-ornament .footer-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 195, 179, 0.35), transparent);
}

.footer-divider-ornament .footer-sparkle {
  color: var(--accent);
  font-size: 0.95rem;
  text-shadow: 0 0 10px rgba(200, 135, 78, 0.6);
}

.footer-brand-card {
  background: rgba(22, 21, 20, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 195, 179, 0.16);
  border-radius: 26px;
  padding: 1.5rem 1.25rem 1.35rem;
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  transition: var(--transition-smooth);
}

.footer-brand-card:hover {
  border-color: rgba(200, 135, 78, 0.32);
  box-shadow: 
    0 16px 42px rgba(0, 0, 0, 0.55),
    0 0 25px rgba(200, 135, 78, 0.12);
}

.footer-love-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.32rem 0.85rem;
  background: rgba(120, 29, 41, 0.30);
  border: 1px solid rgba(120, 29, 41, 0.45);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #f7dcd6;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(120, 29, 41, 0.25);
}

.footer-heart-icon {
  fill: #e85868;
  animation: footerHeartPulse 1.8s ease-in-out infinite;
}

@keyframes footerHeartPulse {
  0%, 100% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.22);
  }
  40% {
    transform: scale(0.95);
  }
  60% {
    transform: scale(1.15);
  }
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--earth-sand);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.25rem;
}

.footer-brand-title .brand-crest {
  font-size: 0.65rem;
  color: var(--accent);
  opacity: 0.85;
}

.footer-brand-series {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.55);
}

.footer-copyright {
  font-size: 0.65rem;
  letter-spacing: 0.10em;
  color: rgba(245, 242, 237, 0.35);
  margin-top: 0.6rem;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  pointer-events: none;
}

.toast {
  background: var(--primary);
  color: #121110;
  border: 1px solid var(--accent);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastOut 0.3s ease 2.7s forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Ultra-Fluid Cinematic Upward Floating Motion)
   ========================================================================== */
.reveal,
.reveal-scale {
  opacity: 1;
  transform: none;
  filter: blur(0);
  will-change: opacity, transform, filter;
  transition: 
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* State Awal saat belum di-scroll: Melayang anggun dari bawah (48px) dengan kelembutan optik */
html.reveal-ready .reveal:not(.active) {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  filter: blur(4px);
}

html.reveal-ready .reveal-scale:not(.active) {
  opacity: 0;
  transform: scale(0.94) translate3d(0, 52px, 0);
  filter: blur(5px);
}

/* State Aktif: Mengalun naik ke atas secara perlahan, tajam, dan stabil */
.reveal.active,
.reveal-scale.active {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  filter: blur(0) !important;
}

/* Garansi Mutlak: Begitu cover terbuka, Hero Section langsung tampil seketika tanpa menunggu scroll */
body.invitation-opened #hero .reveal,
body.invitation-opened #hero .reveal-scale,
.invitation-opened #hero .reveal,
.invitation-opened #hero .reveal-scale {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
  filter: blur(0) !important;
}

/* Efek Riak Bertingkat (Staggered Waterfall) untuk Menghilangkan Rasa Kaku */
.reveal-delay-1 { transition-delay: 0.10s !important; }
.reveal-delay-2 { transition-delay: 0.20s !important; }
.reveal-delay-3 { transition-delay: 0.30s !important; }
.reveal-delay-4 { transition-delay: 0.40s !important; }

/* Section Header Cascade */
.section-header .section-title {
  transition-delay: 0.10s;
}
.section-header .section-divider {
  transition-delay: 0.20s;
}

/* Couple Cards Cascade */
.couple-cards-container .couple-card:nth-child(1) { transition-delay: 0.06s; }
.couple-cards-container .couple-separator { transition-delay: 0.18s; }
.couple-cards-container .couple-card:nth-child(3) { transition-delay: 0.28s; }

/* Event Cards Cascade */
.events-wrapper .event-card:nth-child(1) { transition-delay: 0.08s; }
.events-wrapper .event-card:nth-child(2) { transition-delay: 0.22s; }

/* Protocol Cards & Countdown Grid Cascade */
.protocols-grid .protocol-card:nth-child(1) { transition-delay: 0.06s; }
.protocols-grid .protocol-card:nth-child(2) { transition-delay: 0.16s; }
.protocols-grid .protocol-card:nth-child(3) { transition-delay: 0.26s; }

.countdown-grid .countdown-item:nth-child(1) { transition-delay: 0.06s; }
.countdown-grid .countdown-item:nth-child(3) { transition-delay: 0.14s; }
.countdown-grid .countdown-item:nth-child(5) { transition-delay: 0.22s; }
.countdown-grid .countdown-item:nth-child(7) { transition-delay: 0.30s; }

.gallery-grid .gallery-item:nth-child(odd) { transition-delay: 0.06s; }
.gallery-grid .gallery-item:nth-child(even) { transition-delay: 0.18s; }

/* Mobile Performance Optimization (Contain Layout Computation) */
@media (max-width: 768px) {
  .story-section,
  .protocols-section,
  .rsvp-section {
    contain: content;
  }
}

/* ==========================================================================
   DESKTOP MEDIA QUERIES (Enhanced Multi-Column Layout)
   ========================================================================== */
@media (min-width: 768px) {
  .site-wrapper {
    padding: 30px 0;
  }

  .invitation-container {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  }

  .cover-overlay {
    border-radius: var(--radius-lg);
  }
}

/* ==========================================================================
   PARALLAX MOTION SYSTEM (Hardware-Accelerated, Smooth & Pleasant)
   ========================================================================== */
.parallax-item {
  will-change: transform;
}

@supports ((animation-timeline: view()) and (animation-range: entry)) {
  .countdown-parallax-bg {
    animation: parallaxCountdown linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }

  @keyframes parallaxCountdown {
    from {
      transform: translate3d(0, -12%, 0);
    }
    to {
      transform: translate3d(0, 12%, 0);
    }
  }

  .hero-photo-card img {
    animation: parallaxHeroPhoto linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }

  @keyframes parallaxHeroPhoto {
    from {
      transform: scale(1.14) translate3d(0, -18px, 0);
    }
    to {
      transform: scale(1.14) translate3d(0, 18px, 0);
    }
  }

  .couple-photo img {
    animation: parallaxCouplePhoto linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }

  @keyframes parallaxCouplePhoto {
    from {
      transform: scale(1.14) translate3d(0, -15px, 0);
    }
    to {
      transform: scale(1.14) translate3d(0, 15px, 0);
    }
  }

  .timeline-photo img {
    animation: parallaxTimelinePhoto linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }

  @keyframes parallaxTimelinePhoto {
    from {
      transform: scale(1.12) translate3d(0, -14px, 0);
    }
    to {
      transform: scale(1.12) translate3d(0, 14px, 0);
    }
  }
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .countdown-parallax-bg,
  .hero-photo-card img,
  .couple-photo img,
  .timeline-photo img,
  .btn-open-invitation,
  .btn-open-invitation svg {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}