:root {
  --bg: #0f0f10;
  --bg-soft: #161618;
  --card: #17171a;
  --text: #f5f6f7;
  --muted: #b7bac0;
  --brand: #eab308; /* amber */
  --brand-2: #ef4444; /* rose */
  --accent: #84cc16; /* lime */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}
html { scroll-behavior: smooth; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  background: linear-gradient(180deg, rgba(15,15,16,0.85), rgba(15,15,16,0.65) 60%, rgba(15,15,16,0));
  backdrop-filter: blur(8px);
}
.nav.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.scrollbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.scrollbar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .2s ease; }


.menu-toggle { display: none; position: relative; width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform .25s ease, opacity .2s; }
.menu-toggle span:nth-child(1) { top: 12px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav a { color: var(--text); text-decoration: none; }
.nav nav { display: flex; gap: 16px; align-items: center; }
.nav nav a { opacity: 0.9; }
.nav nav a.active { opacity: 1; color: var(--brand); position: relative; }
.nav nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 2px; }
.nav .brand {
  font-family: "Great Vibes", cursive;
  font-size: 28px;
  letter-spacing: 0.5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.08); box-shadow: var(--shadow); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: none; color: #111; font-weight: 700; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,0.2); }

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 24px 40px; /* extra top padding to offset fixed header */
  isolation: isolate; /* create stacking context for layered animation */
}
.hero-inner { max-width: 980px; position: relative; z-index: 2; margin: 0 auto; }

/* Confetti/petals canvas */
.fx-canvas { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.eyebrow { color: var(--muted); letter-spacing: 2px; text-transform: uppercase; font-size: 12px; }
.names {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(40px, 7vw, 84px);
  letter-spacing: 1px;
  margin: 8px 0 8px;
}
.names span:first-child { color: var(--brand); }
.names span:last-child { color: var(--brand-2); }
.names.clickable { cursor: pointer; transition: transform .18s ease, filter .18s ease; filter: drop-shadow(0 0 4px rgba(234,179,8,0.15)); }
.names.clickable:hover { transform: scale(1.01); filter: drop-shadow(0 0 14px rgba(234,179,8,0.28)); }
.date, .location { color: var(--muted); margin: 4px 0; }
.cta-row { display: flex; gap: 12px; justify-content: center; margin: 20px 0 28px; flex-wrap: wrap; }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(80px, 1fr)); gap: 10px; max-width: 560px; margin: 0 auto; }
.countdown div { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); padding: 14px 8px; border-radius: 16px; }
.countdown span { display: block; font-size: 28px; font-weight: 700; }
.countdown small { color: var(--muted); }

.section { padding: 80px 20px; position: relative; }
.section.alt { background: transparent; }
.container { max-width: 1040px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.section h2 { font-family: "Playfair Display", serif; font-size: clamp(28px, 4vw, 40px); margin-top: 0; }
.section h2::after { content: ""; display: block; width: 84px; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 999px; margin-top: 8px; opacity: 0.9; }

.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.timecard { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); padding: 18px; border-radius: 16px; }
.timecard .meta { color: var(--muted); margin-top: -6px; }

.form { display: grid; gap: 16px; }
.hidden { display: none; }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.form label { display: grid; gap: 8px; font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.form input::placeholder, .form textarea::placeholder { color: #9aa0a6; }
.actions { margin-top: 8px; }

.footer { padding: 32px 20px; text-align: center; color: var(--muted); }

/* Subtle animated petals */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;
  animation: floaty 10s linear infinite;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0));
          mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0));
}
.hero::after { animation-duration: 14s; opacity: 0.7; }
@keyframes floaty {
  from { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  to { transform: translateY(0); }
}

/* Organic animated gradient in hero */
.site-anim { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.site-anim::before, .site-anim::after { content: ""; position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%; filter: blur(100px); opacity: 0.25; }
.site-anim::before { background: radial-gradient(circle at center, var(--brand), transparent 60%); top: -20vmax; left: -18vmax; animation: siteBlob1 28s ease-in-out infinite; }
.site-anim::after { background: radial-gradient(circle at center, var(--brand-2), transparent 60%); bottom: -22vmax; right: -20vmax; animation: siteBlob2 32s ease-in-out infinite; }
@keyframes siteBlob1 { 0%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(20vmax, 12vmax) scale(1.1);} 100%{ transform: translate(0,0) scale(1);} }
@keyframes siteBlob2 { 0%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-18vmax, -12vmax) scale(0.95);} 100%{ transform: translate(0,0) scale(1);} }
@keyframes blob1 { 0%{ transform: translate(0,0) scale(1) rotate(0deg);} 50%{ transform: translate(14vmax, 8vmax) scale(1.2) rotate(15deg);} 100%{ transform: translate(0,0) scale(1) rotate(0deg);} }
@keyframes blob2 { 0%{ transform: translate(0,0) scale(1) rotate(0deg);} 50%{ transform: translate(-12vmax, -8vmax) scale(0.9) rotate(-12deg);} 100%{ transform: translate(0,0) scale(1) rotate(0deg);} }

