/* ═══════════════════════════════════════════════
   EVRAM & SANDRA WEDDING — STYLES
   Theme: Garden Romance (Fig, Wine, Wisteria, Dusty Rose, Olive, Moss)
   ═══════════════════════════════════════════════ */

/* ── Custom Fonts ──────────────────────────────── */
@font-face {
  font-family: 'Yellow Rabbit';
  src: url('../assets/fonts/YellowrabbitPersonaluse-qZYyd.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Elsie Black';
  src: url('../assets/fonts/Elsie-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lemon Milk light';
  src: url('../assets/fonts/LemonMilkLight-owxMq.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* ── CSS Variables ─────────────────────────────── */
:root {
  /* Primary Palette — Garden Romance */
  --gold:        #6B7C3F;   /* Olive — primary accent */
  --gold-light:  #8A9A5B;   /* Moss — lighter accent */
  --gold-lighter:#E8DFF0;   /* Pale wisteria — soft accent */
  --burgundy:    #722F37;   /* Wine — hover/dark accent */
  --ivory:       #FDF6F3;   /* Pale dusty rose — main bg */
  --cream:       #F2EBF5;   /* Light wisteria — section bg */
  --blush:       #DCAE96;   /* Dusty rose — highlights */
  --charcoal:    #3D1F35;   /* Fig — headings/text */
  --white:       #FFFFFF;
  --black:       #1A0E16;   /* Deep fig */

  /* Functional */
  --text-main:   #3D1F35;   /* Fig */
  --text-light:  #6B4D62;   /* Muted fig */
  --text-on-gold:#FFFFFF;
  --shadow:      0 4px 30px rgba(61,31,53,0.08);
  --shadow-lg:   0 12px 50px rgba(61,31,53,0.14);

  /* Fonts */
  --font-display:'Playfair Display', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-body:   'Lato', 'Segoe UI', system-ui, sans-serif;
  --font-arabic: 'Tajawal', 'Amiri', sans-serif;

  /* Sizing */
  --container-max: 1100px;
  --section-pad:   5rem 1.5rem;
  --radius:        12px;
  --radius-sm:     8px;

  /* Theme-specific */
  --lang-bg:     rgba(255,255,255,0.85);
  --form-input-bg: var(--ivory);
  --form-status-success-bg: #E8F5E9;
  --form-status-success-text: #2E7D32;
  --form-status-error-bg: #FFEBEE;
  --form-status-error-text: #C62828;
}

/* ── Dark Theme ────────────────────────────────── */
[data-theme="dark"] {
  --gold:        #8A9A5B;   /* Moss */
  --gold-light:  #A4B87A;   /* Light moss */
  --ivory:       #1A1018;   /* Dark fig */
  --cream:       #221A20;   /* Deep fig-plum */
  --blush:       #3A2530;   /* Dark dusty rose */
  --charcoal:    #E8DDE4;   /* Light fig tint */
  --white:       #1E1620;   /* Dark purple-black */
  --black:       #F5F0F3;
  --text-main:   #E0D8DC;
  --text-light:  #A898A2;
  --shadow:      0 4px 30px rgba(0,0,0,0.30);
  --shadow-lg:   0 12px 50px rgba(0,0,0,0.40);
  --gold-lighter:#2E2838;   /* Dark wisteria */
  --lang-bg:     rgba(26,16,24,0.88);
  --form-input-bg: #251C22;
  --form-status-success-bg: #1B3B1E;
  --form-status-success-text: #81C784;
  --form-status-error-bg: #3E1A1A;
  --form-status-error-text: #EF9A9A;
}

[data-theme="dark"] .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.5) 0%,
    rgba(0,0,0,0.65) 50%,
    rgba(0,0,0,0.8) 100%
  );
}

[data-theme="dark"] .section-countdown {
  background: linear-gradient(180deg, var(--ivory) 0%, #1C161A 50%, var(--cream) 100%);
}

[data-theme="dark"] .section-story {
  background-image:
    linear-gradient(180deg, rgba(26,14,22,0.93) 0%, rgba(34,26,32,0.90) 40%, rgba(26,14,22,0.93) 100%),
    url('../assets/images/dancing-couple.jpg');
}

[data-theme="dark"] .section-gallery {
  background: linear-gradient(180deg, #1C161A 0%, #201A1E 50%, var(--cream) 100%);
}

[data-theme="dark"] .section-verse {
  background: #0E0E0E;
  color: #E0D8DC;
}

[data-theme="dark"] #footer {
  background: #0E0E0E;
  color: #E0D8DC;
}

/* ── Dark Theme — Text Contrast Fixes ─────────── */

/* Hero text must stay light on dark overlay */
[data-theme="dark"] .hero-content {
  color: #FFFFFF;
}

/* Section titles/eyebrows on colored sections */
[data-theme="dark"] .section-title-light {
  color: #FFFFFF;
}
[data-theme="dark"] .section-eyebrow-light {
  color: #E0D8DC;
}
[data-theme="dark"] .section-divider-light .divider-diamond {
  background: #E0D8DC;
}

/* RSVP & Gold sections — text must stay light on olive bg */
[data-theme="dark"] .section-rsvp,
[data-theme="dark"] .section-gold {
  color: #FFFFFF;
}
[data-theme="dark"] .counter-number {
  color: #FFFFFF;
}
[data-theme="dark"] .rsvp-not-going {
  color: #FFFFFF;
}

/* Verse text on dark bg */
[data-theme="dark"] .verse-text {
  color: #E0D8DC;
}

/* Buttons — keep light text on colored backgrounds */
[data-theme="dark"] .btn-gold {
  color: #FFFFFF;
}
[data-theme="dark"] .btn-gold:hover {
  color: #FFFFFF;
}
[data-theme="dark"] .btn-dark {
  color: #FFFFFF;
}
[data-theme="dark"] .btn-whatsapp {
  color: #FFFFFF;
}

/* Music button */
[data-theme="dark"] .music-btn {
  color: #FFFFFF;
}
[data-theme="dark"] .music-bars i {
  background: #FFFFFF;
}

/* Lightbox controls */
[data-theme="dark"] .lb-close,
[data-theme="dark"] .lb-prev,
[data-theme="dark"] .lb-next {
  color: #FFFFFF;
}

/* Scroll indicator */
[data-theme="dark"] .scroll-indicator {
  color: #FFFFFF;
}
[data-theme="dark"] .scroll-arrow span {
  border-right-color: #FFFFFF;
  border-bottom-color: #FFFFFF;
}

/* RTL overrides */
html[dir="rtl"] {
  --font-body:   'Tajawal', 'Amiri', sans-serif;
  --font-display:'Amiri', 'Playfair Display', serif;
}


/* ── Reset & Base ──────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover { color: var(--burgundy); }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.hidden { display: none !important; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ── Sections ──────────────────────────────────── */
.section {
  padding: var(--section-pad);
  position: relative;
}

.section-light { background: var(--ivory); }
.section-cream { background: var(--cream); }

/* Countdown: soft warm gradient */
.section-countdown {
  background: linear-gradient(180deg, var(--ivory) 0%, #F0E8F2 50%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

.section-countdown .container {
  position: relative;
  z-index: 2;
}

.section-countdown #particles-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Our Story: dancing couple background */
.section-story {
  background: var(--cream);
  background-image:
    linear-gradient(180deg, rgba(242,235,245,0.92) 0%, rgba(232,223,240,0.88) 40%, rgba(242,235,245,0.92) 100%),
    url('../assets/images/dancing-couple.jpg');
  background-size: cover, cover;
  background-position: center, 90% center;
  background-repeat: no-repeat, no-repeat;
}

/* Ceremony: burgundy accent strip at top */
.section-ceremony {
  background: var(--ivory);
  border-top: 4px solid var(--burgundy);
  position: relative;
  overflow: hidden;
}

/* Floral corner decoration */
.ceremony-floral-corner {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 300px;
  height: 300px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

.ceremony-floral-corner svg {
  width: 100%;
  height: 100%;
}

.section-ceremony .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .ceremony-floral-corner {
    width: 180px;
    height: 180px;
    top: -5px;
    left: -5px;
    opacity: 0.7;
  }
}

/* Gallery: darker warm tone */
.section-gallery {
  background: linear-gradient(180deg, #EDE4F0 0%, #F0E8F2 50%, var(--cream) 100%);
}



/* RSVP: rich gold gradient */
.section-rsvp {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  color: var(--white);
}

.section-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  color: var(--white);
}

.section-verse {
  background: var(--charcoal);
  color: var(--cream);
}


/* ── Section Headers ───────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.section-eyebrow-light { color: var(--cream); }

.section-title {
  font-family: 'Yellow Rabbit', var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 50;
  color: var(--charcoal);
  margin-bottom: 0.8rem;
}
.section-title-light { color: var(--white); }

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.section-divider::before,
.section-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--gold-light);
}
.section-divider-light::before,
.section-divider-light::after {
  background: rgba(255,255,255,0.5);
}
.divider-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
}
.section-divider-light .divider-diamond {
  background: var(--cream);
}


/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn-gold:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
  border: 2px solid var(--charcoal);
}
.btn-dark:hover {
  background: var(--black);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}
.btn-outline-dark:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.btn-whatsapp:hover {
  background: #1DA851;
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════
   ENVELOPE OVERLAY — Authentic Vintage Envelope
   ═══════════════════════════════════════════════ */
#envelope-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10000;
  background-color: #FAF6F0;
  background-image:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(255,255,255,0.4) 0%,
      transparent 70%
    ),
    url('../assets/textures/two-trees.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

#envelope-overlay.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.1s ease, visibility 0.1s ease;
}

.envelope-scene {
  text-align: center;
  cursor: pointer;
  position: relative;
  padding: 2rem;
  transform: translateY(-5vh);
}

/* Soft warm glow behind the envelope */
.ambient-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  width: 600px; height: 500px;
  background: radial-gradient(
    ellipse at center,
    rgba(210,180,140,0.15) 0%,
    rgba(180,150,110,0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: ambientFlicker 6s ease-in-out infinite;
}

@keyframes ambientFlicker {
  0%, 100% { opacity: 1; }
  30% { opacity: 0.85; }
  60% { opacity: 0.95; }
  80% { opacity: 0.88; }
}

/* ── Wrapper (perspective container) ── */
.envelope-wrapper {
  position: relative;
  width: 380px; height: 260px;
  margin: 0 auto;
  perspective: 1400px;
  filter: drop-shadow(0 8px 30px rgba(80,60,30,0.25));
}

/* ── Envelope Body ── */
.envelope-body {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(180,150,110,0.4);
}

/* ── Envelope Liner (the decorative inside) ── */
.envelope-liner {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    url('../assets/textures/cream-paper.png'),
    linear-gradient(170deg, #E8C99B, #D9B888, #DCBD92);
  z-index: 0;
}

/* Decorative liner border inset */
.envelope-liner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
}

/* ── Card (inside the envelope) ── */
.envelope-card {
  position: absolute;
  top: 16px; left: 16px; right: 16px; bottom: 16px;
  background:
    url('../assets/textures/natural-paper.png'),
    linear-gradient(170deg, #FFF8EE, #FFF0DD, #FFF8EE);
  border-radius: 3px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 0 1px rgba(180,150,100,0.15),
    0 2px 6px rgba(80,50,10,0.08);
  opacity: 0;
}

.card-inner {
  text-align: center;
  padding: 1.5rem;
}

.card-ornament {
  font-size: 1.1rem;
  color: rgba(184,134,11,0.4);
  line-height: 1;
}
.card-ornament-top { margin-bottom: 0.4rem; }
.card-ornament-bottom { margin-top: 0.4rem; transform: rotate(180deg); }

.card-eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #8C7A5A;
  margin-bottom: 0.5rem;
}

.card-line {
  width: 50px; height: 1px;
  background: linear-gradient(90deg, transparent, #B8860B, transparent);
  margin: 0.5rem auto;
}

.card-date-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #3A2818;
  letter-spacing: 0.18em;
}

.card-venue-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: #9A7B4F;
  margin-top: 0.3rem;
  letter-spacing: 0.12em;
}

/* ── Triangular Flap (the top V-shaped lid) ── */
.envelope-flap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  z-index: 5;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background:
    url('../assets/textures/natural-paper.png'),
    linear-gradient(180deg, #D4A574 0%, #C99868 40%, #BE8D5E 80%, #B88555 100%);
  transform-origin: top center;
  box-shadow: 0 2px 6px rgba(80,50,20,0.12);
}

.flap-texture {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background:
    linear-gradient(180deg, rgba(255,245,230,0.08) 0%, transparent 40%, rgba(100,60,20,0.06) 100%);
  pointer-events: none;
}

.flap-border {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  clip-path: polygon(
    2px 0, calc(100% - 2px) 0,
    50% calc(100% - 2px),
    50% 100%,
    100% 0, 0 0
  );
  pointer-events: none;
}

/* ── Bottom fold (triangle that makes the pocket) ── */
.envelope-bottom-fold {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  z-index: 4;
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
  background:
    url('../assets/textures/natural-paper.png'),
    linear-gradient(0deg, #D9B888 0%, #D0AE7C 50%, #C8A572 100%);
  box-shadow: 0 -1px 4px rgba(80,50,20,0.08);
}

.envelope-bottom-fold::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100%;
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
  background: linear-gradient(0deg, rgba(0,0,0,0.03) 0%, transparent 25%);
  pointer-events: none;
}

/* ── Left fold triangle ── */
.envelope-left-fold {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 55%;
  z-index: 3;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background:
    url('../assets/textures/natural-paper.png'),
    linear-gradient(90deg, #D4AA78 0%, #CCA470 50%, #C49C68 100%);
}

.envelope-left-fold::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: linear-gradient(90deg, rgba(60,40,15,0.04) 0%, transparent 40%);
  pointer-events: none;
}

/* ── Right fold triangle ── */
.envelope-right-fold {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 55%;
  z-index: 3;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
  background:
    url('../assets/textures/natural-paper.png'),
    linear-gradient(-90deg, #D4AA78 0%, #CCA470 50%, #C49C68 100%);
}

.envelope-right-fold::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
  background: linear-gradient(-90deg, rgba(60,40,15,0.04) 0%, transparent 40%);
  pointer-events: none;
}

/* ── Wax Seal — sits on the flap point ── */
.envelope-seal {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  background: radial-gradient(
    circle at 42% 38%,
    #8B2020 0%,
    #6B1515 30%,
    #551010 55%,
    #3D0A0A 100%
  );
  border-radius: 50%;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 3px 12px rgba(40,10,5,0.45),
    0 1px 4px rgba(60,15,5,0.3),
    inset 0 -3px 8px rgba(0,0,0,0.35),
    inset 0 3px 6px rgba(180,80,60,0.15);
  animation: sealGlow 4.5s ease-in-out infinite;
}

/* Seal edge texture (irregular wax edge) */
.seal-rim {
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 55%, rgba(100,20,10,0.25) 100%);
  pointer-events: none;
}

.envelope-seal::before {
  content: '';
  position: absolute;
  top: 5px; left: 5px; right: 5px; bottom: 5px;
  border: 1px solid rgba(200,120,90,0.15);
  border-radius: 50%;
  pointer-events: none;
}

.seal-cross {
  width: 38px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

@keyframes sealGlow {
  0%, 100% {
    box-shadow:
      0 3px 12px rgba(40,10,5,0.45),
      0 1px 4px rgba(60,15,5,0.3),
      inset 0 -3px 8px rgba(0,0,0,0.35),
      inset 0 3px 6px rgba(180,80,60,0.15);
  }
  50% {
    box-shadow:
      0 3px 12px rgba(40,10,5,0.45),
      0 1px 4px rgba(60,15,5,0.3),
      0 0 25px rgba(140,40,20,0.12),
      inset 0 -3px 8px rgba(0,0,0,0.35),
      inset 0 3px 6px rgba(180,80,60,0.15);
  }
}

/* ── Tap to Open ── */
.tap-to-open {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: #8B6B4A;
  margin-top: 2.5rem;
  animation: tapPulse 3.5s ease-in-out infinite;
  text-shadow: 0 1px 4px rgba(180,140,80,0.15);
  letter-spacing: 0.05em;
}

@keyframes tapPulse {
  0%, 100% { opacity: 0.9; transform: translateY(0); }
  50% { opacity: 0.5; transform: translateY(2px); }
}

/* ── Light Burst (center focal point after open) ── */
.light-burst {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255,248,230,0.95) 0%,
    rgba(255,235,180,0.7) 15%,
    rgba(218,165,32,0.4) 35%,
    rgba(184,134,11,0.15) 55%,
    transparent 75%
  );
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

/* ── Names Reveal ── */
.envelope-names-reveal {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 1;
  visibility: hidden;
  width: max-content;
  max-width: 90vw;
  z-index: 3;
}

.reveal-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #8B6B4A;
  margin-bottom: 0.5rem;
  opacity: 0;
}

.reveal-names {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: #4A2C14;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(180,140,80,0.15);
  opacity: 0;
}

.reveal-names span {
  font-family: var(--font-script);
  font-size: 2rem;
  margin: 0 0.4rem;
  color: #6B4220;
  opacity: 0.8;
}


/* ═══════════════════════════════════════════════
   MUSIC BUTTON
   ═══════════════════════════════════════════════ */
.music-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.music-btn:hover {
  transform: scale(1.1);
  background: var(--burgundy);
}

.music-note {
  font-size: 1.4rem;
  display: none;
}

.music-btn.paused .music-note { display: block; }
.music-btn.paused .music-bars { display: none; }

.music-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 18px;
}

