/* ═══════════════════════════════════════════════════════════
   AKANKSHA & KUNAL — WEDDING WEBSITE
   Theme: Crimson Curtain · Cinematic Journey
   ═══════════════════════════════════════════════════════════ */

:root {
  --crimson-deep:  #4A0014;
  --crimson:       #6A0018;
  --crimson-mid:   #8A0020;
  --crimson-bright:#B20028;
  --curtain-dark:  #2E0008;
  --curtain-mid:   #520010;
  --curtain-light: #780018;

  --gold:      #C9A96E;
  --gold-dk:   #A67C52;
  --gold-lt:   #E8D5B7;
  --gold-pale: #F5EBD8;

  --text-bright: #FFFFFF;
  --text-main:   rgba(255, 235, 200, 0.92);
  --text-soft:   rgba(255, 215, 165, 0.72);
  --text-dim:    rgba(255, 195, 135, 0.50);

  --f-script:  'Parisienne', cursive;
  --f-serif:   'Cormorant Garamond', Georgia, serif;
  --f-display: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --f-body:    'Raleway', system-ui, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--f-body);
  background: var(--crimson-deep);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── 3D STAGE — the camera lens ─────────────────────────── */
#stage {
  position: fixed;
  inset: 0;
  perspective: 700px;
  perspective-origin: 50% 48%;
  overflow: hidden;
}

/* ── THREE.JS CORRIDOR CANVAS — sits behind everything ────── */
#hallCanvas {
  position: fixed;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  pointer-events: none;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ── NAVBAR ────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  background: rgba(42, 0, 12, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#navbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dk) 0%, var(--gold) 25%, var(--curtain-light) 50%, var(--gold) 75%, var(--gold-dk) 100%);
  opacity: 0.85;
}

#navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,169,110,0.35) 30%, rgba(201,169,110,0.55) 50%, rgba(201,169,110,0.35) 70%, transparent 100%);
}

#navbar.scrolled {
  padding: 10px 48px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.5);
}

.nav-logo {
  font-family: var(--f-script);
  font-size: 2.1rem;
  letter-spacing: 3px;
  user-select: none;
  background: linear-gradient(130deg, var(--gold-dk) 0%, var(--gold) 35%, var(--gold-lt) 55%, var(--gold) 80%, var(--gold-dk) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nameShimmer 7s linear infinite;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--curtain-light), var(--gold));
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--gold-lt); }
.nav-links a:hover::after { width: 100%; }

.nav-links li + li { position: relative; }
.nav-links li + li::before {
  content: '';
  position: absolute;
  left: -1rem; top: 15%; height: 70%; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.28;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--gold-lt);
  cursor: pointer;
}

/* ── HERO / CURTAIN PANEL ──────────────────────────────────── */
.panel-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--crimson-deep) 0%, var(--crimson) 40%, var(--crimson-mid) 65%, var(--crimson) 85%, var(--crimson-deep) 100%);
}

#petalCanvas {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ── CURTAINS ──────────────────────────────────────────────── */
/*
  Theatrical stage curtains — each 30vw wide, prominent red fabric.
  Closed: cover the full viewport.
  Open:   pulled back to each side showing the tied/swag shape.
*/

.curtain {
  position: absolute;
  top: 0;
  width: 30vw;
  height: 100%;
  z-index: 10;
  transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
  overflow: hidden;
}

.curtain-left  { left: 0;  transform-origin: left top; }
.curtain-right { right: 0; transform-origin: right top; }

/* ── FABRIC MATERIAL — layered gradients for folds ── */
.curtain-left {
  background:
    /* Vertical fold highlights */
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.22) 0px, transparent 4px,
      rgba(255,160,100,0.07) 10px, transparent 16px,
      rgba(0,0,0,0.18) 22px, transparent 28px,
      rgba(255,120,80,0.05) 34px, transparent 40px,
      rgba(0,0,0,0.20) 46px, transparent 52px
    ),
    /* Main colour sweep */
    linear-gradient(180deg,
      #200008 0%,
      #40000D 10%,
      #620012 25%,
      #820018 42%,
      #6A0014 58%,
      #4E000F 74%,
      #32000A 88%,
      #200008 100%
    );
  /* Swag silhouette — wide at top, pinched at tie, flowing out at bottom */
  clip-path: polygon(
    0%   0%,
    100% 0%,
    84%  12%,
    90%  30%,   /* toward tie point */
    82%  38%,   /* tie pinch */
    88%  55%,
    80%  72%,
    90%  100%,
    0%   100%
  );
}

