/* ═══════════════════════════════════════════════════════════════════════════
   main.css — Vishnu & Pallavi Wedding Website
   Theme: Lord Krishna & Radha — divine love, twilight gold, peacock blue
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Anek+Malayalam:wght@300;400;500;600;700;800&family=Cinzel+Decorative:wght@400;700;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Noto+Sans+Malayalam:wght@300;400;600;700&family=Noto+Serif+Malayalam:wght@400;600;700&family=Tiro+Devanagari+Hindi:ital@0;1&display=swap');

/* ── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  --navy: #0D1B3E;
  --navy-mid: #152847;
  --navy-light: #1a3464;
  --gold: #D4A853;
  --gold-light: #f0c96b;
  --gold-pale: #fce9b0;
  --gold-dark: #a67c30;
  --peacock: #1A6B6B;
  --peacock-light: #2a9696;
  --lotus: #E8728A;
  --lotus-light: #f5a0b5;
  --lotus-pale: #fde0e8;
  --cream: #FFF8ED;
  --cream-dark: #f5e8c8;
  --maroon: #6B1A3A;
  --purple-deep: #2D0A4E;
  --white: #ffffff;

  --env-bg: #c97b84;
  /* Dusty rose pink */
  /* Subtle matte paper texture and slight edge vignette for realism */
  --env-bg-texture:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);

  --font-title: 'Cinzel Decorative', serif;
  --font-en: 'Cormorant Garamond', serif;
  --font-ml: 'Anek Malayalam', 'Noto Sans Malayalam', sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-gold: 0 0 40px rgba(212, 168, 83, 0.35), 0 0 80px rgba(212, 168, 83, 0.15);
  --shadow-deep: 0 30px 80px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);

  --glass-bg: rgba(13, 27, 62, 0.72);
  --glass-border: rgba(212, 168, 83, 0.25);
  --glass-blur: blur(10px);
  /* was 24px — major perf win */
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Custom Dark Luxury Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #08040C;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #AA771C, #D4A853, #AA771C);
  border-radius: 4px;
  border: 1px solid #08040C;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #D4A853, #FFF4CA, #D4A853);
  box-shadow: 0 0 10px rgba(212, 168, 83, 0.9);
}

/* Firefox scrollbar support */
* {
  scrollbar-width: thin;
  scrollbar-color: #D4A853 #08040C;
}

body {
  font-family: var(--font-ml);
  background: #1A0505;
  color: var(--cream);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.7;
}

/* ── Background Scene ──────────────────────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Krishna background image — full HD, blurred, premium */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-gradient::before {
  content: '';
  position: absolute;
  inset: -5%;
  /* slight oversize so blur edge doesn't show */
  background-image: url('../images/ganapathy_bg.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: blur(6px) brightness(0.55);
  transform: scale(1.08);
  /* hides blur edges */
  will-change: transform;
}

/* Dark gradient overlay — single layer for cross-browser consistency */
.bg-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(30, 5, 5, 0.45) 0%,
      rgba(20, 3, 3, 0.20) 40%,
      rgba(30, 5, 5, 0.45) 100%);
}

/* Mobile: shift focus toward top of image where Ganesha appears */
@media (max-width: 768px) {
  .bg-gradient::before {
    background-position: 60% top;
    filter: blur(5px) brightness(0.55);
  }
}

/* ── Language Toggle ───────────────────────────────────────────────────────── */
#lang-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: rgba(13, 27, 62, 0.92);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  padding: 8px 18px;
  color: var(--gold);
  font-family: var(--font-ml);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  min-width: max-content;
}

#lang-toggle:hover {
  background: rgba(212, 168, 83, 0.15);
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.2);
  transform: translateY(-2px);
}

#lang-toggle .lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

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

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENVELOPE SCENE — ULTRA-PREMIUM KERALA STYLE
   ═══════════════════════════════════════════════════════════════════════════ */
#envelope-scene {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1.4s var(--ease-out), transform 1.4s var(--ease-out);
}

#envelope-scene.fade-out {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

/* ── Printed Envelope Base Text ────────────────────────────────────────────────── */
.env-print-hint {
  position: absolute;
  bottom: 35px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  z-index: 15;
}

.env-print-hint .hint-line {
  font-family: var(--font-ml);
  font-size: 0.95rem;
  color: rgba(130, 80, 20, 0.75); /* Matte gold foil print on the paper */
  letter-spacing: 1.2px;
}

.env-print-hint .hint-names {
  font-family: var(--font-ml);
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(160, 110, 30, 0.85); /* Slightly brighter gold foil for names */
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
}

.env-print-hint .hint-infinity {
  font-size: 1.3rem;
  font-weight: bold;
  color: #d5a54b;
  display: inline-block;
  padding: 0 4px;
}

