/* ==============================================================================
   MASTER STYLESHEET — THE SACRED WEDDING OF NASIR & ISNA
   Islamic Javanese Luxury Wedding | Cinematic Editorial Aesthetic
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Scheherazade+New:wght@400;700&display=swap');

:root {
  /* Default: Cinematic Deep Forest Emerald & Gold Theme */
  --bg-primary: #081510;
  --bg-secondary: #0e221a;
  --bg-card: rgba(16, 38, 29, 0.75);
  --bg-card-hover: rgba(22, 51, 39, 0.85);
  --bg-overlay: rgba(8, 21, 16, 0.88);
  --bg-glass: rgba(14, 34, 26, 0.65);

  --text-primary: #f8f6f0;
  --text-secondary: #d8ded8;
  --text-muted: #8fa598;
  --text-gold: #e5c365;

  --gold-primary: #d4af37;
  --gold-light: #f6e6b4;
  --gold-dark: #996515;
  --gold-gradient: linear-gradient(135deg, #fceebd 0%, #d4af37 50%, #996515 100%);
  --gold-border: rgba(212, 175, 55, 0.28);
  --gold-border-light: rgba(212, 175, 55, 0.45);
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.25);

  --accent-emerald: #1c4232;
  --accent-cream: #faf5ed;
  --accent-terracotta: #a65b44;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);

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

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-decorative: 'Cinzel Decorative', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Scheherazade New', 'Amiri', serif;

  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

/* Light / Champagne Luxury Mode */
[data-theme="light"] {
  --bg-primary: #f9f6f0;
  --bg-secondary: #f0ebe1;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-overlay: rgba(249, 246, 240, 0.92);
  --bg-glass: rgba(255, 255, 255, 0.7);

  --text-primary: #12241b;
  --text-secondary: #2d4237;
  --text-muted: #5e7368;
  --text-gold: #9e7916;

  --gold-primary: #b89124;
  --gold-light: #d4af37;
  --gold-dark: #7a540e;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #b89124 50%, #7a540e 100%);
  --gold-border: rgba(184, 145, 36, 0.3);
  --gold-border-light: rgba(184, 145, 36, 0.5);
  --gold-glow: 0 0 20px rgba(184, 145, 36, 0.2);

  --shadow-sm: 0 4px 12px rgba(18, 36, 27, 0.06);
  --shadow-md: 0 10px 30px rgba(18, 36, 27, 0.1);
  --shadow-lg: 0 20px 50px rgba(18, 36, 27, 0.15);
}

/* Base Reset & Smooth Scroll */
*, *::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: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Background Subtle Texture Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

/* ==============================================================================
   TYPOGRAPHY UTILITIES
   ============================================================================== */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.font-decorative {
  font-family: var(--font-decorative);
  letter-spacing: 0.08em;
}

.font-arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  line-height: 2.2;
}

.text-gold {
  color: var(--gold-light);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.subtitle-badge::before, .subtitle-badge::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold-primary);
  opacity: 0.6;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ==============================================================================
   CONTAINERS & STRUCTURE
   ============================================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: 840px;
}

section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  z-index: 2;
}

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

.section-divider .line {
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.section-divider .diamond {
  width: 8px;
  height: 8px;
  background: var(--gold-primary);
  transform: rotate(45deg);
}

/* ==============================================================================
   PRELOADER
   ============================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  background: #081510;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-monogram {
  font-family: var(--font-decorative);
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulseGold 2s infinite ease-in-out;
  margin-bottom: 1rem;
}

.preloader-bar-wrapper {
  width: 180px;
  height: 2px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.preloader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--gold-gradient);
  animation: loadProgress 1.6s ease-in-out forwards;
}

.preloader-text {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 1rem;
  opacity: 0.8;
}

/* ==============================================================================
   COVER FULLSCREEN (OPENING GATE)
   ============================================================================== */
#opening-cover {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 40%, #102a1f 0%, #06110d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 1.2s ease;
}

#opening-cover.cover-opened {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.cover-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: blur(2px);
  transform: scale(1.05);
  transition: transform 10s ease;
}

#opening-cover:hover .cover-bg-image {
  transform: scale(1.1);
}

.cover-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, #06110d 90%);
}

.cover-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 2.5rem 1.5rem;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover-ornament {
  width: 54px;
  height: 54px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
  animation: floatOrnament 4s infinite ease-in-out;
}

.cover-heading {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.cover-names {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.cover-ampersand {
  font-family: var(--font-decorative);
  display: block;
  font-size: 1.8rem;
  margin: 0.4rem 0;
  color: var(--gold-light);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cover-date-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold-light);
  padding: 6px 18px;
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  margin: 1.5rem 0 2rem;
}

/* Guest Name Card */
.guest-invitation-box {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin-bottom: 2.25rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-md);
}

.guest-intro {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.guest-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-light);
  word-break: break-word;
}

.guest-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