.curtain-right {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.22) 0px, transparent 4px,
      rgba(255,160,100,0.07) 10px, transparent 16px,
      rgba(0,0,0,0.18) 22px, transparent 28px,
      rgba(255,120,80,0.05) 34px, transparent 40px,
      rgba(0,0,0,0.20) 46px, transparent 52px
    ),
    linear-gradient(180deg,
      #200008 0%,
      #40000D 10%,
      #620012 25%,
      #820018 42%,
      #6A0014 58%,
      #4E000F 74%,
      #32000A 88%,
      #200008 100%
    );
  clip-path: polygon(
    0%   0%,
    100% 0%,
    100% 100%,
    10%  100%,
    20%  72%,
    12%  55%,
    18%  38%,   /* tie pinch */
    10%  30%,
    16%  12%
  );
}

/* Gold shimmer sheen on inner fold edge */
.curtain-left::after,
.curtain-right::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(201,169,110,0.35) 20%,
    rgba(232,213,183,0.55) 38%,
    rgba(201,169,110,0.30) 50%,
    rgba(232,213,183,0.45) 65%,
    rgba(201,169,110,0.20) 80%,
    transparent 100%
  );
}
.curtain-left::after  { right: 0; }
.curtain-right::after { left: 0; }

/* Decorative top valance (scalloped header) */
.curtain-valance {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 70px;
  background: linear-gradient(180deg, #8A0018 0%, #C20026 50%, #9A001E 100%);
  border-bottom: 2px solid rgba(201,169,110,0.5);
  /* Scalloped bottom edge */
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 60%,
    92% 100%, 84% 60%, 76% 100%, 68% 60%,
    60% 100%, 52% 60%, 44% 100%, 36% 60%,
    28% 100%, 20% 60%, 12% 100%, 8% 60%,
    0% 100%
  );
  z-index: 2;
}

/* Hanging fringe / latkan strings below valance */
.curtain-fringe {
  position: absolute;
  top: 58px;       /* sits just under the valance */
  left: 0; right: 0;
  height: 90px;
  z-index: 3;
  pointer-events: none;

  /* Two alternating string lengths:
     long (80px) at x=10-14 within each 44px tile,
     short (55px) at x=32-36 within each 44px tile.
     Radial gradients add a bead at the tip of each string. */
  background:
    radial-gradient(circle 5px at 12px 78px, #C9A96E 100%, transparent 100%),
    radial-gradient(circle 4px at 34px 56px, #A67C52 100%, transparent 100%),
    linear-gradient(to bottom,
      rgba(201,169,110,0.90) 0%,
      rgba(201,169,110,0.60) 70%,
      rgba(201,169,110,0.20) 100%
    );
  background-size: 44px 90px;
  background-repeat: repeat-x;

  /* Mask: show only thin vertical strips — one per string */
  -webkit-mask-image: repeating-linear-gradient(
    90deg,
    transparent  0px, transparent  9px,
    black        9px, black        15px,
    transparent 15px, transparent 31px,
    black       31px, black        37px,
    transparent 37px, transparent 44px
  );
  mask-image: repeating-linear-gradient(
    90deg,
    transparent  0px, transparent  9px,
    black        9px, black        15px,
    transparent 15px, transparent 31px,
    black       31px, black        37px,
    transparent 37px, transparent 44px
  );
}

/* Tie knot — gold rope around the curtain */
.curtain-tie-wrap {
  position: absolute;
  top: 36%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.curtain-left  .curtain-tie-wrap { right: 4%; }
.curtain-right .curtain-tie-wrap { left: 4%; }

.curtain-tie-knot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%,
    #F5EBD8 0%, #E8D5B7 30%, #C9A96E 60%, #A67C52 100%
  );
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 12px rgba(201,169,110,0.4);
}

/* Hanging tassel */
.curtain-tassel {
  width: 3px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold) 0%, var(--gold-dk) 40%, transparent 100%);
  margin-top: 2px;
  position: relative;
}
.curtain-tassel::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 16px;
  background: radial-gradient(ellipse at top, var(--gold-dk) 0%, transparent 80%);
  border-radius: 0 0 50% 50%;
}

