:root {
  --gold: #C9A84C;
  --deep-maroon: #5C1A1A;
  --ivory: #FAF5EF;
  --blush: #F2C4CE;
  --champagne: #F0DEB4;
  --midnight: #1A0A0A;
  --white: #FFFFFF;

  --font-script: "Great Vibes", cursive;
  --font-heading: "Cormorant Garamond", serif;
  --font-body: "EB Garamond", serif;
  --font-devanagari: "Noto Sans Devanagari", sans-serif;

  /* Layout sizing */
  --event-media-width: 520px;
  --event-media-ratio: 3 / 4; /* portrait like your art */
  --event-card-width: 520px;
  --event-card-min-height: 320px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--ivory);
  color: var(--midnight);
  overflow-x: hidden;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

/* Luxury ambient glow */
section::after {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(201,168,76,0.14), transparent 60%),
    radial-gradient(700px 360px at 80% 30%, rgba(242,196,206,0.12), transparent 60%),
    radial-gradient(500px 320px at 50% 80%, rgba(240,222,180,0.10), transparent 60%);
  opacity: 0.9;
  z-index: 0;
}
.container { z-index: 2; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--midnight);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--champagne);
}

.hidden {
  display: none !important;
}

a {
  text-decoration: none;
}

/* Typography Helpers */
.section-title {
  font-family: var(--font-script);
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 0.5rem;
  text-align: center;
}
.large-title {
  font-size: clamp(4rem, 8vw, 6.5rem);
}
.title-maroon { color: var(--deep-maroon); }
.title-gold { color: var(--gold); }
.gradient-text {
  background: linear-gradient(90deg, #C9A84C, #FFF3C4, #C9A84C);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 3s linear infinite;
}
.caps-small {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gold);
}

/* Buttons */
.btn-primary {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--ivory);
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.35) 35%, transparent 50%);
  transform: translateX(-120%);
  transition: transform 0.8s ease;
}
.btn-primary:hover::before {
  transform: translateX(120%);
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--deep-maroon);
}

/* Floating Music Button */
.music-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--champagne);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 9000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.music-toggle:hover {
  transform: scale(1.1);
}
.music-bars {
  display: flex;
  gap: 4px;
  height: 20px;
  align-items: flex-end;
}
.bar {
  width: 4px;
  background: var(--deep-maroon);
  border-radius: 2px;
  transition: height 0.2s ease;
}
.music-toggle.playing .bar:nth-child(1) { animation: soundWave 1s infinite alternate; }
.music-toggle.playing .bar:nth-child(2) { animation: soundWave 1.2s infinite alternate -0.3s; }
.music-toggle.playing .bar:nth-child(3) { animation: soundWave 0.8s infinite alternate -0.5s; }
.music-toggle:not(.playing) .bar { height: 4px !important; }

/* 1. SPLASH SCREEN */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, #7a2222 0%, var(--deep-maroon) 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Developer popup on entry */
.dev-popup {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 10000;
}
.dev-popup-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(201, 168, 76, 0.55);
  background: rgba(10, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  color: var(--champagne);
}
.dev-popup-label {
  font-family: var(--font-heading);
  letter-spacing: 1px;
  font-size: 0.85rem;
  text-transform: uppercase;
  opacity: 0.85;
}
.dev-popup-link {
  font-family: var(--font-heading);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
}
.dev-popup-link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.7);
}
.dev-popup-close {
  margin-left: 2px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-size: 18px;
}
.dev-popup-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.splash-bottom-mantra {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px 18px;
  display: flex;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 0, 0, 0.45), transparent);
}
.splash-mantra {
  max-width: 1000px;
  text-align: center;
  font-family: var(--font-devanagari);
  color: rgba(250, 245, 239, 0.9);
  font-size: clamp(0.95rem, 2.3vw, 1.15rem);
  letter-spacing: 0.3px;
}
.splash-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 720px;
}
.mandala-container {
  width: 250px;
  height: 250px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  pointer-events: none;
}
.mandala-svg {
  width: 100%;
  height: 100%;
  animation: rotateSlow 20s linear infinite;
}
.ganesha-img {
  width: clamp(160px, 25vw, 280px);
  max-width: min(70vw, 300px);
  height: auto;
  display: block;
  margin-bottom: 15px;
  opacity: 1;
  position: relative;
  z-index: 2;
}
.shloka-container {
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}
.shloka {
  font-family: var(--font-devanagari);
  color: var(--ivory);
  font-size: 1.5rem;
  margin-bottom: 5px;
}
.shloka-translit {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--champagne);
  margin-top: 10px;
}

