/* ═══════════════════════════════════════════════
   WEDDING INVITATION — Deep Plum & Rose Gold
   ═══════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --plum-deepest: #1a0a1e;
  --plum-deep: #2d1040;
  --plum-mid: #4a1a6b;
  --plum-light: #7b3fa0;
  --plum-accent: #9b5fc0;

  --rose-gold: #b8860b;
  --rose-gold-lt: #d4a855;
  --rose-gold-glow: #e8c87a;
  --rose-gold-pale: #f0ddb0;
  --champagne: #faf0dc;

  --text-primary: #faf0dc;
  --text-secondary: #d4a855;
  --text-muted: #b09070;

  --glass-bg: rgba(45, 16, 64, 0.55);
  --glass-border: rgba(212, 168, 85, 0.25);

  --shadow-plum: 0 8px 40px rgba(26, 10, 30, 0.7);
  --shadow-gold: 0 0 30px rgba(212, 168, 85, 0.25);

  --font-display: 'Cinzel Decorative', 'Cinzel', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-sans: 'Lato', sans-serif;

  --radius-card: 16px;
  --transition: 5s cubic-bezier(0.25, 0.1, 0.25, 1);

  /* ── Ganesh image size — change this one value to resize ── */
  --ganesh-size: 150px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--plum-deepest);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── PARTICLE CANVAS ── */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 95;
  transition: opacity 0.4s ease;
}

/* ── SCREENS ── */
.screen {
  position: relative;
  z-index: 1;
}

.screen:not(.active) {
  display: none;
}

#invitationScreen {
  display: none;
}

#invitationScreen.active {
  display: block;
}

/* ══════════════════════════════════════════
   ROYAL GATEFOLD LANDING SCREEN
══════════════════════════════════════════ */
#envelopeScreen.royal-gatefold {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 90;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
  background: #12041a;
  outline: none;
}

.gate-ambient-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  max-width: 90vw;
  max-height: 90vw;
  background: radial-gradient(circle, rgba(155, 95, 192, 0.22) 0%, rgba(212, 168, 85, 0.08) 45%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  animation: gateAmbientPulse 5s ease-in-out infinite;
}

@keyframes gateAmbientPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
    opacity: 1;
  }
}

/* ── GATE HALVES (Top & Bottom Doors) ── */
.gate-half {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.3%; /* Slight overlap to prevent subpixel seam gap */
  overflow: hidden;
  z-index: 2;
  box-sizing: border-box;
  will-change: transform;
}

.gate-top {
  top: 0;
  background: radial-gradient(ellipse at 50% 100%, #35124a 0%, #220a30 50%, #14041b 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 24px 58px;
  transform: translateY(0);
  transition: transform 1.25s cubic-bezier(0.77, 0, 0.175, 1);
}

.gate-bottom {
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, #35124a 0%, #220a30 50%, #14041b 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 58px 24px 0;
  transform: translateY(0);
  transition: transform 1.25s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Texture overlay for gatefold fabric/paper feel */
.gate-bg-texture {
  position: absolute;
  inset: 0;
  background-image: url('texture.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Golden edge trim along the opening seam */
.gate-seam-trim {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  pointer-events: none;
  z-index: 3;
}

.seam-trim-bottom {
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 168, 85, 0.2) 15%, #e8c87a 50%, rgba(212, 168, 85, 0.2) 85%, transparent 100%);
  box-shadow: 0 2px 10px rgba(212, 168, 85, 0.4);
}

.seam-trim-top {
  top: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 168, 85, 0.2) 15%, #e8c87a 50%, rgba(212, 168, 85, 0.2) 85%, transparent 100%);
  box-shadow: 0 -2px 10px rgba(212, 168, 85, 0.4);
}

/* ── GATE CONTENT & TYPOGRAPHY (Seamless, NO visible cards) ── */
.gate-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
}

.gate-shloka {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--rose-gold-lt);
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  text-shadow: 0 0 14px rgba(212, 168, 85, 0.35);
}

.gate-invitation-label {
  font-family: var(--font-heading);
  font-size: clamp(0.68rem, 1.4vw, 0.82rem);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  opacity: 0.95;
}

.gate-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.5rem, 6.5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--champagne);
  text-align: center;
  text-shadow:
    0 0 25px rgba(212, 168, 85, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.6);
}