/* We don't need float animations anymore because it's printed physically! */

/* ── Envelope Wrap ──────────────────────────────────────────────────────────── */
.envelope-wrap {
  position: relative;
  width: 520px;
  perspective: 1800px;
  animation: env-entrance 1.6s var(--ease-spring) forwards;
  will-change: transform, opacity;
  cursor: pointer;
}

@keyframes env-entrance {
  from {
    transform: scale(0.45) translateY(100px) rotateX(12deg);
    opacity: 0;
    filter: blur(3px);
  }

  to {
    transform: scale(1) translateY(0) rotateX(0deg);
    opacity: 1;
    filter: blur(0);
  }
}

/* ── Envelope Body ──────────────────────────────────────────────────────────── */
.envelope {
  position: relative;
  width: 520px;
  height: 346px;
  filter:
    drop-shadow(0 50px 90px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 80px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 160px rgba(0, 0, 0, 0.25));
  transform-style: preserve-3d;
}

/* Removed master gold frame to let realistic paper shadows shine! */

/* ── Back panel — deep royal crimson with layered texture ───────────────────── */
.env-back {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background-color: var(--env-bg);
  background-image: var(--env-bg-texture);
  overflow: hidden;
}

/* Exquisitely faint tiny intricate damask graphics */
.env-back::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/damask.svg') center;
  background-size: 80px;
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Warm parchment sheen — gentle light shift */
.env-back::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(255, 248, 210, 0.55) 0%, transparent 60%),
    linear-gradient(145deg,
      rgba(255, 245, 210, 0.35) 0%,
      transparent 50%,
      rgba(230, 210, 160, 0.15) 100%);
  pointer-events: none;
  animation: silk-sheen 6s ease-in-out infinite alternate;
}

@keyframes silk-sheen {
  0% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

/* ── Ornate Kerala border — double frame with corner mandalas ─────────────────── */
.env-liner {
  position: absolute;
  inset: 14px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 2;
  /* Fine outer line */
  border: 1.8px solid rgba(232, 192, 80, 0.75);
}

.env-liner::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 5px;
  /* Inner dotted bead line */
  border: 1px dashed rgba(232, 192, 80, 0.40);
}

/* Sweeping gold shimmer across the liner */
.env-liner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(108deg,
      transparent 25%,
      rgba(255, 248, 200, 0.22) 50%,
      transparent 75%);
  background-size: 250% 100%;
  animation: env-shimmer 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes env-shimmer {
  0% {
    background-position: 250% center;
  }

  50% {
    background-position: -50% center;
  }

  100% {
    background-position: 250% center;
  }
}

/* ── Corner ornaments — gold on cream ───────────────────────────────────────── */
.env-corner {
  position: absolute;
  width: 48px;
  height: 48px;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 1px 4px rgba(180, 130, 30, 0.4));
}

/* Hide old extra pieces (stamps, corners) but KEEP folds */
.env-corner,
.env-stamp,
.env-address {
  display: none !important;
}

/* ── Folded side and bottom panels (Restored classic X-folds per user drawing) ── */
.env-fold-left,
.env-fold-right,
.env-fold-bottom {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-color: var(--env-bg);
  /* Layer the texture with faint tiny intricate graphics (damask) */
  background-image:
    url('../images/damask.svg'),
    var(--env-bg-texture);
  background-size: 80px, auto;
  background-blend-mode: multiply, normal;
  opacity: 0.98;
  /* slight transparency to blend deep shadows underneath */
}

.env-fold-left {
  clip-path: polygon(0 0, 52% 52%, 0 100%);
  filter: drop-shadow(4px 0 6px rgba(0, 0, 0, 0.15));
}

.env-fold-right {
  clip-path: polygon(100% 0, 100% 100%, 48% 52%);
  filter: drop-shadow(-4px 0 6px rgba(0, 0, 0, 0.15));
}

.env-fold-bottom {
  z-index: 3;
  /* Bottom fold sits OVER the side folds */
  clip-path: polygon(0 100%, 50% 50%, 100% 100%);
  filter: drop-shadow(0 -4px 6px rgba(0, 0, 0, 0.25));
}

/* ── Flap — Clean elegant V-shape, delicate gold print ────────────────── */
.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  /* Perfect midpoint */
  background-color: var(--env-bg);
  background-image: var(--env-bg-texture);
  /* Clean sharp V-shape */
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 2s cubic-bezier(0.12, 1, 0.28, 1);
  z-index: 10;
  /* Deep, soft paper drop shadow mimicking physical depth */
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.25)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Delicate botanical foil on the flap */
.env-flap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/damask.svg') center 10px;
  background-size: 80px;
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.env-flap.flap-open {
  transform: rotateX(-180deg);
}