/* ── CLOSED STATE (before JS opens them) ── */
/* Default: curtains cover full screen — each 52% wide */
.curtain-left  { transform: scaleX(1.73); transform-origin: left center; }
.curtain-right { transform: scaleX(1.73); transform-origin: right center; }

/* Open/parted state — tied back showing swag */
body.curtains-open .curtain-left  { transform: scaleX(1); }
body.curtains-open .curtain-right { transform: scaleX(1); }

/* ── HERO CONTENT ──────────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 110px 24px 70px;
  max-width: 680px;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.hero-content.revealed {
  opacity: 1;
  transform: none;
}

.ganesha-motif { margin-bottom: 1.4rem; }

.ganesha-svg {
  display: block;
  width: clamp(110px, 18vw, 150px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 28px rgba(201,169,110,0.35));
  animation: floatY 4s ease-in-out infinite;
}

.ganesha-text {
  font-family: var(--f-serif);
  font-size: 0.85rem;
  color: rgba(255,220,160,0.75);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-top: 6px;
}

.ornament-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0.8rem 0;
  color: var(--gold-lt);
}

.orn-leaf  { font-size: 1.3rem; }
.orn-star  { font-size: 0.9rem; }
.orn-leaf.flip { transform: scaleX(-1); display: inline-block; }

.bride-name, .groom-name {
  font-family: var(--f-script);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 400;
  line-height: 1.05;
  background: linear-gradient(130deg, #C9A96E 0%, #EDE0C8 22%, #FFFFFF 38%, #EDE0C8 50%, #FFFFFF 62%, #EDE0C8 78%, #C9A96E 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;           /* ensures gradient text on all mobile browsers */
  will-change: background-position; /* smoother shimmer on mobile */
  animation: nameShimmer 6s linear infinite;
}

.name-initial { font-size: 1.15em; }

.amp-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0.3rem 0;
}

.amp-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.amp-wrap .amp-line:last-child {
  background: linear-gradient(to left, transparent, var(--gold));
}

.amp {
  font-family: var(--f-serif);
  font-size: 1.8rem;
  color: var(--gold);
  font-style: italic;
}

.hero-invite {
  font-family: var(--f-serif);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,235,200,0.80);
  line-height: 1.8;
  margin: 1.2rem 0 1rem;
  letter-spacing: 0.5px;
}

.hero-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0.8rem 0 0.4rem;
}

.hd-line {
  width: 60px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.hero-date {
  font-family: var(--f-display);
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  letter-spacing: 3px;
  color: var(--gold-lt);
}

.hero-location {
  font-family: var(--f-serif);
  font-size: 1rem;
  letter-spacing: 3px;
  color: rgba(255,215,165,0.70);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.scroll-down {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-family: var(--f-serif);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.25s;
  animation: floatY 2.5s ease-in-out infinite;
}

.scroll-down:hover { opacity: 1; }
.sd-arrow { font-size: 1.2rem; }

/* ── CONTENT PANELS — fixed overlays that fade over corridor ─ */
/*
  The Three.js corridor handles ALL depth/3D.
  These panels are just readable overlays that fade in
  when the camera arrives at each section.
*/
.panel {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overflow-y: auto;
  padding: 100px 5% 80px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background: transparent;
}

/* Hero is special — shows curtains, semi-transparent bg */
.panel-hero {
  background: transparent;
}

/* Content panels get a subtle dark overlay so text is readable
   while the corridor is dimly visible behind */
.panel:not(.panel-hero) {
  background: rgba(15, 0, 4, 0.55);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.panel.p-active {
  opacity: 1;
  pointer-events: all;
}


/* Subtle radial glow center */
.panel-bg-deco {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(201,169,110,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(178,0,40,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(178,0,40,0.10) 0%, transparent 55%);
  pointer-events: none;
}

/* Gold hairline at top of each panel */
.panel:not(.panel-hero)::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,169,110,0.30) 30%, rgba(201,169,110,0.55) 50%, rgba(201,169,110,0.30) 70%, transparent 100%);
  pointer-events: none;
}

/* Panel inner layout — two columns */
.panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1180px;
  width: 100%;
  align-items: center;
}