.gate-names .gate-amp {
  font-family: 'Cinzel', serif;
  font-size: 0.65em;
  color: var(--rose-gold-lt);
  margin: 0 8px;
  vertical-align: middle;
}

/* Date row directly on the background without any card or border */
.gate-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.8vw, 1.15rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 6px;
  text-shadow: 0 0 14px rgba(212, 168, 85, 0.3);
}

.gate-dot {
  color: var(--rose-gold-lt);
  font-size: 0.65rem;
  opacity: 0.85;
}

.gate-venue-city {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--rose-gold-lt);
  letter-spacing: 0.1em;
  font-style: italic;
  margin-bottom: 24px;
  text-shadow: 0 0 12px rgba(212, 168, 85, 0.25);
}

/* Tap prompt without card/button box */
.gate-tap-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: clamp(0.7rem, 1.3vw, 0.8rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rose-gold-glow);
  opacity: 0.9;
  animation: tapPromptGlow 2.5s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.gate-tap-sparkle {
  color: var(--rose-gold-lt);
  font-size: 0.85rem;
  animation: sparkleTwinkle 2s ease-in-out infinite;
}

@keyframes tapPromptGlow {
  0%, 100% {
    opacity: 0.7;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(2px);
  }
}

@keyframes sparkleTwinkle {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* ── HORIZONTAL DIVIDE SEAM & WAX SEAL ── */
.gate-divide-seam {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.seam-filament {
  flex: 1;
  height: 1.5px;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}

.seam-filament.seam-left {
  background: linear-gradient(90deg, transparent 0%, rgba(212, 168, 85, 0.35) 30%, #e8c87a 80%, #fff1d4 100%);
  transform-origin: left center;
}

.seam-filament.seam-right {
  background: linear-gradient(270deg, transparent 0%, rgba(212, 168, 85, 0.35) 30%, #e8c87a 80%, #fff1d4 100%);
  transform-origin: right center;
}

/* Wax Seal Wrapper */
.wax-seal-wrapper {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 14px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.65s cubic-bezier(0.3, 0, 0.2, 1), opacity 0.5s ease;
}

/* Wax Seal */
.wax-seal {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #b32535 0%, #7d1522 55%, #42060f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.75),
    0 0 40px rgba(212, 168, 85, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.38),
    inset 0 -4px 8px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(245, 201, 176, 0.45);
  position: relative;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}

.wax-seal:hover {
  transform: scale(1.07);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.85),
    0 0 60px rgba(232, 200, 122, 0.6),
    inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

.seal-wax-ring {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Expanding ripple waves around wax seal */
.seal-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border: 1px solid rgba(212, 168, 85, 0.5);
  border-radius: 50%;
  pointer-events: none;
  animation: sealRippleOut 2.8s ease-out infinite;
}

.seal-ripple.delay-1 {
  animation-delay: 0.9s;
}

.seal-ripple.delay-2 {
  animation-delay: 1.8s;
}

@keyframes sealRippleOut {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}

/* ── OPENING ANIMATION STATE ── */
#envelopeScreen.opening .gate-top {
  transform: translateY(-100%);
}

#envelopeScreen.opening .gate-bottom {
  transform: translateY(100%);
}

#envelopeScreen.opening .seam-filament.seam-left {
  transform: scaleX(0);
  opacity: 0;
}

#envelopeScreen.opening .seam-filament.seam-right {
  transform: scaleX(0);
  opacity: 0;
}

#envelopeScreen.opening .wax-seal-wrapper {
  transform: scale(1.25);
  opacity: 0;
  pointer-events: none;
}

#envelopeScreen.opening .gate-tap-prompt {
  opacity: 0;
}

#envelopeScreen.fly-away {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* Responsive adjustments for mobile & small screens */
@media (max-width: 600px) {
  .gate-top {
    padding-bottom: 46px;
  }
  .gate-bottom {
    padding-top: 46px;
  }
  .wax-seal-wrapper,
  .wax-seal {
    width: 80px;
    height: 80px;
  }
  .seal-wax-ring {
    width: 72px;
    height: 72px;
  }
  .gate-names {
    font-size: 2.3rem;
  }
  .gate-date-row {
    font-size: 0.85rem;
    gap: 8px;
    letter-spacing: 0.15em;
  }
  .gate-venue-city {
    font-size: 0.98rem;
    margin-bottom: 16px;
  }
}