/* ── Wax Seal — organic pressed wax with beautiful Om ─────────────────────── */
.wax-seal {
  position: absolute;
  /* Seal sits exactly at 50% to pin the flap tip */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 80px;
  height: 80px;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  animation: seal-float 4.5s ease-in-out infinite;
}

@keyframes seal-float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    filter: drop-shadow(0 6px 18px rgba(180, 130, 10, 0.35));
  }

  50% {
    transform: translateX(-50%) translateY(-5px);
    filter: drop-shadow(0 12px 26px rgba(180, 130, 10, 0.5));
  }
}

/* The beautiful Om wax disk — organic pressed wax look */
.wax-seal-inner {
  position: absolute;
  inset: 0;
  border-radius: 46% 54% 52% 48% / 54% 46% 56% 44%;
  background: radial-gradient(circle at 35% 30%, #D4A853 0%, #a47525 60%, #684915 100%);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -4px 8px rgba(60, 30, 0, 0.6),
    0 5px 8px rgba(0, 0, 0, 0.3),
    0 12px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle concentric engraved ring */
.wax-seal-inner::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(120, 70, 10, 0.3);
  pointer-events: none;
}

/* ── Elegant Seal Typography (Monolithic Gold Emboss) ── */
.seal-script {
  position: relative;
  font-family: 'Cinzel Decorative', var(--font-en), serif;
  font-size: 1.4rem;
  color: #d5a54b;
  text-shadow: -1px -1px 1px rgba(255, 255, 255, 0.7), 1px 1.5px 2px rgba(100, 50, 0, 0.6);
  font-weight: 700;
  z-index: 10;
  transform: translateY(-4px);
}

.seal-script-amp {
  font-size: 1.25rem;
  margin: 0 3px;
  opacity: 0.9;
  vertical-align: baseline;
}

.wax-seal.glow {
  animation: seal-glow 0.7s var(--ease-out) forwards;
}

@keyframes seal-glow {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }

  35% {
    transform: translateX(-50%) scale(1.3);
    filter:
      drop-shadow(0 0 40px rgba(255, 230, 100, 0.95)) drop-shadow(0 0 80px rgba(212, 168, 83, 0.7)) drop-shadow(0 0 120px rgba(255, 180, 50, 0.4));
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) scale(0);
    opacity: 0;
  }
}


/* ── Envelope Stitched Border & Om (User Request) ── */
.env-stitched-border {
  position: absolute;
  inset: 12px;
  border: 1.2px dashed rgba(180, 110, 60, 0.45);
  border-radius: 4px;
  pointer-events: none;
}

.env-stitched-om {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-family: var(--font-ml);
  font-size: 1.6rem;
  color: rgba(180, 110, 60, 0.5);
  transform: rotate(-10deg);
}

/* ── Unified Front Pocket (simulating a seamless envelope body) ─────────────────────────────── */
.env-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Must cover the full height to apply the outer gold border seamlessly */
  z-index: 2;
  pointer-events: none;
  /* Cut out the top V so the letter can pull out from the center */
  clip-path: polygon(0 0, 48% 54.5%, 52% 54.5%, 100% 0, 100% 100%, 0 100%);
  background-color: var(--env-bg);
  background-image: var(--env-bg-texture);
  /* The crisp shadow from the V pocket sitting over the base paper */
  filter: drop-shadow(0 -4px 6px rgba(0, 0, 0, 0.18)) drop-shadow(0 -1px 3px rgba(0, 0, 0, 0.25));
}

/* ── Deleted Om stamp & Address lines to match pure minimalist reference ── */
.env-stamp,
.env-address,
.env-corner {
  display: none !important;
}

/* ── Open Button ────────────────────────────────────────────────────────────── */
#open-btn {
  margin-top: 52px;
  padding: 18px 60px;
  background: linear-gradient(135deg, #F3E1A8 0%, #D4A853 45%, #B8862A 100%);
  border: 1.5px solid #F3E1A8;
  border-radius: 60px;
  color: #6B1010;
  font-family: var(--font-en);
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  animation: btn-breathe 3s ease-in-out infinite;
  text-shadow: 0 1px 0 rgba(255, 240, 180, 0.6);
  box-shadow: 0 10px 28px rgba(212, 168, 83, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#open-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 60px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 248, 200, 0.18) 50%,
      transparent 100%);
  background-size: 200% 100%;
  animation: btn-shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-shimmer {
  0% {
    background-position: -100% center;
  }

  100% {
    background-position: 200% center;
  }
}

#open-btn::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 60px;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.4), rgba(212, 168, 83, 0.0), rgba(212, 168, 83, 0.3));
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

#open-btn:hover::after {
  opacity: 1;
}