/* COMMON SECTION STYLES */
section {
  min-height: 100vh;
  padding: 4rem 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.container {
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 10;
}
.flex-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
.split-layout {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4rem;
}
.reverse-layout {
  flex-direction: row-reverse;
}
.visual, .content {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Keep media + card balanced in split sections */
.split-layout .visual,
.split-layout .content {
  min-height: 520px;
  align-items: center;
}
.split-layout .content .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-layout .visual .section-video,
.split-layout .visual .section-image {
  height: 100%;
  max-height: 560px;
  object-fit: cover;
}

/* Section Media Styles */
.section-video-container, .section-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
}

.section-video {
  width: min(var(--event-media-width), 100%);
  aspect-ratio: var(--event-media-ratio);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  object-fit: cover;
}

.section-image {
  width: min(var(--event-media-width), 100%);
  aspect-ratio: var(--event-media-ratio);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  object-fit: cover;
}

.card {
  background: rgba(250, 245, 239, 0.9);
  padding: 3rem;
  border: 1px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: var(--event-card-width);
  width: 100%;
  text-align: center;
  backdrop-filter: blur(8px);
}

/* Equalize stacked (image/video + card) sections */
.flex-col-center > .card {
  min-height: var(--event-card-min-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(201,168,76,0.45), rgba(255,255,255,0.12), rgba(201,168,76,0.35));
  opacity: 0.28;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  padding: 1px;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--gold);
}
.corner-tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.corner-tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.corner-br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.event-details p {
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  margin-bottom: 0.5rem;
  line-height: 1.55;
}
.address-small {
  font-size: clamp(0.95rem, 1.1vw, 1rem);
  color: #555;
  margin-bottom: 1.5rem;
}
.text-light p { color: var(--ivory); }
.text-light .address-small { color: var(--champagne); }

.badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.badge-yellow { background: var(--gold); color: #fff; }
.badge-green { background: #2D6A4F; color: #fff; }
.badge-glam { background: linear-gradient(45deg, #1A0A0A, var(--deep-maroon)); color: var(--gold); border: 1px solid var(--gold);}
.badge-ethnic { background: var(--deep-maroon); color: var(--champagne); }
.desc {
  font-style: italic;
  opacity: 0.9;
  max-width: 46ch;
  margin: 0 auto;
}

/* Card typography (avoid oversized titles inside cards) */
.card .section-title {
  font-size: clamp(2.05rem, 4.1vw, 3.15rem);
  line-height: 1.08;
  margin-bottom: 0.8rem;
  padding: 0 0.25rem;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.card .badge {
  margin-top: 0.25rem;
}

/* Extra control for long headings inside dark cards */
.mehendi-card .section-title,
.sangeet-card .section-title,
.vivah-card .section-title {
  max-width: 18ch;
}

/* 2. HERO SECTION */
.section-hero {
  background: radial-gradient(circle at center, #7a2222 0%, var(--deep-maroon) 100%);
  color: var(--champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-title {
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 1.2;
  margin: 1rem 0;
}
.marigold-divider {
  width: 200px;
  height: 40px;
  margin: 0 auto 2rem;
}
.hero-date {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.parents-invitation {
  margin: 1rem auto 2.5rem;
  padding: 1.25rem 2rem;
  border-top: 1px dashed rgba(201, 168, 76, 0.4);
  border-bottom: 1px dashed rgba(201, 168, 76, 0.4);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.parent-line {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--champagne);
  letter-spacing: 0.5px;
}
.parent-relation {
  color: var(--gold);
  font-weight: bold;
  font-style: italic;
  margin-right: 0.3rem;
}
.parent-amp {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}
.hero-address-card {
  margin: 1.5rem auto 0;
  max-width: 450px;
  background: rgba(10, 0, 0, 0.25);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-align: left;
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.hero-address-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 168, 76, 0.6);
}
.address-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(201, 168, 76, 0.15);
  border-radius: 50%;
  flex-shrink: 0;
}
.address-text h4 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.address-text p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(240, 222, 180, 0.9);
}
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.countdown-box {
  width: 80px;
  height: 80px;
  border: 1px solid var(--gold);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
}
.countdown-box span {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: bold;
  color: var(--gold);
}
.countdown-box small {
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Petals */
.petals-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.petal {
  position: absolute;
  width: 15px;
  height: 25px;
  background: var(--blush);
  border-radius: 50% 0 50% 0;
  opacity: 0;
}

/* 3. GANESH POOJA Section */
.section-pooja {
  background: linear-gradient(135deg, #FFB347 0%, #FF8C00 100%);
  position: relative;
}
.section-pooja::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' width='50' height='50'%3E%3Cpath d='M25 10 Q35 20 25 40 Q15 20 25 10' fill='none' stroke='white' stroke-width='0.5' opacity='0.2'/%3E%3C/svg%3E");
  background-size: 100px;
}
.diya-svg {
  width: 300px;
  filter: drop-shadow(0 0 30px rgba(255, 165, 0, 0.8));
}
.diya-flame, .diya-flame-inner {
  transform-origin: 50% 60px;
  animation: flicker 0.3s infinite alternate;
}

/* 4. HALDI Section */
.section-haldi {
  background: radial-gradient(circle, #F5C842 0%, #FFF5D1 100%);
}
.section-haldi::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(200, 150, 0, 0.1) 2px, transparent 2px);
  background-size: 30px 30px;
}
.haldi-svg { width: 250px; }
.bob-anim { animation: bob 2s ease-in-out infinite alternate; }

/* 5. MEHENDI Section */
.section-mehendi {
  background: linear-gradient(to bottom, #1B4332, #2D6A4F);
}
.mandala-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23C9A84C' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 400px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
}
.mehendi-svg { width: 300px; }
.hand-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000; /* Animated via JS ScrollTrigger */
}
.mehendi-card { background: rgba(26, 10, 10, 0.8); border: 1px solid var(--gold); }

/* Make Ganesh + Mehendi cards match Haldi card style */
.section-pooja .card,
.mehendi-card {
  background: rgba(250, 245, 239, 0.96);
  border: 1px solid rgba(201, 168, 76, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.section-pooja .corner {
  display: none;
}

.section-pooja .card .section-title,
.mehendi-card .section-title {
  color: var(--deep-maroon);
  max-width: 22ch;
}

.mehendi-card .event-details,
.mehendi-card .event-details p,
.mehendi-card .address-small,
.mehendi-card .desc {
  color: var(--midnight);
}

.mehendi-card .address-small {
  color: #555;
}

.section-pooja .badge,
.mehendi-card .badge {
  background: rgba(201, 168, 76, 0.28);
  color: var(--deep-maroon);
  border: 1px solid rgba(201, 168, 76, 0.35);
  padding: 10px 18px;
  border-radius: 999px;
}

.section-pooja .badge {
  background: rgba(0, 0, 0, 0.03);
}

/* 6. SANGEET Section */
.section-sangeet {
  background: #0D1B2A;
}
.section-sangeet::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: transparent;
  /* Box shadow for stars generated by JS or static below */
  box-shadow: 10vw 10vh #fff, 20vw 50vh #fff, 30vw 20vh #fff, 40vw 80vh #fff, 50vw 40vh #fff, 60vw 15vh #fff, 70vw 60vh #fff, 80vw 30vh #fff, 90vw 90vh #fff, 15vw 70vh #fff, 85vw 10vh #fff, 45vw 60vh #fff;
  opacity: 0.8;
}
.curtain {
  position: absolute;
  top: 0;
  width: 40%;
  height: 100%;
  background: var(--deep-maroon);
  z-index: 1;
  box-shadow: inset -10px 0 30px rgba(0,0,0,0.5);
}
.curtain-left { left: 0; clip-path: polygon(0 0, 100% 0, 30% 100%, 0% 100%); }
.curtain-right { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 70% 100%); }
.music-notes-svg {
  position: relative;
  width: 200px;
  height: 150px;
  z-index: 2;
}
.note { position: absolute; width: 80px; height: 80px; }
.note:first-child { left: 20%; top: 30%; }
.note:last-child { right: 20%; top: 10%; }
.float-anim { animation: floatY 3s ease-in-out infinite alternate; }
.sangeet-card { background: rgba(13, 27, 42, 0.9); border-color: var(--gold); }

/* 7. VIVAH Section */
.section-vivah {
  background: repeating-linear-gradient(45deg, #7B0D1E, #7B0D1E 10px, transparent 10px, transparent 20px), linear-gradient(#5C1A1A, #5C1A1A);
  background-size: 40px 40px, 100% 100%;
}
.hawan-svg { width: 300px; margin-bottom: -40px; position: relative; z-index: 2; }
.smoke { animation: smokeUp 3s infinite linear; transform-origin: center bottom;}
.smoke-1 { animation-duration: 4s; }
.smoke-2 { animation-duration: 3s; animation-delay: 1s;}
.smoke-3 { animation-duration: 5s; animation-delay: 2s;}
.flame { transform-origin: 100px 100px; animation: flicker 0.2s infinite alternate;}
.fire-mid { animation-delay: 0.1s;}
.fire-front { animation-delay: 0.2s;}

.kalash-container {
  width: 80px;
  margin-bottom: 2rem;
  z-index: 2;
}
.vivah-card {
  background: rgba(26, 10, 10, 0.9);
  border: 2px solid var(--gold);
}
.timings {
  margin: 1.5rem 0;
  padding: 1rem;
  border-top: 1px dotted var(--gold);
  border-bottom: 1px dotted var(--gold);
}

/* 8. VIDAI Section */
.section-vidai {
  background: linear-gradient(to bottom, #F9E4E4, var(--ivory));
}
.car-scene {
  width: 100%;
  height: 120px;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}
.car-svg {
  width: 200px;
  position: absolute;
  bottom: 0;
  left: -200px;
  animation: driveCar 8s linear infinite;
}
.vidai-card { text-align: center; max-width: 600px; }
.emotional-text { font-style: italic; font-size: 1.4rem; padding: 1rem 0; }
.doli-svg { width: 150px; margin: 2rem auto 0; display: block; }

/* 9. INVITATION Section */
.section-invite {
  background: var(--deep-maroon);
  color: var(--champagne);
  text-align: center;
}
.invite-container {
  border: 2px solid var(--gold);
  padding: 4rem 2rem;
  background: rgba(0,0,0,0.2);
}
.subtext { font-size: 1.2rem; margin-bottom: 2rem; }
.form-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
input[type="text"] {
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 1.2rem;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--champagne);
  outline: none;
  min-width: 250px;
}
input[type="text"]::placeholder { color: rgba(240, 222, 180, 0.5); }
.section-invite .btn-primary { background: var(--gold); color: var(--deep-maroon); border: none; font-weight: bold; }
.section-invite .btn-primary:hover { background: var(--champagne); }

/* 10. FOOTER */
.site-footer {
  background: var(--midnight);
  color: var(--gold);
  text-align: center;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-dev {
  margin-top: 0.25rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: rgba(201,168,76,0.85);
}
.dev-link {
  color: var(--champagne);
  border-bottom: 1px solid rgba(240,222,180,0.4);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease, text-shadow 0.25s ease;
}
.dev-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
  text-shadow: 0 0 18px rgba(201,168,76,0.35);
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
.monogram-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 800px;
  padding: 1rem;
}
.card-export {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 4/3;
  background: var(--ivory);
  box-shadow: inset 0 0 0 8px var(--champagne);
  border: 3px solid var(--gold);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  text-align: center;
  color: var(--deep-maroon);
  transform: translateY(10px) scale(0.985);
  opacity: 0.98;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.45s ease;
}
.modal-overlay:not(.hidden) .card-export {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.crn {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid var(--gold);
}
.crn-tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.crn-tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.crn-bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.crn-br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.card-ganesha { width: 60px; opacity: 0.7; }
.card-sanskrit { font-family: var(--font-devanagari); font-size: 1.5rem; color: var(--gold); }
.card-greeting { font-family: var(--font-script); font-size: 2.5rem; margin: 0; }
.card-text { font-family: var(--font-body); font-style: italic; }
.card-couple { font-family: var(--font-script); font-size: 3.5rem; margin: 0.5rem 0; }
.card-parents { font-family: var(--font-body); font-size: 1.2rem; color: var(--deep-maroon); margin: 0.5rem 0; }
.card-table {
  width: 80%;
  border-collapse: collapse;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}
.card-table th, .card-table td {
  padding: 0.5rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}
.card-venue { font-size: 0.9rem; font-style: italic; color: #555; }
.card-monogram {
  width: 50px;
  height: 50px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  color: var(--gold);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-action {
  padding: 10px 20px;
  border: none;
  background: var(--gold);
  color: var(--deep-maroon);
  font-family: var(--font-heading);
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
}
.btn-wa { background: #25D366; color: #fff; }
.btn-close { background: transparent; color: #fff; border: 1px solid #fff; padding: 10px 20px; cursor: pointer;}

/* KEYFRAMES */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes rotateSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes flicker {
  0%, 100% { transform: scaleY(1) scaleX(1); opacity: 1; }
  25% { transform: scaleY(1.1) scaleX(0.95); opacity: 0.9; }
  50% { transform: scaleY(0.95) scaleX(1.05); opacity: 1; }
  75% { transform: scaleY(1.05) scaleX(0.98); opacity: 0.85; }
}
@keyframes bob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}
@keyframes floatY {
  0% { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}
@keyframes smokeUp {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-40px); opacity: 0; }
}
@keyframes driveCar {
  0% { transform: translateX(0); }
  100% { transform: translateX(120vw); }
}
@keyframes petalFall {
  0% { transform: translateY(-100px) rotate(0deg) translateX(0); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg) translateX(80px); opacity: 0; }
}
@keyframes soundWave {
  0% { height: 4px; }
  100% { height: 16px; }
}

/* Responsive */
@media (max-width: 768px) {
  .split-layout {
    flex-direction: column;
    text-align: center;
  }
  .reverse-layout {
    flex-direction: column;
  }
  .split-layout .visual,
  .split-layout .content {
    min-height: auto;
  }
  .split-layout .content .card {
    height: auto;
  }
  .section-video, .section-image {
    max-width: 90%;
    height: auto;
  }
  /* Make invitation card fully readable on mobile */
  .modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 18px 0;
  }
  .modal-content {
    max-height: none;
  }
  .card-export {
    aspect-ratio: auto;
    max-width: 560px;
    padding: 1.25rem;
    gap: 0.65rem;
    transform: none;
    opacity: 1;
  }
  .card-couple { font-size: clamp(2.2rem, 7vw, 3.1rem); }
  .card-greeting { font-size: clamp(2rem, 6vw, 2.6rem); }
  .card-sanskrit { font-size: 1.2rem; }
  .card-table { font-size: 0.95rem; width: 100%; }
  .card-table th, .card-table td { padding: 0.4rem; }
}
@media (max-width: 480px) {
  .section-video, .section-image {
    max-width: 95%;
    height: auto;
  }
  .card-export {
    max-width: 520px;
    padding: 1.05rem;
  }
  .card-table { font-size: 0.9rem; }
}

/* 12. LUXURY ANIMATIONS AND AMBIENT EFFECTS */
.firefly {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--champagne);
  border-radius: 50%;
  box-shadow: 0 0 8px 3px rgba(201, 168, 76, 0.6), 0 0 15px 5px rgba(201, 168, 76, 0.3);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

@keyframes fireflyFloat {
  0% { transform: translate(0, 0) scale(0.8); opacity: 0; }
  25% { opacity: 0.8; }
  50% { transform: translate(25px, -30px) scale(1.3); opacity: 1; }
  75% { opacity: 0.8; }
  100% { transform: translate(-15px, -50px) scale(0.9); opacity: 0; }
}

@keyframes buttonPulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); border-color: var(--gold); }
  70% { box-shadow: 0 0 0 15px rgba(201, 168, 76, 0); border-color: var(--champagne); }
  100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); border-color: var(--gold); }
}

.btn-primary {
  animation: buttonPulse 3s infinite;
}

.card {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, border-color 0.5s ease;
}
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(201, 168, 76, 0.25);
  border-color: var(--gold);
}

.ganesha-img {
  animation: floatY 4s ease-in-out infinite alternate;
}