@media (max-height: 650px) {
  .gate-top {
    padding-bottom: 40px;
  }
  .gate-bottom {
    padding-top: 40px;
  }
  .gate-shloka {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }
  .gate-invitation-label {
    font-size: 0.65rem;
    margin-bottom: 6px;
  }
  .gate-names {
    font-size: 2.1rem;
  }
  .gate-venue-city {
    margin-bottom: 12px;
  }
}

/* ── CORNER ORNAMENTS ── */
.corner-ornament {
  position: absolute;
  animation: cornerPulse 3s ease-in-out infinite;
}

.top-left {
  top: 24px;
  left: 28px;
}

.top-right {
  top: 24px;
  right: 28px;
}

.bottom-left {
  bottom: 24px;
  left: 28px;
}

.bottom-right {
  bottom: 24px;
  right: 28px;
}

@keyframes cornerPulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.65;
  }
}

/* ── ORNAMENT IMAGE SIZING ── */
.ornament-img {
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* Corner ornaments: small ambient */
.corner-ornament .ornament-img {
  width: 32px;
  height: 32px;
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(212, 168, 85, 0.4));
}

/* Section divider ornament */
.section-ornament .ornament-img {
  width: 44px;
  height: 44px;
  margin: 0 auto 24px;
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(212, 168, 85, 0.5));
}

/* Family card icon */
.family-icon .ornament-img {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(212, 168, 85, 0.45));
}

/* RSVP success icon */
.success-icon .ornament-img {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(212, 168, 85, 0.6));
}

/* Footer divider */
.footer-ornament {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(212, 168, 85, 0.4));
}

/* ══════════════════════════════════════════
   INVITATION SCREEN
══════════════════════════════════════════ */

/* ── HERO ── */
.inv-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
}

.hero-mandala-bg {
  position: absolute;
  inset: 0;
  background-image: url('mandala.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(45, 16, 64, 0.4) 0%, rgba(26, 10, 30, 0.92) 80%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-ganesh {
  width: var(--ganesh-size);
  height: var(--ganesh-size);
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 18px rgba(212, 168, 85, 0.55));
}



.hero-sub {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose-gold-lt);
  opacity: 0.8;
  margin-bottom: 20px;
}

.hero-names {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 5rem);
  color: var(--champagne);
  line-height: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 10px 0 14px;
  letter-spacing: 0.04em;
}

.name-groom,
.name-bride {
  background: linear-gradient(135deg, var(--champagne) 0%, var(--rose-gold-glow) 50%, var(--champagne) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 20px rgba(212, 168, 85, 0.4));
  display: inline-block;
}

.hero-ampersand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--rose-gold-lt);
  -webkit-text-fill-color: initial;
  opacity: 0.85;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 16px;
  letter-spacing: 0.05em;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 28px auto;
  max-width: 400px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-gold-lt), transparent);
}

.divider-gem {
  color: var(--rose-gold-lt);
  font-size: 1rem;
}

.hero-date-block {
  display: inline-block;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 12px 36px;
  backdrop-filter: blur(12px);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--rose-gold-pale);
  text-transform: uppercase;
  box-shadow: var(--shadow-gold);
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0.55;
}

.scroll-hint span {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose-gold-lt);
}

.scroll-arrow {
  font-size: 1.2rem;
  color: var(--rose-gold-lt);
  animation: arrowFade 2s ease-in-out infinite;
}

@keyframes arrowFade {

  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

/* ── SECTIONS ── */
.inv-section {
  padding: 90px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--rose-gold-glow);
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rose-gold-lt), transparent);
  margin: 14px auto 0;
}

/* ── SACRED ── */
.sacred-section {
  text-align: center;
}

.section-ornament {
  font-size: 2rem;
  color: var(--rose-gold-lt);
  opacity: 0.5;
  margin-bottom: 24px;
}

.sacred-quote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--champagne);
  font-style: normal;
  margin-bottom: 28px;
  line-height: 1.3;
}

.family-blessing {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 2;
}

/* ── FAMILY ── */
.families-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.family-card {
  background: rgba(74, 26, 107, 0.08);
  border: none;
  border-radius: var(--radius-card);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  transition: box-shadow var(--transition);
  box-shadow:
    0 0 70px 25px rgba(45, 16, 64, 0.35),
    0 0 30px 8px rgba(74, 26, 107, 0.18),
    inset 0 0 40px rgba(74, 26, 107, 0.06);
}