#open-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 44px rgba(212, 168, 83, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-color: #FFF4CA;
  color: #6B1010;
  letter-spacing: 3px;
  filter: brightness(1.06);
}

#open-btn:active {
  transform: translateY(0);
}

@keyframes btn-breathe {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.15), 0 0 0 0 rgba(212, 168, 83, 0.2);
  }

  50% {
    box-shadow: 0 0 30px rgba(212, 168, 83, 0.25), 0 0 0 8px rgba(212, 168, 83, 0);
  }
}

#open-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85) translateY(10px);
  transition: all 0.5s var(--ease-out);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE FULL-SCREEN ENVELOPE  (≤ 768px)
   Premium Kerala-style: deep crimson velvet fills entire screen.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Hide desktop hint & button */
  .env-print-hint,
  #open-btn {
    display: none !important;
  }

  /* Show mobile tap hint */
  .env-tap-hint,
  .env-bottom-names {
    display: block;
  }

  /* Scene: full-screen with no centering gap */
  #envelope-scene {
    justify-content: flex-start;
    align-items: stretch;
  }

  /* Full viewport wrap */
  .envelope-wrap {
    width: 100%;
    height: 100dvh;
    perspective: none;
    animation: env-entrance-mobile 1.1s var(--ease-out) forwards;
  }

  @keyframes env-entrance-mobile {
    from {
      opacity: 0;
      transform: scale(1.04);
      filter: blur(4px);
    }

    to {
      opacity: 1;
      transform: scale(1);
      filter: blur(0);
    }
  }

  /* Envelope fills entire screen */
  .envelope {
    width: 100%;
    height: 100%;
    border-radius: 0;
    /* Soft dark shading instead of a gold glow */
    filter: drop-shadow(0 0 80px rgba(0, 0, 0, 0.25));
  }

  /* Ivory cream — mobile full screen */
  /* Ivory cream — mobile full screen */
  .env-back {
    border-radius: 0;
    background-color: var(--env-bg);
    background-image: var(--env-bg-texture);
    box-shadow:
      inset 0 0 0 1px rgba(212, 168, 83, 0.25),
      inset 0 0 0 7px rgba(251, 249, 244, 0.9),
      inset 0 0 0 8px rgba(212, 168, 83, 0.5);
  }

  .env-back::before {
    background-image: none;
    opacity: 0;
    display: none;
  }

  /* Mobile gold inner border — subtle */
  .env-liner {
    inset: 16px;
    border-radius: 0;
    border-color: rgba(212, 168, 83, 0.28);
  }

  .env-liner::before {
    inset: 8px;
    border-color: rgba(212, 168, 83, 0.11);
  }

  /* Hide old decorative stamps and corners on mobile */
  .env-stamp,
  .env-address,
  .env-corner {
    display: none;
  }

  /* ── TOP FLAP: V-shape pointing down, pristine cream + floral ── */
  .env-flap {
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background-color: var(--env-bg);
    background-image: var(--env-bg-texture);
    border-radius: 0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08)) drop-shadow(0 2px 2px rgba(212, 168, 83, 0.2));
  }

  /* Mobile flap uses inherited desktop style */

  /* ── FRONT POCKET REMOVED ── */
  .env-front {
    display: none !important;
  }

  /* ── WAX SEAL: large, exactly centered across flap join ── */
  .wax-seal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    animation: seal-float-mobile 4.5s ease-in-out infinite;
  }

  .wax-seal::before {
    inset: -6px;
    background: transparent;
    border: 1px solid rgba(180, 130, 10, 0.30);
    filter: none;
  }

  .wax-seal::after {
    inset: -12px;
    border-width: 1px;
    border-color: rgba(180, 130, 10, 0.15);
  }

  @keyframes seal-float-mobile {

    0%,
    100% {
      transform: translate(-50%, -50%) translateY(0);
      filter: drop-shadow(0 8px 20px rgba(180, 130, 10, 0.35));
    }

    50% {
      transform: translate(-50%, -50%) translateY(-7px);
      filter: drop-shadow(0 14px 30px rgba(180, 130, 10, 0.5));
    }
  }

  .wax-seal-inner {
    font-size: 1.6rem;
    box-shadow:
      0 0 0 2px rgba(180, 130, 10, 0.6),
      0 10px 28px rgba(0, 0, 0, 0.25),
      inset 0 3px 7px rgba(255, 255, 220, 0.55),
      inset 0 -3px 7px rgba(100, 70, 0, 0.4);
  }

  /* Mobile seal glow — uses translate(-50%,-50%) base */
  .wax-seal.glow {
    animation: seal-glow-mobile 0.7s var(--ease-out) forwards !important;
  }

  @keyframes seal-glow-mobile {
    0% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }

    35% {
      transform: translate(-50%, -50%) scale(1.35);
      filter:
        drop-shadow(0 0 50px rgba(255, 230, 100, 0.98)) drop-shadow(0 0 100px rgba(212, 168, 83, 0.75)) drop-shadow(0 0 150px rgba(255, 180, 50, 0.45));
      opacity: 1;
    }

    100% {
      transform: translate(-50%, -50%) scale(0);
      opacity: 0;
    }
  }

  /* ── "ക്ഷണപത്രിക തുറക്കുക" — below seal ── */
  .env-tap-hint {
    position: absolute;
    top: calc(56% + 74px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 21;
    text-align: center;
    pointer-events: none;
  }

  .env-tap-hint .tap-line1 {
    font-family: var(--font-ml);
    font-size: 1.05rem;
    font-weight: 700;
    color: #6B1010;
    letter-spacing: 1.5px;
    white-space: nowrap;
    animation: float-text 4.5s ease-in-out infinite;
    text-shadow: 0 1px 0 rgba(255, 240, 180, 0.6);
    display: block;
    padding: 13px 30px;
    border: 1.5px solid #F3E1A8;
    border-radius: 40px;
    background: linear-gradient(135deg, #F3E1A8 0%, #D4A853 45%, #B8862A 100%);
    box-shadow: 0 10px 26px rgba(212, 168, 83, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
}

/* Desktop: hide mobile overlay */
@media (min-width: 769px) {
  .env-tap-hint {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN INVITATION CONTENT
   ═══════════════════════════════════════════════════════════════════════════ */
#main-content {
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  pointer-events: none;
}

#main-content.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.invitation-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

/* ── Glass Card Container ────────────────────────────────────────────────────── */
.inv-card {
  background: #12030A;
  /* solid fallback for browsers without backdrop-filter */
  background: rgba(18, 3, 8, 0.88);
  border: 1px solid rgba(212, 168, 83, 0.30);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(212, 168, 83, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  position: relative;
  contain: layout style;
}

.inv-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.04) 0%, transparent 50%, rgba(232, 114, 138, 0.04) 100%);
  pointer-events: none;
}

/* ── Om Banner ──────────────────────────────────────────────────────────────── */
.om-banner {
  text-align: center;
  padding: 40px 20px 0;
  position: relative;
}

.om-symbol {
  font-size: 3rem;
  color: var(--gold);
  text-shadow: var(--shadow-gold);
  display: inline-block;
  animation: float-om 4s ease-in-out infinite;
  line-height: 1;
}

@keyframes float-om {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.05);
  }
}