/* Reversed column order (art left, content right → flip to content left, art right) */
.panel-inner-reverse { direction: rtl; }
.panel-inner-reverse > * { direction: ltr; }

/* Single column (full-width content) */
.panel-inner-single {
  grid-template-columns: 1fr;
}

/* ── PANEL CONTENT ─────────────────────────────────────────── */
.panel-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.panel-content-wide  { max-width: 900px; margin: 0 auto; width: 100%; }
.panel-content-center { max-width: 720px; margin: 0 auto; width: 100%; text-align: center; }

.section-tag {
  font-family: var(--f-display);
  font-size: 0.78rem;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(201,169,110,0.35);
}

.section-title {
  font-family: var(--f-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 500;
  color: var(--text-bright);
  line-height: 1.15;
  letter-spacing: 1px;
}

.section-title em {
  font-family: var(--f-script);
  font-size: 1.6em;
  font-style: normal;
  font-weight: 400;
  display: block;
  line-height: 1;
  background: linear-gradient(130deg, var(--gold-dk) 0%, var(--gold) 40%, var(--gold-lt) 60%, var(--gold) 80%, var(--gold-dk) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nameShimmer 8s linear infinite;
}

.section-sub {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ── EVENT DETAIL LIST ─────────────────────────────────────── */
.event-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0.5rem 0;
}

.edl-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-family: var(--f-serif);
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.6;
}

.edl-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.edl-item strong { color: var(--text-bright); }

.panel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.4rem;
  padding: 12px 30px;
  border: 1.5px solid rgba(201,169,110,0.45);
  border-radius: 3px;
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-lt);
  background: rgba(201,169,110,0.08);
  transition: background 0.28s, border-color 0.28s, color 0.28s, transform 0.28s;
  align-self: flex-start;
}

.panel-btn:hover {
  background: rgba(201,169,110,0.18);
  border-color: var(--gold);
  color: var(--text-bright);
  transform: translateX(4px);
}

.panel-btn-gold {
  border-color: var(--gold);
  background: rgba(201,169,110,0.14);
}

/* ── PANEL ART (SVG illustrations) ─────────────────────────── */
.panel-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-scene {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(201,169,110,0.12));
  animation: floatY 5s ease-in-out infinite;
}

/* ── COUNTDOWN ─────────────────────────────────────────────── */
.countdown-grid {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(201,169,110,0.08);
  border: 1px solid rgba(201,169,110,0.22);
  border-radius: 8px;
  padding: 18px 24px 14px;
  min-width: 80px;
}

.cd-num {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--gold-lt);
  line-height: 1;
  letter-spacing: 2px;
}

.cd-lbl {
  font-family: var(--f-body);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
}

.cd-sep {
  font-family: var(--f-display);
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.6;
  line-height: 1;
  padding-bottom: 18px;
}

/* Countdown decorative ornament */
.panel-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.deco-svg {
  width: 100%;
  max-width: 160px;
}

/* ── VENUE ─────────────────────────────────────────────────── */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.venue-card {
  background: rgba(201,169,110,0.06);
  border: 1px solid rgba(201,169,110,0.20);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.venue-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.venue-header {
  padding: 20px 24px 16px;
}

.venue-day {
  font-family: var(--f-display);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.venue-name {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-bright);
  margin: 5px 0 4px;
}

.venue-addr {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.map-box {
  border-top: 1px solid rgba(201,169,110,0.15);
  overflow: hidden;
}

.map-box iframe { display: block; }

/* ── GALLERY SOON ──────────────────────────────────────────── */
.gallery-soon {
  max-width: 500px;
  margin: 0 auto;
  background: rgba(201,169,110,0.07);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 6px 50px 6px 50px;
  padding: 56px 44px 48px;
  text-align: center;
}

.gs-bloom {
  font-size: 3.8rem;
  display: block;
  margin-bottom: 1rem;
  animation: floatY 4s ease-in-out infinite;
}

.gs-title {
  font-family: var(--f-script);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  background: linear-gradient(130deg, var(--gold-dk) 0%, var(--gold) 40%, var(--gold-lt) 60%, var(--gold-dk) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
}

.gs-text {
  font-family: var(--f-serif);
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 1.4rem;
}

.gs-ornament {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 10px;
  opacity: 0.6;
}

/* ── RSVP FORM ─────────────────────────────────────────────── */
.rsvp-form {
  max-width: 680px;
  margin: 1rem auto 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,110,0.22);
  border-radius: 16px;
  padding: 44px 44px 36px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.req { color: var(--curtain-light); }

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(0,0,0,0.25);
  border: 1.5px solid rgba(201,169,110,0.22);
  border-radius: 6px;
  padding: 11px 14px;
  font-family: var(--f-body);
  font-size: 0.9rem;
  color: var(--text-main);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.14);
}

.form-group select option { background: var(--crimson); color: var(--text-main); }

.form-group textarea { resize: vertical; min-height: 88px; }
.form-group { margin-bottom: 1rem; }

.check-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.check-lbl, .radio-lbl {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-main);
}