.music-bars i {
  display: block;
  width: 3px;
  background: var(--white);
  border-radius: 2px;
  animation: musicBar 0.8s ease-in-out infinite alternate;
}
.music-bars i:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-bars i:nth-child(2) { height: 16px; animation-delay: 0.2s; }
.music-bars i:nth-child(3) { height: 12px; animation-delay: 0.4s; }

@keyframes musicBar {
  0%   { height: 4px; }
  100% { height: 18px; }
}


/* ═══════════════════════════════════════════════
   LANGUAGE TOGGLE
   ═══════════════════════════════════════════════ */
#lang-toggle {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--lang-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.lang-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  transition: color 0.3s;
  padding: 0.2rem 0.3rem;
}
.lang-btn.active {
  color: var(--gold);
}
.lang-btn:hover { color: var(--gold); }
.lang-sep { color: var(--gold-lighter); font-size: 0.85rem; }

/* ── Theme Toggle ─────────────────────────────── */
#theme-toggle {
  position: fixed;
  top: 1.2rem;
  right: 9rem;
  z-index: 9000;
}
html[dir="rtl"] #theme-toggle {
  right: auto;
  left: 9rem;
}
.btn-theme-main {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lang-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s;
  line-height: 1;
}
.btn-theme-main:hover {
  transform: scale(1.1);
}