.om-subtitle {
  font-family: var(--font-ml);
  font-size: 1rem;
  color: var(--gold-light);
  opacity: 0.95;
  margin-top: 8px;
  letter-spacing: 1px;
}

/* ── Decorative Divider ─────────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 40px;
}

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

.divider-icon {
  color: var(--gold);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-symbol {
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: 6px;
  text-shadow: 0 0 12px rgba(212, 168, 83, 0.5);
  opacity: 0.9;
}

.gold-svg-divider {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(212, 168, 83, 0.6));
  transition: transform 0.3s var(--ease-out);
}

.gold-svg-divider:hover {
  transform: scale(1.1);
}

.venue-card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 8px rgba(212, 168, 83, 0.5));
}

.ganesha-divider-icon {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(212, 168, 83, 0.8));
  transition: transform 0.3s var(--ease-out);
}

.ganesha-divider-icon:hover {
  transform: scale(1.15) rotate(3deg);
}

.ganesha-mini-icon {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212, 168, 83, 0.7));
}

/* ── Welcome Section ─────────────────────────────────────────────────────────── */
.welcome-section {
  text-align: center;
  padding: 10px 40px 30px;
}

.welcome-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--cream-dark);
  opacity: 0.9;
}

/* ── Hero Names Section ──────────────────────────────────────────────────────── */
.names-hero {
  text-align: center;
  padding: 20px 40px 30px;
  position: relative;
}

.names-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.groom-name,
.bride-name {
  font-family: var(--font-ml);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.4;
  padding-top: 0.15em;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold), var(--gold-dark), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  animation: name-shimmer 4s ease-in-out infinite;
  background-size: 200% auto;
  /* Own compositing layer — shimmer runs on GPU */
  will-change: background-position;
}

/* English mode font overrides */
html[lang="en"] .opening-hint {
  font-family: var(--font-en);
  font-style: italic;
  letter-spacing: 1px;
}

html[lang="en"] #open-btn {
  font-family: var(--font-en);
  letter-spacing: 1.5px;
}