/* Accessibility and UX improvements */
section { scroll-margin-top: 90px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Map embed */
.map-embed {
  position: relative;
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
}
.map-embed iframe {
  width: 100%;
  height: min(60vh, 420px);
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

/* Responsive video embed */
.video-embed {
  position: relative;
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.03);
  width: 100%;
  max-width: 420px; /* keep portrait video comfortable on desktop */
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 9 / 16;
}
.video-embed::before {
  content: "";
  display: block;
  padding-top: 177.78%; /* 9:16 fallback for older browsers */
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
  .btn { transition: none; }
  .hero-anim::before, .hero-anim::after { animation: none; }
}

/* Mobile nav */
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .nav nav { position: fixed; right: 16px; top: 64px; display: grid; gap: 10px; background: rgba(15,15,16,0.96); padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); transform-origin: top right; transform: scale(0.98); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  .nav.open nav { opacity: 1; pointer-events: auto; transform: none; }
}

.nav-overlay.hidden { display: none; }
.nav-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,0.35); }

/* Floating WhatsApp chat button */
.floating-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  z-index: 60;
}
.floating-chat:hover { transform: translateY(-1px); }
.floating-chat svg { width: 28px; height: 28px; fill: #fff; }

/* Chat widget chips */
.chat-widget { position: fixed; right: 20px; bottom: 86px; z-index: 60; display: grid; gap: 8px; justify-items: end; }
.chat-chips { display: flex; gap: 8px; align-items: center; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.chat-widget.open .chat-chips { opacity: 1; transform: none; pointer-events: auto; }
.chat-chip { font-weight: 600; text-decoration: none; color: var(--text); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); padding: 8px 12px; border-radius: 999px; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; backdrop-filter: blur(8px); }
.chat-chip:hover { transform: translateY(-1px); background: rgba(255,255,255,0.12); box-shadow: var(--shadow); }
.chat-chip.anant { border-color: rgba(234,179,8,0.5); }
.chat-chip.nitish { border-color: rgba(239,68,68,0.5); }
.chat-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Modal */
.modal.hidden { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center;
  background: rgba(0,0,0,0.5);
}
.modal-card {
  width: min(92vw, 420px);
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  border-radius: 16px; padding: 20px;
}
.modal-title { margin: 0 0 8px; font-family: "Playfair Display", serif; }
.modal-desc { margin: 0 0 12px; color: var(--muted); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal-close {
  position: absolute; right: 12px; top: 8px; font-size: 24px; background: transparent; color: var(--text);
  border: none; cursor: pointer;
}

/* Photo Wall */
.photo-wall .muted { color: var(--muted); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-top: 12px;
}
.photo-placeholder {
  height: 140px; border-radius: 12px; border: 1px dashed rgba(255,255,255,0.25);
  background:
    radial-gradient(500px 300px at 20% 20%, rgba(234,179,8,0.10), transparent 60%),
    rgba(255,255,255,0.03);
}

/* Weather card */
.weather-card {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(234,179,8,0.08), rgba(239,68,68,0.06));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 16px; box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.weather-header { display: flex; gap: 12px; align-items: center; }
.weather-emoji { font-size: 28px; }
.weather-temp { font-size: 28px; font-weight: 700; }
.weather-cond { color: var(--muted); }
.weather-meta { display: flex; gap: 12px; margin-top: 8px; color: var(--muted); flex-wrap: wrap; }

.unit-toggle {
  margin-left: auto;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}
.unit-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Reveal on scroll */
body.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
body.js .reveal.in-view { opacity: 1; transform: none; }

/* Shimmer for placeholders */
.photo-placeholder { position: relative; overflow: hidden; }
.photo-placeholder::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.12) 40%, transparent 80%);
  transform: translateX(-100%);
  animation: shimmer 2.2s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* Game */
.game-card { margin-top: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.game-hud { display: flex; justify-content: space-between; padding: 10px 12px; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,0.1); }
.game-controls { display: flex; gap: 10px; justify-content: center; padding: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
.game-card canvas { width: 100%; display: block; background: radial-gradient(800px 400px at 50% 20%, rgba(234,179,8,0.08), transparent 60%), rgba(255,255,255,0.02); }
/* Prevent page scroll while playing on touch devices */
#game-canvas { touch-action: none; }