html[dir="rtl"] #lang-toggle {
  right: auto;
  left: 1.5rem;
}


/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(61,31,53,0.4) 0%,
    rgba(61,31,53,0.55) 50%,
    rgba(61,31,53,0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
}

.hero-subtitle {
  font-family: 'Lemon Milk light', var(--font-display);
  /* font-style: italic; */
  font-size: clamp(0.8rem, 2vw, 1rem);
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.couple-names-hero {
  font-family: 'Elsie Black', var(--font-display);
  /* font-weight: 500; */
  margin-left: 0.8rem;
  font-size: clamp(2rem, 10vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.couple-names-hero .amp {
  font-family: var(--font-display);
  /* font-style: italic; */
  color: whitesmoke;
  font-weight: 400;
  display: inline-block;
  margin: 0 0.3em;
  font-size: 0.7em;
}

.couple-names-hero .name-groom { color: rgba(205, 230, 183, 0.9); }
.couple-names-hero .name-bride { color: rgba(224, 160, 166, 0.9); }

.hero-ornament {
  width: 80px;
  height: 2px;
  background: var(--gold-light);
  margin: 1rem auto;
  position: relative;
}
.hero-ornament::before {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.6rem;
  color: var(--gold-light);
}

.hero-date {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2.5vw, 1.3rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 0.3rem;
}

.hero-venue {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  opacity: 0.85;
}


/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  color: var(--white);
  opacity: 0.7;
  animation: scrollBounce 2s infinite;
}

.scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.5rem;
}

.scroll-arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  margin: -2px auto 0;
  animation: scrollArrow 2s infinite;
}

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