.check-lbl input, .radio-lbl input { display: none; }

.check-box, .radio-box {
  width: 18px; height: 18px;
  border: 1.5px solid rgba(201,169,110,0.40);
  border-radius: 3px;
  background: rgba(0,0,0,0.2);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.radio-box { border-radius: 50%; }

.check-lbl input:checked + .check-box,
.radio-lbl input:checked + .radio-box {
  background: rgba(201,169,110,0.3);
  border-color: var(--gold);
}

.check-lbl input:checked + .check-box::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--gold-lt);
}

.radio-lbl input:checked + .radio-box::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--gold);
  border-radius: 50%;
}

.attending-row {
  margin: 0.4rem 0 1.2rem;
}

.att-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.radio-group { flex-direction: row; flex-wrap: wrap; gap: 1.2rem; }

.rsvp-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--curtain-mid) 0%, var(--curtain-light) 60%, var(--curtain-mid) 100%);
  background-size: 200% auto;
  border: none;
  border-radius: 6px;
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-lt);
  cursor: pointer;
  transition: background-position 0.4s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.rsvp-btn:hover:not(:disabled) {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

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

.rsvp-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.success-bloom { font-size: 3rem; display: block; margin-bottom: 1rem; }

.rsvp-success h3 {
  font-family: var(--f-script);
  font-size: 2.8rem;
  color: var(--gold-lt);
  margin-bottom: 0.6rem;
}

.rsvp-success p { color: var(--text-soft); line-height: 1.75; }
.success-tag { color: var(--gold); margin-top: 1rem; letter-spacing: 2px; font-size: 0.9rem; }

/* ── FOOTER — hidden in 3D experience ─────────────────────── */
.footer { display: none; }
.footer {
  background: linear-gradient(to bottom, var(--crimson-deep), #1A0005);
  border-top: 1px solid rgba(201,169,110,0.18);
  text-align: center;
  padding: 56px 24px 48px;
}

.footer-om {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gold);
  opacity: 0.7;
}

.footer-names {
  font-family: var(--f-script);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  background: linear-gradient(130deg, var(--gold-dk), var(--gold), var(--gold-lt), var(--gold), var(--gold-dk));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nameShimmer 7s linear infinite;
  margin-bottom: 0.5rem;
}

.footer-date, .footer-orn, .footer-hashtag, .footer-copy {
  color: var(--text-soft);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  margin-bottom: 0.4rem;
}

.footer-orn { color: var(--gold); opacity: 0.6; font-size: 1rem; margin: 0.6rem 0; }
.footer-hashtag { color: var(--gold); opacity: 0.7; }
.footer-copy { opacity: 0.4; font-size: 0.8rem; margin-top: 1.2rem; }

/* ── DOT INDICATORS ─────────────────────────────────────────── */
#navDots {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  display: flex;
  gap: 10px;
  align-items: center;
}

.pnav-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(201,169,110,0.35);
  border: 1px solid rgba(201,169,110,0.40);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.pnav-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.4);
}