/* Button Buka Undangan */
.btn-open-invitation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--gold-gradient);
  color: #0b1a13;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-open-invitation::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-open-invitation:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.6);
}

.btn-open-invitation:hover::before {
  opacity: 1;
}

.btn-open-invitation svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.btn-open-invitation:hover svg {
  transform: translateX(4px);
}

/* ==============================================================================
   FLOATING MUSIC PLAYER & THEME SWITCHER
   ============================================================================== */
.floating-controls {
  position: fixed;
  bottom: 84px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.control-btn:hover {
  transform: scale(1.1);
  border-color: var(--gold-primary);
  box-shadow: var(--gold-glow);
}

.control-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Rotating Disc */
.music-disc.rotating {
  animation: rotateDisc 6s linear infinite;
}

.music-disc.paused {
  animation-play-state: paused;
}

/* ==============================================================================
   BOTTOM NAVIGATION BAR (MOBILE & DESKTOP FLOATING PILL)
   ============================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.nav-item:hover, .nav-item.active {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
}

.nav-item:hover svg, .nav-item.active svg {
  transform: translateY(-2px);
  stroke: var(--gold-light);
}

/* ==============================================================================
   HERO CINEMATIC SECTION
   ============================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.28;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 35%, transparent 65%, var(--bg-primary) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 780px;
}

.hero-monogram {
  font-family: var(--font-decorative);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.3));
}

.hero-title-greeting {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.hero-names-full {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-wedding-date {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 2rem;
}

.scroll-indicator {
  margin-top: 2.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-indicator-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--gold-border);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--gold-light);
  border-radius: 2px;
  animation: mouseWheel 2s infinite ease-in-out;
}

/* ==============================================================================
   INVITATION INTRO (BASMALAH & SALAM)
   ============================================================================== */
.intro-section {
  text-align: center;
  padding: 5rem 0;
  background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.bismillah-text {
  font-family: var(--font-arabic);
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.salam-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.intro-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.9;
}

/* ==============================================================================
   COUPLE SECTION (EDITORIAL ASYMMETRIC)
   ============================================================================== */
.couple-section {
  padding: 7rem 0;
}

.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3rem;
  margin-top: 3.5rem;
}

.couple-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.couple-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-border-light);
  box-shadow: var(--shadow-lg), var(--gold-glow);
}

.portrait-wrapper {
  position: relative;
  width: 240px;
  height: 310px;
  margin: 0 auto 2rem;
  border-radius: 120px 120px 20px 20px; /* Arch top traditional luxury frame */
  padding: 6px;
  background: var(--gold-gradient);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.portrait-inner {
  width: 100%;
  height: 100%;
  border-radius: 115px 115px 16px 16px;
  overflow: hidden;
  position: relative;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.couple-card:hover .portrait-img {
  transform: scale(1.06);
}

.couple-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.couple-fullname {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.family-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 300px;
  margin: 0 auto;
}

.family-info strong {
  color: var(--text-secondary);
}

.couple-center-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.couple-center-ampersand {
  font-family: var(--font-decorative);
  font-size: 3rem;
  color: var(--gold-light);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.divider-vertical-line {
  width: 1px;
  height: 100px;
  background: linear-gradient(180deg, transparent, var(--gold-primary), transparent);
}

/* ==============================================================================
   ISLAMIC / QURANIC QUOTE SECTION
   ============================================================================== */
.quran-section {
  padding: 6rem 0;
  background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  text-align: center;
}

.quran-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.quran-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  color: var(--gold-light);
  margin-bottom: 2rem;
  line-height: 2.3;
}

.quran-translation {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.9;
}

.quran-reference {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

/* ==============================================================================
   LOVE STORY / TIMELINE SECTION
   ============================================================================== */
.timeline-section {
  padding: 7rem 0;
}

.timeline-wrapper {
  position: relative;
  max-width: 820px;
  margin: 4rem auto 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold-primary), var(--gold-primary), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 44%;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: right;
}

.timeline-content:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border-light);
  box-shadow: var(--shadow-lg);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--gold-primary);
  box-shadow: var(--gold-glow);
  z-index: 2;
}

/* ==============================================================================
   SAVE THE DATE & EVENTS SECTION
   ============================================================================== */
.events-section {
  padding: 7rem 0;
  background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.event-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.event-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-border-light);
  box-shadow: var(--shadow-lg), var(--gold-glow);
}

.event-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-border);
  margin-bottom: 1.5rem;
}

.event-type {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.event-detail-item {
  margin-bottom: 1.25rem;
}

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

.event-detail-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.event-venue {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.event-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

.event-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold-gradient);
  color: #0b1a13;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--gold-border);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-secondary-action:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
}

/* ==============================================================================
   COUNTDOWN TIMER
   ============================================================================== */
.countdown-section {
  padding: 5rem 0;
  text-align: center;
}

.countdown-box {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 24px);
  margin-top: 2.5rem;
}