@keyframes scrollArrow {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0; }
}


/* ═══════════════════════════════════════════════
   COUNTDOWN
   ═══════════════════════════════════════════════ */
.countdown-boxes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.countdown-unit {
  text-align: center;
  min-width: 75px;
}

.countdown-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  transition: transform 0.3s;
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-top: 0.3rem;
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  margin-top: -1.2rem;
}


/* ═══════════════════════════════════════════════
   OUR STORY / TIMELINE
   ═══════════════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  width: 2px;
  height: 100%;
  background: var(--gold-lighter);
}

html[dir="rtl"] .timeline {
  padding-left: 0;
  padding-right: 40px;
}
html[dir="rtl"] .timeline::before {
  left: auto;
  right: 15px;
}

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

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

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 0;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border: 3px solid var(--cream);
  border-radius: 50%;
  z-index: 1;
}

html[dir="rtl"] .timeline-dot {
  left: auto;
  right: -33px;
}

.timeline-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.timeline-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s;
}

.timeline-image:hover img {
  transform: scale(1.03);
}

.timeline-text h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.timeline-text p {
  color: var(--text-light);
  line-height: 1.8;
}


/* ═══════════════════════════════════════════════
   CEREMONY DETAILS
   ═══════════════════════════════════════════════ */
.ceremony-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.ceremony-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--burgundy);
  position: relative;
}