/* ── MAPS POPUP ─────────────────────────────────────────────── */
#mapsPopup {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 0, 3, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.maps-card {
  background: linear-gradient(145deg, #3A000F, #280008);
  border: 1px solid rgba(201,169,110,0.45);
  border-radius: 16px;
  padding: 32px 36px 28px;
  text-align: center;
  min-width: 280px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.maps-title {
  font-family: var(--f-display);
  font-size: 0.78rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.maps-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.maps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 8px;
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  background: rgba(201,169,110,0.14);
  border: 1px solid rgba(201,169,110,0.4);
  color: var(--gold-lt);
}

.maps-btn:hover { background: rgba(201,169,110,0.25); transform: translateY(-1px); }
.maps-btn-apple { background: rgba(50,50,60,0.3); border-color: rgba(180,180,200,0.3); color: #DDD; }
.maps-btn-apple:hover { background: rgba(70,70,90,0.4); }

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

.maps-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 4px 12px;
  transition: color 0.2s;
}
.maps-close:hover { color: var(--text-soft); }

/* ── DIRECTIONS OVERLAY ────────────────────────────────────── */
#directionsOverlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 80px;
  pointer-events: none;
}

.dir-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: all;
}

.dir-title {
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dir-btn {
  display: block;
  padding: 12px 24px;
  background: rgba(201,169,110,0.12);
  border: 1px solid rgba(201,169,110,0.40);
  border-radius: 4px;
  color: var(--gold-lt);
  font-family: var(--f-serif);
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
  transition: background 0.25s, border-color 0.25s;
  min-width: 280px;
}

.dir-btn:hover {
  background: rgba(201,169,110,0.22);
  border-color: var(--gold);
}

.dir-btn small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 2px;
}

/* ── NAVIGATION CONTROL ─────────────────────────────────────── */
#navControl {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1.5px solid rgba(201,169,110,0.40);
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
  user-select: none;
  animation: floatY 2.5s ease-in-out infinite;
}

.nav-half {
  width: 42px;
  padding: 8px 0;
  text-align: center;
  font-size: 1.1rem;
  color: var(--gold);
  cursor: pointer;
  pointer-events: all;
  transition: background 0.2s, color 0.2s, opacity 0.3s;
}

.nav-half:hover { background: rgba(201,169,110,0.15); color: var(--gold-lt); }
.nav-half.hidden { opacity: 0.18; pointer-events: none; }

.nav-divider {
  width: 70%;
  height: 1px;
  background: rgba(201,169,110,0.35);
}

/* ── KEYFRAMES ─────────────────────────────────────────────── */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes nameShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-6px); }
  80%      { transform: translateX(6px); }
}

/* ── MOBILE ────────────────────────────────────────────────── */
/* ── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* iOS Safari 100vh fix */
  body { height: 100svh; }

  /* Curtains slide mostly off-screen when open on mobile */
  .curtain { width: 30vw; }
  body.curtains-open .curtain-left  { transform: scaleX(1) translateX(-78%); }
  body.curtains-open .curtain-right { transform: scaleX(1) translateX(78%); }

  /* Hero names */
  .bride-name, .groom-name { font-size: clamp(2.6rem, 13vw, 5rem); }
  .hero-invite { font-size: 0.9rem; }
  .hero-content { padding: 80px 20px 50px; }

  /* Maps popup full-width, bigger touch targets */
  .maps-card { width: 88vw; padding: 24px 20px 20px; }
  .maps-btn  { padding: 16px 20px; font-size: 1rem; }

  /* Remove unused old panel styles that no longer exist */
  #navbar { padding: 14px 20px; }
  #navbar.scrolled { padding: 10px 20px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(42,0,12,0.97);
    padding: 16px 0;
  }

  .nav-links.open { display: flex; }
  .nav-links li + li::before { display: none; }
  .nav-links a { padding: 12px 24px; display: block; font-size: 0.82rem; }
  .nav-toggle { display: block; }

  .panel { padding: 90px 5% 60px; min-height: auto; }
  .rsvp-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-soon { padding: 40px 24px 36px; }

}

@media (max-width: 480px) {
  .curtain { width: 30vw; }
  body.curtains-open .curtain-left  { transform: scaleX(1) translateX(-85%); }
  body.curtains-open .curtain-right { transform: scaleX(1) translateX(85%); }
  .bride-name, .groom-name { font-size: clamp(2.2rem, 15vw, 4rem); }
  .ganesha-svg { width: clamp(80px, 20vw, 120px); }
  .hero-invite { font-size: 0.82rem; }
  .amp { font-size: 1.3rem; }
}