html[lang="en"] .om-subtitle {
  font-family: var(--font-en);
  font-style: italic;
  letter-spacing: 3px;
}

html[lang="en"] .names-subtitle {
  font-family: var(--font-en);
  font-style: italic;
  letter-spacing: 2px;
}

/* English mode: switch to decorative title font */
html[lang="en"] .groom-name,
html[lang="en"] .bride-name {
  font-family: var(--font-title);
  line-height: 1.1;
  padding-top: 0;
}

@keyframes name-shimmer {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

.thali-mala-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 10px;
}

.thali-mala-svg {
  width: 150px;
  height: 85px;
  filter: drop-shadow(0 0 12px rgba(212, 168, 83, 0.85));
  transition: transform 0.3s var(--ease-out);
}

.thali-mala-svg:hover {
  transform: scale(1.06);
}

.thali-connector-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 12px 0 16px;
  gap: 4px;
}

.thali-svg {
  width: 170px;
  height: 48px;
  filter: drop-shadow(0 0 10px rgba(212, 168, 83, 0.7));
  transition: transform 0.3s var(--ease-out);
}

.thali-svg:hover {
  transform: scale(1.08);
}

.names-connector-text {
  font-family: var(--font-ml);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(212, 168, 83, 0.4);
}

html[lang="en"] .names-connector-text {
  font-family: var(--font-en);
  font-style: italic;
  letter-spacing: 3px;
}

.names-subtitle {
  font-family: var(--font-ml);
  font-size: 1.05rem;
  color: var(--gold-light);
  opacity: 0.85;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* ── Date Section ────────────────────────────────────────────────────────────── */
.date-section {
  padding: 20px 40px 30px;
  text-align: center;
}

.date-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(212, 168, 83, 0.05));
  border: 1px solid rgba(212, 168, 83, 0.4);
  border-radius: 18px;
  padding: 24px 48px;
  position: relative;
  overflow: hidden;
}

.date-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.date-label {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.7;
  margin-bottom: 6px;
}

.date-main {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold);
  text-shadow: 0 0 30px rgba(212, 168, 83, 0.4);
  margin-bottom: 4px;
}

.date-day {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 1rem;
  color: var(--lotus-light);
  opacity: 0.8;
}

/* ── Countdown Timer ─────────────────────────────────────────────────────────── */
.countdown-section {
  padding: 10px 40px 30px;
  text-align: center;
}

.countdown-title {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--cream-dark);
  opacity: 0.7;
  margin-bottom: 20px;
  text-transform: uppercase;
}

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

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

.countdown-num {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 30px rgba(212, 168, 83, 0.5);
  display: block;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 12px;
  padding: 12px 8px;
  min-width: 80px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.countdown-num::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px 12px 0 0;
}

.countdown-lbl {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream-dark);
  opacity: 0.6;
  margin-top: 8px;
  font-family: var(--font-en);
}

/* ── Venue Section ───────────────────────────────────────────────────────────── */
.venue-section {
  padding: 20px 40px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .venue-section {
    grid-template-columns: 1fr;
  }
}

.venue-card,
.time-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 168, 83, 0.18);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s var(--ease-out);
}

.venue-card:hover,
.time-card:hover {
  background: rgba(212, 168, 83, 0.07);
  border-color: rgba(212, 168, 83, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.venue-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
}

.venue-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.7;
  margin-bottom: 8px;
}

.venue-name {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 6px;
}

.venue-address {
  font-size: 0.9rem;
  color: var(--cream-dark);
  opacity: 0.75;
  line-height: 1.5;
}

.venue-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-en);
  font-size: 0.85rem;
  transition: opacity 0.2s;
}

.venue-map-link:hover {
  opacity: 0.7;
}

/* ── Family Section ──────────────────────────────────────────────────────────── */
.family-section {
  padding: 10px 40px 30px;
  text-align: center;
}

.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.family-block {
  text-align: center;
}

.family-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.6;
  margin-bottom: 8px;
}

.family-names {
  font-size: 0.95rem;
  color: var(--cream-dark);
  line-height: 1.6;
}

.family-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gold-deepam-svg {
  transition: transform 0.3s var(--ease-out);
  filter: drop-shadow(0 0 10px rgba(212, 168, 83, 0.75));
}

.gold-deepam-svg:hover {
  transform: scale(1.25);
}