.countdown-unit {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  min-width: clamp(70px, 18vw, 100px);
  box-shadow: var(--shadow-md);
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}

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

.countdown-finished {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-top: 1.5rem;
}

/* ==============================================================================
   GALLERY SHOWCASE (EDITORIAL + MASONRY + LIGHTBOX)
   ============================================================================== */
.gallery-section {
  padding: 7rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 21, 16, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

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

.gallery-caption {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-light);
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Lightbox Modal */
#lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 9, 0.96);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

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

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gold-border);
}

.lightbox-caption {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-light);
  text-align: center;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close { top: 20px; right: 20px; z-index: 10; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); z-index: 10; }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); z-index: 10; }

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--gold-primary);
  color: #0b1a13;
}

/* ==============================================================================
   VIDEO PREWEDDING SECTION
   ============================================================================== */
.video-section {
  padding: 6rem 0;
  background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  text-align: center;
}

.video-frame-wrapper {
  max-width: 860px;
  margin: 3.5rem auto 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-lg);
  background: #000;
}

.wedding-video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

/* ==============================================================================
   RSVP & GUESTBOOK SECTION
   ============================================================================== */
.rsvp-section {
  padding: 7rem 0;
}

.rsvp-container-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3.5rem;
}

.rsvp-card, .guestbook-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

[data-theme="light"] .form-control {
  background: rgba(255, 255, 255, 0.7);
  color: #12241b;
}

.form-control:focus {
  border-color: var(--gold-primary);
  box-shadow: var(--gold-glow);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

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

.btn-submit-rsvp {
  width: 100%;
  padding: 16px;
  background: var(--gold-gradient);
  color: #0b1a13;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
  transition: var(--transition-smooth);
}

.btn-submit-rsvp:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
}

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

/* Guestbook Stream */
.wishes-stream-container {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wishes-stream-container::-webkit-scrollbar {
  width: 5px;
}
.wishes-stream-container::-webkit-scrollbar-thumb {
  background: var(--gold-border);
  border-radius: 4px;
}

.wish-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition-fast);
}

[data-theme="light"] .wish-item {
  background: rgba(255, 255, 255, 0.6);
}

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

.wish-sender {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold-light);
}

.wish-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.wish-badge.tidak-hadir {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.4);
}

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

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

/* ==============================================================================
   DIGITAL GIFT & PHYSICAL GIFT SECTION
   ============================================================================== */
.gift-section {
  padding: 7rem 0;
  background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  text-align: center;
}

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

.bank-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: var(--transition-smooth);
}

.bank-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-border-light);
  box-shadow: var(--shadow-lg), var(--gold-glow);
}

.bank-chip {
  width: 44px;
  height: 32px;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  border-radius: 6px;
  margin: 0 auto 1.5rem;
  opacity: 0.8;
}

.bank-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.bank-account-number {
  font-family: monospace;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 0.5rem;
}

[data-theme="light"] .bank-account-number {
  color: #12241b;
}

.bank-owner {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.btn-copy-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy-account:hover {
  background: var(--gold-primary);
  color: #0b1a13;
}

/* Physical Gift Accordion/Box */
.physical-gift-card {
  max-width: 640px;
  margin: 3rem auto 0;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
}

.gift-address-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
}

/* ==============================================================================
   WEDDING HASHTAG & SOCIAL SHARE
   ============================================================================== */
.hashtag-section {
  padding: 5rem 0;
  text-align: center;
}

.wedding-hashtag-text {
  font-family: var(--font-decorative);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.share-buttons-wrapper {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-share-wa {
  background: #25d366;
  color: #fff;
  border: none;
}

.btn-share-wa:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-share-link {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
}

.btn-share-link:hover {
  background: var(--gold-primary);
  color: #0b1a13;
  transform: translateY(-2px);
}

/* ==============================================================================
   LOCATION / MAPS EMBED
   ============================================================================== */
.location-section {
  padding: 6rem 0;
  text-align: center;
}

.map-container {
  max-width: 900px;
  margin: 3.5rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-lg);
}

.map-frame {
  width: 100%;
  height: 400px;
  border: 0;
  filter: grayscale(30%) contrast(1.1);
}

/* ==============================================================================
   CLOSING SECTION
   ============================================================================== */
.closing-section {
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 60%, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.closing-backdrop {
  position: absolute;
  inset: 0;
  background-image: url('../images/closing-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.closing-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.closing-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 2rem;
}

.closing-names {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.closing-salam {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 2rem;
}

/* ==============================================================================
   FOOTER
   ============================================================================== */
.footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-brand {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
}

/* ==============================================================================
   TOAST NOTIFICATION
   ============================================================================== */
#toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gold-border-light);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg), var(--gold-glow);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastFadeIn 0.35s ease forwards;
  pointer-events: auto;
}

.toast.toast-success {
  border-color: #2ecc71;
}

.toast.toast-error {
  border-color: #e74c3c;
}