.ceremony-info-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(114,47,55,0.3);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}

.ceremony-cross {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.ceremony-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}

.ceremony-loc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.ceremony-details-list {
  margin-bottom: 1.5rem;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.detail-icon { font-size: 1.1rem; }

/* Calendar dropdown */
.cal-dropdown {
  margin-top: 0.8rem;
  background: var(--white);
  border: 1px solid var(--gold-lighter);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cal-dropdown a {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--charcoal);
  transition: background 0.2s;
}
.cal-dropdown a:hover {
  background: var(--cream);
}

.ceremony-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 350px;
  position: relative;
  border: 2px solid var(--burgundy);
}

.ceremony-map iframe {
  display: block;
}

.btn-directions {
  display: block;
  margin-top: 0.8rem;
  text-align: center;
  border-radius: var(--radius-sm);
}


/* ═══════════════════════════════════════════════
   PHOTO GALLERY
   ═══════════════════════════════════════════════ */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 200px;
  gap: 12px;
  grid-auto-flow: dense;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

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

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

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


/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}

#lb-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  color: var(--white);
  font-size: 2.5rem;
  background: rgba(255,255,255,0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255,255,255,0.25);
}

.lb-close { top: 1.5rem; right: 1.5rem; font-size: 2rem; }
.lb-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }


/* ═══════════════════════════════════════════════
   RSVP CHOICE BUTTONS
   ═══════════════════════════════════════════════ */
.rsvp-choice {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.rsvp-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2.5rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255,255,255,0.3);
  min-width: 180px;
}

.rsvp-choice-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.rsvp-choice-btn .choice-icon {
  font-size: 2rem;
}

.rsvp-going {
  background: var(--white);
  color: var(--charcoal);
}
.rsvp-going:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.rsvp-not-going {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.rsvp-not-going:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.not-going-note {
  text-align: center;
  font-family: 'Lemon Milk light', var(--font-display);
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.form-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.form-actions .btn-lg {
  flex: 1;
}

.btn-outline-light {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--gold-lighter);
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-outline-light:hover {
  background: var(--cream);
  border-color: var(--gold);
}


/* ═══════════════════════════════════════════════
   GUEST BOOK / WISHES
   ═══════════════════════════════════════════════ */
.wishes-wall {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  margin-top: 2.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.wish-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold-light);
  transition: transform 0.3s;
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
}

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

html[dir="rtl"] .wish-card {
  border-left: none;
  border-right: 4px solid var(--gold-light);
}

.wish-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--charcoal);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.wish-card-message {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

.wish-card-date {
  font-size: 0.75rem;
  color: var(--gold-light);
  margin-top: 0.5rem;
}


/* ═══════════════════════════════════════════════
   FORMS (shared RSVP & Wishes)
   ═══════════════════════════════════════════════ */
.form-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}