/* ═══════════════════════════════════════════════════════════════════════════
   GALLERY SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.gallery-section {
  padding: 30px 40px 40px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 8px;
  text-shadow: var(--shadow-gold);
}

.section-subtitle {
  text-align: center;
  font-family: var(--font-en);
  font-style: italic;
  color: var(--cream-dark);
  opacity: 0.6;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  border: 1px solid rgba(212, 168, 83, 0.15);
}

.gallery-item:hover {
  transform: scale(1.04);
  border-color: rgba(212, 168, 83, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 27, 62, 0.85) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-caption {
  font-size: 0.8rem;
  color: var(--cream);
  font-family: var(--font-en);
}

.gallery-empty {
  text-align: center;
  padding: 40px;
  opacity: 0.5;
  font-family: var(--font-en);
  font-style: italic;
}

/* ── Lightbox ────────────────────────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(5, 10, 25, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#lightbox.active {
  opacity: 1;
  pointer-events: all;
}

#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: var(--shadow-deep);
  transform: scale(0.9);
  transition: transform 0.3s var(--ease-spring);
}

#lightbox.active img {
  transform: scale(1);
}

#lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

#lightbox-close:hover {
  background: rgba(232, 114, 138, 0.3);
  border-color: var(--lotus);
}

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0.8;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RSVP SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.rsvp-section {
  padding: 30px 40px 40px;
  background: rgba(212, 168, 83, 0.03);
  border-top: 1px solid rgba(212, 168, 83, 0.12);
}

.rsvp-form {
  max-width: 520px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--gold-light);
  opacity: 0.8;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 12px;
  color: var(--cream);
  font-size: 1rem;
  font-family: var(--font-ml);
  outline: none;
  transition: all 0.3s var(--ease-out);
}

.form-input:focus,
.form-select:focus {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.07);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.12);
}

.form-input::placeholder {
  opacity: 0.45;
}

.form-select option {
  background: var(--navy-mid);
  color: var(--cream);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none;
  border-radius: 12px;
  color: var(--navy);
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  margin-top: 8px;
  box-shadow: 0 8px 24px rgba(212, 168, 83, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 168, 83, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.rsvp-success {
  text-align: center;
  padding: 30px;
  display: none;
}

.rsvp-success .success-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.rsvp-success p {
  opacity: 0.8;
  font-family: var(--font-en);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.inv-footer {
  padding: 30px 40px 40px;
  text-align: center;
  border-top: 1px solid rgba(212, 168, 83, 0.12);
}

.footer-msg {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 1rem;
  color: var(--cream-dark);
  opacity: 0.75;
  margin-bottom: 16px;
}

.footer-names {
  font-family: var(--font-ml);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: var(--shadow-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  white-space: nowrap;
  line-height: 1;
  max-width: 360px;
  margin: 0 auto;
}

.footer-names>span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.footer-names>span[data-key="groom_name"] {
  flex: 1 1 0%;
  justify-content: flex-end;
  text-align: right;
}

.footer-names>span[data-key="bride_name"] {
  flex: 1 1 0%;
  justify-content: flex-start;
  text-align: left;
}

html[lang="en"] .footer-names {
  font-family: var(--font-title);
}

.footer-heart-svg {
  width: 20px;
  height: 18px;
  fill: #E53935;
  filter: drop-shadow(0 0 8px rgba(229, 57, 53, 0.85));
  animation: pulse-heart 2s ease-in-out infinite;
  flex-shrink: 0;
  margin-top: 1px;
}

@keyframes pulse-heart {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.footer-icons {
  margin-top: 16px;
  font-size: 1.4rem;
  display: flex;
  gap: 12px;
  justify-content: center;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════════════════════════════════════════════ */
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(13, 27, 62, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 168, 83, 0.4);
  border-radius: 50px;
  padding: 14px 28px;
  color: var(--cream);
  font-family: var(--font-en);
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s var(--ease-spring);
  pointer-events: none;
  white-space: nowrap;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 520px) {

  /* Content sections — narrower padding on small phones */
  .welcome-section,
  .date-section,
  .names-hero,
  .family-section,
  .gallery-section,
  .rsvp-section,
  .inv-footer,
  .countdown-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .family-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .family-divider {
    display: none;
  }

  .countdown-num {
    font-size: 2rem;
    min-width: 62px;
  }

  .groom-name,
  .bride-name {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.3rem;
  }
}

/* ── Reveal animation — triggered all at once when card opens ──────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
/* ═══════════════════════════════════════════════════════════════════════════
   SIMPLE COMPACT INVITATION CARD — cream paper + navy text (single-view)
   ═══════════════════════════════════════════════════════════════════════════ */