.family-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.family-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--rose-gold-glow);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.family-head {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.parent-name {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--champagne);
  font-weight: 500;
}

.parent-amp {
  color: var(--rose-gold-lt);
  font-size: 1.1rem;
  margin: 4px 0;
}

.family-from {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 14px;
}

.family-divider-icon {
  font-size: 1.8rem;
  color: var(--rose-gold-lt);
  opacity: 0.5;
  text-align: center;
}

/* ── EVENTS TIMELINE ── */
.events-section {
  max-width: 720px;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline-event {
  display: flex;
  gap: 28px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-event.visible {
  opacity: 1;
  transform: translateX(0);
}

.event-connector {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  min-width: 24px;
  flex-shrink: 0;
}

.event-dot {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  border-radius: 50%;
  background: var(--rose-gold-lt);
  border: 2px solid var(--rose-gold-glow);
  box-shadow: 0 0 12px rgba(212, 168, 85, 0.5);
  flex-shrink: 0;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.event-dot.main-dot {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  background: var(--rose-gold-glow);
  border-color: var(--champagne);
  box-shadow: 0 0 24px rgba(232, 200, 122, 0.8);
  margin-top: 8px;
}

.event-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--rose-gold-lt) 0%, rgba(212, 168, 85, 0.2) 100%);
  min-height: 40px;
  margin-top: 6px;
  flex-shrink: 0;
}

.event-card {
  background: rgba(74, 26, 107, 0.07);
  border: none;
  border-radius: var(--radius-card);
  padding: 24px 28px;
  flex: 1;
  position: relative;
  transition: box-shadow var(--transition);
  box-shadow:
    0 0 60px 20px rgba(45, 16, 64, 0.3),
    0 0 25px 6px rgba(74, 26, 107, 0.15),
    inset 0 0 30px rgba(74, 26, 107, 0.05);
}


.main-event-card {
  background: rgba(74, 26, 107, 0.13);
  box-shadow:
    0 0 90px 30px rgba(45, 16, 64, 0.45),
    0 0 40px 12px rgba(74, 26, 107, 0.28),
    0 0 30px rgba(212, 168, 85, 0.15),
    inset 0 0 50px rgba(74, 26, 107, 0.08);
}

.event-badge {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose-gold-lt);
  margin-bottom: 8px;
  opacity: 0.8;
}

.main-badge {
  color: var(--rose-gold-glow);
  font-size: 0.75rem;
  opacity: 1;
}

.event-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--champagne);
  margin-bottom: 12px;
  line-height: 1.2;
}

.event-date,
.event-time,
.event-venue {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.event-note {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-gold-lt);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 168, 85, 0.15);
  opacity: 0.8;
}

/* ── COUNTDOWN ── */
.countdown-section {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(74, 26, 107, 0.2), transparent);
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.count-block {
  background: rgba(74, 26, 107, 0.08);
  border: none;
  border-radius: var(--radius-card);
  padding: 28px 32px;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: box-shadow var(--transition);
  box-shadow:
    0 0 35px 14px rgba(45, 16, 64, 0.45),
    0 0 18px 6px rgba(74, 26, 107, 0.25),
    inset 0 0 30px rgba(74, 26, 107, 0.05);
}


.count-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--rose-gold-glow);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 0 30px rgba(232, 200, 122, 0.5);
  line-height: 1;
}

.count-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.count-sep {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--rose-gold-lt);
  opacity: 0.5;
  align-self: flex-start;
  margin-top: 20px;
}

/* ── VENUE ── */
.venue-section {
  text-align: center;
}

.venue-card {
  background: rgba(74, 26, 107, 0.09);
  border: none;
  border-radius: 24px;
  padding: 50px 40px;
  display: inline-block;
  min-width: 320px;
  position: relative;
  transition: box-shadow var(--transition);
  box-shadow:
    0 0 90px 35px rgba(45, 16, 64, 0.4),
    0 0 40px 12px rgba(74, 26, 107, 0.2),
    inset 0 0 50px rgba(74, 26, 107, 0.06);
}


.venue-icon-wrap {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.venue-name {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--champagne);
  margin-bottom: 12px;
}

.venue-address {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.venue-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--rose-gold), #9b6a10);
  color: #1a0a1e;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(184, 134, 11, 0.4);
}

.venue-map-btn:hover {
  box-shadow: 0 4px 40px rgba(184, 134, 11, 0.7);
  background: linear-gradient(135deg, var(--rose-gold-glow), var(--rose-gold));
}