.form-card-on-gold {
  box-shadow: var(--shadow-lg);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--gold-lighter);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--form-input-bg);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(107, 124, 63, 0.15);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #D32F2F;
}

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

.guests-group .guest-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.guests-group .guest-row input {
  flex: 1;
}

.guests-group .remove-guest-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--burgundy);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  transition: background 0.3s;
}
.guests-group .remove-guest-btn:hover {
  background: var(--burgundy);
  color: var(--white);
}

.form-status {
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.success {
  background: var(--form-status-success-bg);
  color: var(--form-status-success-text);
}

.form-status.error {
  background: var(--form-status-error-bg);
  color: var(--form-status-error-text);
}


/* ═══════════════════════════════════════════════
   RSVP SECTION — GUEST COUNTER
   ═══════════════════════════════════════════════ */
.guest-counter {
  text-align: center;
  margin-bottom: 2.5rem;
}

.counter-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
  line-height: 1;
}

.counter-label {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 0.3rem;
}


/* ═══════════════════════════════════════════════
   BIBLE VERSE
   ═══════════════════════════════════════════════ */
.verse-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 0;
}

.verse-cross {
  font-size: 2.5rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.verse-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-style: italic;
  line-height: 1.8;
  color: var(--cream);
  margin-bottom: 1rem;
}

.verse-ref {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gold-light);
  font-style: normal;
}


/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
#footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-monogram {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: flex;
  justify-content: center;
  gap: 0.3rem;
}

.footer-amp {
  font-family: var(--font-script);
  color: var(--gold-light);
  font-size: 2.8rem;
  font-weight: 400;
}

.footer-date {
  font-size: 0.9rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.footer-share {
  margin-bottom: 1.5rem;
}

.footer-share-label {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  opacity: 0.7;
}

.footer-qr {
  margin-bottom: 1.5rem;
}

.footer-qr p {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

#qr-code {
  display: inline-block;
}
#qr-code canvas,
#qr-code img {
  border-radius: 6px;
}

.footer-tagline {
  font-size: 0.8rem;
  opacity: 0.5;
}


/* ═══════════════════════════════════════════════
   SCROLL ANIMATIONS (initial hidden states)
   ═══════════════════════════════════════════════ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}


/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --section-pad: 3.5rem 1rem;
  }

  .ceremony-layout {
    grid-template-columns: 1fr;
  }

  .ceremony-map { min-height: 250px; }

  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

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

  .form-card {
    padding: 1.8rem 1.2rem;
  }

  .wishes-wall {
    grid-template-columns: 1fr;
  }

  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
}

@media (max-width: 480px) {
  .envelope-wrapper {
    width: 300px;
    height: 205px;
  }

  .ambient-glow {
    width: 380px;
    height: 314px;
  }

  .envelope-seal {
    width: 56px;
    height: 56px;
  }

  .seal-text { font-size: 0.75rem; }

  .reveal-names { font-size: 2.2rem; }

  .countdown-unit { min-width: 60px; }

  .countdown-value {
    font-size: 2.2rem;
  }

  .gallery-masonry {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 130px;
  }
}

@media (max-width: 360px) {
  .couple-names-hero {
    font-size: 2.2rem;
  }

  .countdown-sep { display: none; }

  .countdown-boxes { gap: 0.5rem; }
}