.invitation-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 28px 18px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.simple-card {
  width: 100%;
  background: rgba(20, 6, 10, 0.90);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--cream);
  border-radius: 20px;
  padding: 44px 36px 38px;
  text-align: center;
  font-family: var(--font-ml);
  line-height: 1.6;
  position: relative;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(212,168,83,0.35),
    inset 0 1px 0 rgba(255,220,120,0.12);
}
/* thin gold inner frame */
.simple-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212,168,83,0.45);
  border-radius: 12px;
  pointer-events: none;
}
.sc-ganesha {
  height: 64px;
  width: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(212,168,83,0.7));
}
.sc-heading {
  font-family: var(--font-ml);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(212,168,83,0.35);
  margin: 2px 0 4px;
  line-height: 1.35;
}
html[lang="en"] .sc-heading { font-family: var(--font-title); }
.sc-heading::after {
  content: '';
  display: block;
  width: 72px;
  height: 2px;
  margin: 14px auto 26px;
  background: linear-gradient(90deg, transparent, #C9A24B, transparent);
}
.sc-couple {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.sc-role {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.sc-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light);
  text-shadow: 0 0 16px rgba(212,168,83,0.4);
  line-height: 1.3;
}
html[lang="en"] .sc-name { font-family: var(--font-title); }
.sc-rel   { font-size: 0.8rem; color: rgba(245,232,200,0.6); margin: 2px 0; }
.sc-parents { font-size: 0.95rem; color: var(--cream-dark); }
.sc-infinity {
  font-size: 1.7rem;
  color: var(--gold);
  font-weight: 700;
  align-self: center;
  text-shadow: 0 0 12px rgba(212,168,83,0.5);
}
.sc-block { margin-bottom: 24px; }
.sc-block-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
html[lang="en"] .sc-block-title { font-family: var(--font-en); font-style: italic; letter-spacing: 1px; }
/* Muhurtham: date/time (left) | venue (right) on desktop, stacked on mobile */
.sc-mh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 22px;
  max-width: 560px;
  margin: 4px auto 0;
}
.sc-mh-col:first-child {
  text-align: right;
  padding-right: 22px;
  border-right: 1px solid rgba(212,168,83,0.3);
}
.sc-mh-col:last-child { text-align: left; }
@media (max-width: 600px) {
  .sc-mh-grid { grid-template-columns: 1fr; gap: 4px; max-width: none; }
  .sc-mh-col:first-child {
    text-align: center;
    padding-right: 0;
    border-right: none;
    margin-bottom: 6px;
  }
  .sc-mh-col:last-child { text-align: center; }
}
.sc-date  { font-size: 1.08rem; font-weight: 600; color: var(--cream); }
.sc-time  { font-size: 1rem; color: var(--cream-dark); }
.sc-venue { font-size: 1.02rem; font-weight: 600; color: var(--gold-light); margin-top: 3px; }
.sc-venue-addr { font-size: 0.9rem; color: rgba(245,232,200,0.75); line-height: 1.45; margin-top: 2px; }
.sc-map {
  display: inline-block;
  margin-top: 7px;
  font-size: 0.85rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(212,168,83,0.4);
}
.sc-map:hover { color: var(--gold-light); }
.sc-invite {
  font-size: 0.98rem;
  color: var(--cream-dark);
  line-height: 1.85;
  font-style: italic;
  max-width: 480px;
  margin: 6px auto 26px;
}
.sc-cd-title {
  margin-top: 26px;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
}
html[lang="en"] .sc-cd-title { font-family: var(--font-en); font-style: italic; letter-spacing: 2px; }
.sc-countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 0;
  flex-wrap: wrap;
}
.sc-cd-unit {
  min-width: 62px;
  padding: 10px 6px;
  background: rgba(212,168,83,0.08);
  border: 1px solid rgba(212,168,83,0.28);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.sc-cd-num {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold-light);
  text-shadow: 0 0 16px rgba(212,168,83,0.45);
}
.sc-cd-lbl {
  font-size: 0.62rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(245,232,200,0.6);
}
@media (max-width: 480px) {
  .sc-countdown { gap: 8px; }
  .sc-cd-unit { min-width: 52px; padding: 8px 4px; }
  .sc-cd-num { font-size: 1.35rem; }
}
.sc-closing-wish { font-size: 1rem; color: var(--gold); font-weight: 600; }
.sc-hosts { font-size: 1.15rem; font-weight: 600; color: #ffffff; text-shadow: 0 0 12px rgba(255,255,255,0.25); margin-top: 4px; line-height: 1.5; }
html[lang="en"] .sc-hosts { font-family: var(--font-title); }

@media (max-width: 480px) {
  .simple-card { padding: 34px 20px 30px; }
  .sc-heading { font-size: 1.26rem; }
  .sc-heading::after { margin: 12px auto 22px; }
  .sc-couple { gap: 8px; }
  .sc-name { font-size: 1.12rem; }
  .sc-infinity { font-size: 1.4rem; }
  .sc-parents { font-size: 0.88rem; }
}