/* ── RSVP ── */
.rsvp-section {
  text-align: center;
  max-width: 600px;
}

.rsvp-note {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.rsvp-note strong {
  color: var(--rose-gold-lt);
}

.rsvp-form-wrap {
  position: relative;
}

.rsvp-form {
  background: rgba(74, 26, 107, 0.09);
  border: none;
  border-radius: 24px;
  padding: 48px 40px;
  position: relative;
  box-shadow:
    0 0 90px 35px rgba(45, 16, 64, 0.4),
    0 0 40px 12px rgba(74, 26, 107, 0.2),
    inset 0 0 50px rgba(74, 26, 107, 0.06);
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-gold-lt);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  background: rgba(26, 10, 30, 0.6);
  border: 1px solid rgba(212, 168, 85, 0.25);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(232, 200, 122, 0.6);
  box-shadow: 0 0 20px rgba(212, 168, 85, 0.15);
}

.form-group select option {
  background: var(--plum-deep);
  color: var(--text-primary);
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}

.checkbox-label:hover {
  color: var(--champagne);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  width: 18px;
  height: 18px;
  accent-color: var(--rose-gold-lt);
  cursor: pointer;
  border-radius: 4px;
}

.rsvp-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #7b3fa0, #4a1a6b);
  border: 1px solid rgba(212, 168, 85, 0.4);
  border-radius: 12px;
  color: var(--champagne);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(74, 26, 107, 0.5);
  margin-top: 8px;
}

.rsvp-btn:hover {
  background: linear-gradient(135deg, var(--rose-gold), #9b6a10);
  color: #1a0a1e;
  box-shadow: 0 4px 40px rgba(184, 134, 11, 0.65);
}

.rsvp-success {
  display: none;
  background: rgba(74, 26, 107, 0.1);
  border: none;
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  box-shadow:
    0 0 90px 35px rgba(45, 16, 64, 0.4),
    0 0 40px 12px rgba(74, 26, 107, 0.2),
    inset 0 0 50px rgba(74, 26, 107, 0.06);
}

.rsvp-success.show {
  display: block;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
}

.rsvp-success h3 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--champagne);
  margin-bottom: 12px;
}

.rsvp-success p {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 1.1rem;
  font-style: italic;
}

/* ── FOOTER ── */
.inv-footer {
  text-align: center;
  padding: 60px 24px 80px;
  border-top: 1px solid rgba(212, 168, 85, 0.15);
  background: linear-gradient(0deg, rgba(26, 10, 30, 0.8), transparent);
}

.footer-om {
  font-size: 3rem;
  color: var(--rose-gold-lt);
  opacity: 0.6;
  margin-bottom: 16px;
  display: block;
}

.footer-names {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--champagne);
  margin-bottom: 8px;
}

.footer-date {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--rose-gold-lt);
  margin-bottom: 20px;
}

.footer-divider {
  color: var(--rose-gold-lt);
  opacity: 0.4;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.footer-msg {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 2;
}

/* ── TEXTURE OVERLAY (fades in on scroll) ── */
#textureOverlay {
  position: fixed;
  inset: 0;
  /* Placeholder: swap 'texture.jpg' with your wall/fabric image */
  background-image: url('texture.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  /* Blend multiply lets the dark plum show through while adding texture grain */
  mix-blend-mode: overlay;
  transition: opacity 0.1s ease;
}

/* ── INVITATION SCREEN ENTRANCE ── */
#invitationScreen {
  animation: invScreenIn 0.8s ease-out;
}

@keyframes invScreenIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .envelope {
    width: 280px;
    height: 200px;
  }

  .families-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .family-divider-icon {
    transform: rotate(90deg);
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    gap: 6px;
  }

  .count-block {
    padding: 20px 18px;
    min-width: 80px;
  }

  .rsvp-form {
    padding: 32px 24px;
  }

  .inv-section {
    padding: 60px 16px;
  }

  .venue-card {
    min-width: unset;
    width: 100%;
  }

  .count-sep {
    font-size: 1.8rem;
    margin-top: 14px;
  }
}

@media (max-width: 480px) {
  .hero-names {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .envelope {
    width: 240px;
    height: 170px;
  }

  .wax-seal {
    width: 60px;
    height: 60px;
  }

  .seal-inner {
    width: 52px;
    height: 52px;
  }
}