/* ==========================================================================
   GANGANI FAMILY GANPATI INVITATION - ROYAL PALACE THEME
   5-COLOR PALETTE & ROYAL MAHAL ANIMATED UI/UX
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Noto+Serif+Devanagari:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&family=Rozha+One&family=Yatra+One&display=swap');

:root {
  --stone-dark: #24201C;
  /* Dark carved temple stone */

  --stone-medium: #40372F;
  /* Temple pillar / architecture */

  --stone-light: #756653;
  /* Highlighted stone */

  --lamp-glow: #F6B83F;
  /* Deepam flame glow */

  --balaji-red: #8B1E1E;
  /* Sacred red */

  --temple-black: #171513;
  /* Deep background */

  --ivory: #F4E8CF;
  /* Main light surface */

  --antique-gold: #B8892E;
  /* Main gold */

  --bright-gold: #E7B84B;
  /* Highlight gold */

  /* MAPPED DESIGN SYSTEM TOKENS */
  --bg-primary: var(--ivory);
  --maroon-primary: var(--balaji-red);
  --gold-primary: var(--antique-gold);
  --gold-accent: var(--bright-gold);
  --green-secondary: var(--stone-light);
  --text-main: var(--stone-dark);
  --footer-maroon: var(--temple-black);
  --marigold-orange: var(--lamp-glow);
  --gold-light: #FAF2E3;
  --cream-card: #EAE1D0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Serif Devanagari', 'Poppins', serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  width: 100%;
}

::selection {
  background-color: var(--gold-primary);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--maroon-primary), var(--gold-primary));
  border-radius: 4px;
}

/* Custom Royal Cursor */
@media (pointer: fine) {
  #cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px var(--gold-accent);
    transition: width 0.2s, height 0.2s;
  }

  #cursor-ring {
    position: fixed;
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(212, 167, 44, 0.65);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.25s, height 0.25s;
  }

  .hover-active #cursor-ring {
    width: 58px;
    height: 58px;
    background-color: rgba(107, 15, 26, 0.15);
    border-color: var(--maroon-primary);
  }
}

/* Typography Utility */
.font-yatra {
  font-family: 'Yatra One', 'Rozha One', serif;
}

.font-rozha {
  font-family: 'Rozha One', serif;
}

.font-devanagari {
  font-family: 'Noto Serif Devanagari', serif;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
}

/* Gradient Text Utilities */
.text-royal-maroon {
  color: var(--maroon-primary);
}

.text-royal-gold {
  background: linear-gradient(135deg, var(--balaji-red) 0%, var(--antique-gold) 50%, var(--balaji-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold-gradient {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--bright-gold) 50%, var(--antique-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   CURTAIN OVERLAY (DOOR OVERLAY) - REALISTIC 3D VELVET & SLEEK GOLD SEAL
   -------------------------------------------------------------------------- */
#door-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  pointer-events: auto;
  overflow: hidden;
  background: #0d0103;
  perspective: 1200px;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.velvet-curtain-panel {
  width: 50.2%;
  height: 100%;
  position: relative;
  background:
    linear-gradient(180deg, rgba(15, 2, 4, 0.95) 0%, rgba(107, 15, 26, 0.65) 30%, rgba(160, 24, 40, 0.5) 50%, rgba(107, 15, 26, 0.65) 70%, rgba(15, 1, 3, 0.98) 100%),
    repeating-linear-gradient(90deg,
      #1a0204 0px,
      #38060c 15px,
      #6b0f1a 30px,
      #8c1624 45px,
      #4e0a12 60px,
      #260306 75px,
      #120103 90px);
  box-shadow: inset 0 0 110px rgba(0, 0, 0, 0.95);
  transition: transform 1.4s cubic-bezier(0.25, 1, 0.35, 1), opacity 1.2s ease;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  z-index: 5;
}

.curtain-left {
  border-right: 2px solid var(--gold-primary);
  transform-origin: left center;
  box-shadow: inset -15px 0 35px rgba(0, 0, 0, 0.85);
}

.curtain-right {
  border-left: 2px solid var(--gold-primary);
  transform-origin: right center;
  box-shadow: inset 15px 0 35px rgba(0, 0, 0, 0.85);
}

/* 3D Realistic Parallax Curtain Opening Animation */
#door-overlay.doors-opened .curtain-left {
  transform: translateX(-105%) rotateY(-25deg);
  opacity: 0.1;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 1.2s ease;
}

#door-overlay.doors-opened .curtain-right {
  transform: translateX(105%) rotateY(25deg);
  opacity: 0.1;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 1.2s ease;
}

#door-overlay.doors-opened #door-center-card {
  transform: scale(0) rotate(180deg);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.6, -0.28, 0.735, 0.045), opacity 0.4s ease;
}

#door-overlay.doors-opened {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease 0.6s;
}

/* Central Royal Circular Medallion Center UI */
.circle-opening-ui {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9E1524 0%, #540B14 55%, #1F0205 100%);
  border: 3px solid var(--gold-primary);
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(240, 199, 94, 0.65),
    inset 0 0 18px rgba(240, 199, 94, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease, box-shadow 0.3s ease;
  z-index: 20;
  cursor: pointer;
}

@media (min-width: 640px) {
  .circle-opening-ui {
    width: 190px;
    height: 190px;
    padding: 0.75rem;
  }
}

.circle-opening-ui:hover {
  transform: scale(1.06);
  border-color: var(--gold-accent);
  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.95),
    0 0 45px rgba(240, 199, 94, 0.85),
    inset 0 0 24px rgba(240, 199, 94, 0.6);
}

.doors-opened #door-center-card {
  transform: scale(0.1) rotate(25deg);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.6, -0.28, 0.735, 0.045), opacity 0.5s ease;
}

/* --------------------------------------------------------------------------
   HERO SECTION - IVORY TO WARM GOLDEN GRADIENT WITH ROYAL MAHAL ARCHES & ELEPHANTS
   -------------------------------------------------------------------------- */
#hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  background: linear-gradient(180deg, var(--ivory) 0%, #E8D8BA 50%, var(--ivory) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Full Screen Cover Mandap Backdrop Image (Bottom to Top) */
.hero-mandap-backdrop {
  position: absolute;
  inset: 0;
  top: -15%;
  width: 100%;
  height: 130%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-mandap-backdrop img,
.hero-mandap-backdrop source {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Royal Pillars Left & Right */
.royal-pillar-left,
.royal-pillar-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  background: repeating-linear-gradient(180deg,
      rgba(212, 167, 44, 0.15) 0px,
      rgba(107, 15, 26, 0.15) 40px,
      rgba(212, 167, 44, 0.15) 80px);
  border-left: 2px dashed rgba(212, 167, 44, 0.4);
  border-right: 2px dashed rgba(212, 167, 44, 0.4);
  z-index: 5;
  pointer-events: none;
}

.royal-pillar-left {
  left: 8px;
}

.royal-pillar-right {
  right: 8px;
}

/* ANIMATED ROYAL ELEPHANTS FLANKING THE HERO SHRINE */
.hero-elephant-wrap {
  position: absolute;
  bottom: 0px;
  z-index: 15;
  width: 140px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(107, 15, 26, 0.35));
}

@media (min-width: 640px) {
  .hero-elephant-wrap {
    width: 220px;
  }
}

@media (min-width: 1024px) {
  .hero-elephant-wrap {
    width: 290px;
  }
}

.hero-elephant-left {
  left: 0px;
  animation: elephantBobLeft 4s ease-in-out infinite alternate;
}

.hero-elephant-right {
  right: 0px;
  animation: elephantBobRight 4s ease-in-out infinite alternate;
}

@keyframes elephantBobLeft {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-6px);
  }
}

@keyframes elephantBobRight {
  0% {
    transform: scaleX(-1) translateY(0);
  }

  100% {
    transform: scaleX(-1) translateY(-6px);
  }
}

/* Swinging Hanging Bells */
.royal-hanging-bell {
  position: absolute;
  top: 15px;
  z-index: 25;
  width: 42px;
  height: auto;
  transform-origin: top center;
  animation: bellSwing 3s ease-in-out infinite alternate;
  cursor: pointer;
  filter: drop-shadow(0 4px 8px rgba(107, 15, 26, 0.3));
  transition: transform 0.2s ease;
}

.royal-hanging-bell:hover {
  transform: scale(1.15) rotate(12deg);
}

.bell-pos-left {
  left: 80px;
}

.bell-pos-right {
  right: 80px;
  animation-delay: -1.5s;
}

@keyframes bellSwing {
  0% {
    transform: rotate(-7deg);
  }

  100% {
    transform: rotate(7deg);
  }
}

/* Hero Content Frame (PURE TRANSPARENT - FITS INSIDE MANDAP) */
.hero-royal-card {
  position: relative;
  z-index: 20;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0.5rem 0.25rem;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-royal-card {
    padding: 1.5rem 1rem;
  }
}

/* Ganesha Idol & Rotating Head Chakra Halo */
.ganesha-head-chakra {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  object-fit: contain;
  z-index: 1;
  opacity: 0.95;
  filter: drop-shadow(0 0 16px rgba(240, 199, 94, 0.85));
  animation: spinHeadChakra 24s linear infinite;
  pointer-events: none;
}

@media (min-width: 640px) {
  .ganesha-head-chakra {
    width: 360px;
    height: 360px;
  }
}

@keyframes spinHeadChakra {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   DEDICATED QUICK INFO & COUNTDOWN SECTION (ROYAL MAROON + GOLD)
   -------------------------------------------------------------------------- */
.quick-info-card {
  background: linear-gradient(145deg, var(--cream-card) 0%, #FFFDF7 50%, var(--ivory) 100%);
  border: 2.5px solid var(--gold-primary);
  border-radius: 2rem;
  padding: 2.25rem 1.25rem;
  box-shadow: 0 20px 50px rgba(107, 15, 26, 0.12), inset 0 0 30px rgba(212, 167, 44, 0.1);
  position: relative;
}

@media (min-width: 640px) {
  .quick-info-card {
    padding: 3rem 2.5rem;
  }
}

.quick-info-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(212, 167, 44, 0.5);
  border-radius: 1.6rem;
  pointer-events: none;
}

/* Premium 3D Countdown Box Cards */
.countdown-card {
  background: linear-gradient(135deg, var(--balaji-red) 0%, var(--temple-black) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 1.25rem;
  padding: 0.75rem 1.1rem;
  color: var(--gold-accent);
  box-shadow: 0 8px 20px rgba(107, 15, 26, 0.3), inset 0 2px 4px rgba(255, 240, 186, 0.2);
  min-width: 72px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 640px) {
  .countdown-card {
    min-width: 92px;
    padding: 1rem 1.4rem;
  }
}

.countdown-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(107, 15, 26, 0.4), inset 0 2px 6px rgba(255, 240, 186, 0.3);
}

/* Royal Action Buttons for Quick Info */
.btn-royal-action-maroon {
  background: linear-gradient(135deg, var(--balaji-red) 0%, var(--temple-black) 100%);
  border: 2px solid var(--gold-primary);
  color: #FFFDF7;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: 0 8px 22px rgba(107, 15, 26, 0.3);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.btn-royal-action-maroon:hover {
  background: linear-gradient(135deg, #A32424 0%, var(--balaji-red) 100%);
  border-color: var(--gold-accent);
  color: var(--gold-accent);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(107, 15, 26, 0.45);
}

.btn-royal-action-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--bright-gold) 50%, var(--antique-gold) 100%);
  border: 2px solid var(--gold-accent);
  color: var(--maroon-primary);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: 0 8px 22px rgba(212, 167, 44, 0.35);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.btn-royal-action-gold:hover {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF0BA 50%, #F0C75E 100%);
  border-color: #ffffff;
  color: #4A0A12;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(240, 199, 94, 0.5);
}


/* --------------------------------------------------------------------------
   MARQUEE DEVOTIONAL TICKER BANNER
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   MARQUEE DEVOTIONAL TICKER BANNER
   -------------------------------------------------------------------------- */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, var(--temple-black) 0%, var(--balaji-red) 25%, #A32424 50%, var(--balaji-red) 75%, var(--temple-black) 100%);
  border-top: 4px solid var(--gold-accent);
  border-bottom: 4px solid var(--gold-accent);
  padding: 22px 0;
  box-shadow: 0 15px 40px rgba(74, 10, 18, 0.6), inset 0 0 35px rgba(240, 199, 94, 0.35);
  position: relative;
  z-index: 40;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.animate-spin-slow {
  animation: spinSlow 14s linear infinite;
}

@keyframes spinSlow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.marquee-track-ltr {
  display: flex;
  width: max-content;
  animation: marqueeScrollLTR 24s linear infinite;
  white-space: nowrap;
}

.marquee-track-ltr:hover {
  animation-play-state: paused;
}

@keyframes marqueeScrollLTR {
  0% {
    transform: translateX(-33.333%);
  }

  100% {
    transform: translateX(0%);
  }
}

.marquee-ganesha-container {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, var(--temple-black) 0%, var(--stone-medium) 30%, #540B14 50%, var(--stone-medium) 70%, var(--temple-black) 100%);
  border-top: 2px solid var(--gold-primary);
  border-bottom: 4px solid var(--gold-accent);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(240, 199, 94, 0.25);
  position: relative;
  z-index: 35;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

/* --------------------------------------------------------------------------
   BENTO GRID EVENT CARDS
   -------------------------------------------------------------------------- */
.award-event-card {
  position: relative;
  background: linear-gradient(135deg, #FFFFFF 0%, #FDF8ED 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 1.5rem;
  padding: 1.75rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(107, 15, 26, 0.08), inset 0 0 20px rgba(212, 167, 44, 0.06);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.award-event-card::before {
  content: "✦";
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 10px;
  color: var(--gold-primary);
  opacity: 0.6;
}

.award-event-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-accent);
  box-shadow: 0 20px 40px rgba(107, 15, 26, 0.16), 0 0 25px rgba(240, 199, 94, 0.35);
}

.card-svg-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--balaji-red) 0%, var(--temple-black) 100%);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--gold-accent);
  box-shadow: 0 6px 16px rgba(107, 15, 26, 0.25), inset 0 0 10px rgba(240, 199, 94, 0.2);
  transition: transform 0.3s ease;
}

/* --------------------------------------------------------------------------
   INTERACTIVE DIVINE SCRATCH & REVEAL CARD
   -------------------------------------------------------------------------- */
.scratch-card-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  transition: opacity 0.5s ease;
  border-radius: 1.4rem;
}

.scratch-revealed-card {
  box-shadow: inset 0 0 25px rgba(212, 167, 44, 0.15);
}

/* --------------------------------------------------------------------------
   PREMIUM STEP-WISE TIMELINE
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   PREMIUM STEP-WISE TIMELINE WITH SCROLL REVEAL & 4 UNIQUE BORDERS
   -------------------------------------------------------------------------- */
.timeline-container {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 0;
  box-sizing: border-box;
}

.timeline-central-stem {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 5px;
  background: rgba(212, 167, 44, 0.25);
  transform: translateX(-50%);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(212, 167, 44, 0.3);
}

.timeline-stem-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--balaji-red) 0%, var(--antique-gold) 50%, var(--bright-gold) 100%);
  height: 0%;
  border-radius: 999px;
  transition: height 0.3s ease-out;
  box-shadow: 0 0 12px #F0C75E;
}

@media (max-width: 768px) {
  .timeline-container {
    padding: 1.5rem 0;
    overflow-x: hidden;
  }

  .timeline-central-stem {
    left: 20px;
  }
}

.timeline-step-row {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 3.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .timeline-step-row {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 48px;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .timeline-step-row {
    padding-left: 40px;
  }
}

/* Node Center Circle */
.timeline-center-node {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0) scale(0.4);
  opacity: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--balaji-red) 0%, var(--temple-black) 100%);
  border: 3px solid #D4A72C;
  box-shadow: 0 0 20px rgba(212, 167, 44, 0.6), inset 0 0 10px rgba(240, 199, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F0C75E;
  font-family: 'Yatra One', serif;
  font-size: 1.25rem;
  z-index: 20;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease, box-shadow 0.5s ease;
}

.timeline-step-row.is-revealed .timeline-center-node {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}

.node-highlight {
  background: linear-gradient(135deg, var(--antique-gold) 0%, var(--balaji-red) 100%) !important;
  border-color: #FFF0BA !important;
  animation: nodeGlowPulse 2.5s infinite alternate;
}

@keyframes nodeGlowPulse {
  0% { box-shadow: 0 0 15px rgba(240, 199, 94, 0.6); }
  100% { box-shadow: 0 0 30px rgba(240, 199, 94, 0.95), 0 0 45px rgba(107, 15, 26, 0.6); }
}

@media (max-width: 768px) {
  .timeline-center-node {
    left: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .timeline-center-node {
    left: 18px;
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
}

/* Base Timeline Card with Scalloped Concave Scoop Corners & Uniform Warm Gold Surface */
.timeline-modern-card {
  position: relative;
  width: calc(50% - 48px);
  padding: 1.45rem 1.6rem;
  background: linear-gradient(135deg, #F9E8C7 0%, #F2CF8D 50%, #F7E2BA 100%);
  background-size: 200% 200%;
  animation: animatedWarmBg 7s ease-in-out infinite;
  border: 2px solid #C4952D;
  box-shadow: 0 14px 35px rgba(107, 15, 26, 0.12), inset 0 0 20px rgba(212, 167, 44, 0.18);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform, opacity;
  box-sizing: border-box;

  /* Scalloped Concave Corner Mask matching reference image */
  mask: radial-gradient(circle 14px at 0 0, #0000 98%, #000) 0 0,
        radial-gradient(circle 14px at 100% 0, #0000 98%, #000) 100% 0,
        radial-gradient(circle 14px at 0 100%, #0000 98%, #000) 0 100%,
        radial-gradient(circle 14px at 100% 100%, #0000 98%, #000) 100% 100%;
  -webkit-mask: radial-gradient(circle 14px at 0 0, #0000 98%, #000) 0 0,
                radial-gradient(circle 14px at 100% 0, #0000 98%, #000) 100% 0,
                radial-gradient(circle 14px at 0 100%, #0000 98%, #000) 0 100%,
                radial-gradient(circle 14px at 100% 100%, #0000 98%, #000) 100% 100%;
  mask-size: 51% 51%;
  -webkit-mask-size: 51% 51%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  border-radius: 12px;
}

@keyframes animatedWarmBg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
  .timeline-modern-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 1.1rem 1rem !important;
    gap: 0.9rem !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .timeline-modern-card {
    padding: 0.9rem 0.75rem !important;
    gap: 0.75rem !important;
  }
}

/* Scroll reveal left / right initial state */
.left-step .timeline-modern-card {
  margin-right: auto;
  transform: translate3d(-70px, 0, 0) scale(0.94);
}

.right-step .timeline-modern-card {
  margin-left: auto;
  transform: translate3d(70px, 0, 0) scale(0.94);
}

@media (max-width: 768px) {
  .left-step .timeline-modern-card,
  .right-step .timeline-modern-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: translate3d(0, 35px, 0) scale(0.95);
  }
}

/* Revealed state on scroll */
.timeline-step-row.is-revealed .timeline-modern-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.timeline-modern-card:hover {
  transform: translateY(-6px) scale(1.015) !important;
  box-shadow: 0 22px 45px rgba(107, 15, 26, 0.22), 0 0 25px rgba(212, 167, 44, 0.45) !important;
}

/* Golden Underline Stroke under title */
.timeline-gold-underline {
  height: 2.5px;
  width: 48px;
  background: linear-gradient(90deg, var(--balaji-red) 0%, var(--antique-gold) 70%, transparent 100%);
  border-radius: 999px;
  margin: 0.4rem 0 0.5rem 0;
}

/* Corner Filigree Ornaments */
.timeline-corner-ornament {
  position: absolute;
  font-size: 0.85rem;
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-modern-card:hover .timeline-corner-ornament {
  opacity: 1;
  transform: scale(1.25);
}

.timeline-corner-ornament.top-left { top: 12px; left: 16px; }
.timeline-corner-ornament.top-right { top: 12px; right: 16px; }
.timeline-corner-ornament.bottom-left { bottom: 12px; left: 16px; }
.timeline-corner-ornament.bottom-right { bottom: 12px; right: 16px; }

/* --------------------------------------------------------------------------
   UNIFORM ROYAL GOLDEN CHAMPAGNE CARD STYLING FOR ALL 4 STEPS
   -------------------------------------------------------------------------- */

.timeline-card-sthapana,
.timeline-card-aarti,
.timeline-card-mahaprasad,
.timeline-card-visarjan {
  background: linear-gradient(135deg, #F9E8C7 0%, #F2CF8D 50%, #F7E2BA 100%);
  background-size: 200% 200%;
  animation: animatedWarmBg 7s ease-in-out infinite;
  border: 2px solid #C4952D;
  box-shadow: 0 14px 35px rgba(107, 15, 26, 0.12), inset 0 0 20px rgba(212, 167, 44, 0.18);
}

/* Warm Light Gold Gradient Image Thumbnail Frame */
.timeline-thumb-wrapper {
  width: 110px;
  height: 110px;
  min-width: 110px;
  border-radius: 1.15rem;
  padding: 5px;
  background: linear-gradient(135deg, #FFF0D0 0%, #E8C888 100%);
  border: 2px solid #B8851B;
  box-shadow: inset 0 0 14px rgba(184, 133, 27, 0.3), 0 6px 16px rgba(107, 15, 26, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .timeline-thumb-wrapper {
    width: 85px !important;
    height: 85px !important;
    min-width: 85px !important;
    border-radius: 0.95rem !important;
    padding: 4px !important;
  }
}

@media (max-width: 480px) {
  .timeline-thumb-wrapper {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    border-radius: 0.85rem !important;
    padding: 3px !important;
  }
}

.timeline-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.85rem;
  transition: transform 0.5s ease;
}

.timeline-modern-card:hover .timeline-thumb-img {
  transform: scale(1.15) rotate(1deg);
}

.timeline-modern-card:hover .timeline-thumb-img {
  transform: scale(1.15) rotate(1deg);
}

/* --------------------------------------------------------------------------
   PREVIOUS YEAR GANPATI GALLERY - WAVE MARQUEE CAROUSEL (2015-2025)
   -------------------------------------------------------------------------- */
.gallery-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2.5rem 0 3.5rem 0;
}

.gallery-marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: galleryScrollRightToLeft 36s linear infinite;
  will-change: transform;
  align-items: center;
}

.gallery-marquee-track:hover {
  animation-play-state: paused;
}

.gallery-card-item {
  width: clamp(180px, 24vw, 270px);
  height: clamp(230px, 28vw, 320px);
  border-radius: 1.6rem;
  overflow: hidden;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 14px 35px rgba(107, 15, 26, 0.22), inset 0 0 15px rgba(231, 184, 75, 0.25);
  flex-shrink: 0;
  cursor: pointer;
  background-color: var(--maroon-primary);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.4s ease;
}

/* Metallic Light-Sweep Shine Effect on Hover */
.gallery-card-item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: transform 0.8s ease;
  pointer-events: none;
  z-index: 5;
}

.gallery-card-item:hover::after {
  transform: translate(300%, 0) rotate(30deg);
}

/* Wave trajectory for visual rhythm */
.gallery-card-item:nth-child(6n+1) {
  transform: translateY(14px) rotate(-1.5deg);
}

.gallery-card-item:nth-child(6n+2) {
  transform: translateY(28px) rotate(-0.5deg);
}

.gallery-card-item:nth-child(6n+3) {
  transform: translateY(40px) rotate(0.5deg);
}

.gallery-card-item:nth-child(6n+4) {
  transform: translateY(20px) rotate(1.5deg);
}

.gallery-card-item:nth-child(6n+5) {
  transform: translateY(-10px) rotate(0deg);
}

.gallery-card-item:nth-child(6n+6) {
  transform: translateY(-26px) rotate(-1deg);
}

.gallery-card-item:hover {
  transform: translateY(-22px) scale(1.09) rotate(0deg) !important;
  border-color: var(--gold-accent);
  box-shadow: 0 28px 55px rgba(107, 15, 26, 0.45), 0 0 30px rgba(240, 199, 94, 0.7);
}

.gallery-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.gallery-year-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(107, 15, 26, 0.95), rgba(64, 55, 47, 0.95));
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-accent);
  font-family: 'Yatra One', serif;
  font-size: 0.9rem;
  padding: 4px 16px;
  border-radius: 9999px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.05em;
  z-index: 6;
}

.gallery-year-badge.latest-badge {
  background: linear-gradient(135deg, #801220, #B8892E);
  color: #FFFDF8;
  border-color: #FAF2E3;
  box-shadow: 0 0 15px rgba(246, 184, 63, 0.8);
}

@keyframes galleryScrollRightToLeft {
  0% {
    transform: translateX(0);
  }

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

/* --------------------------------------------------------------------------
   RSVP SECTION - DEEP MAROON #6B0F1A THEME
   -------------------------------------------------------------------------- */
#rsvp {
  background-color: var(--maroon-primary);
  color: var(--bg-primary);
  position: relative;
}

.rsvp-card-box {
  background: linear-gradient(145deg, var(--balaji-red) 0%, var(--temple-black) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(212, 167, 44, 0.2);
}

/* --------------------------------------------------------------------------
   BUTTONS & ACCENTS
   -------------------------------------------------------------------------- */
.btn-maroon-primary {
  background: var(--maroon-primary);
  border: 2px solid var(--gold-primary);
  color: var(--bg-primary);
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 6px 20px rgba(107, 15, 26, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-maroon-primary:hover {
  background: #801220;
  border-color: var(--gold-accent);
  color: #ffffff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 25px rgba(107, 15, 26, 0.35);
}

.btn-gold-royal {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--bright-gold) 50%, var(--antique-gold) 100%);
  color: var(--maroon-primary);
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 8px 20px rgba(212, 167, 44, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-gold-royal:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 30px rgba(240, 199, 94, 0.5);
  color: #3b060d;
}

/* --------------------------------------------------------------------------
   PREMIUM ROYAL CONTACT & LOCATION BANNER
   -------------------------------------------------------------------------- */
.contact-location-banner {
  position: relative;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF7 50%, #FDF4E3 100%);
  border-top: 3px solid var(--gold-primary);
  border-bottom: 3px solid var(--gold-primary);
  box-shadow: 0 20px 45px rgba(107, 15, 26, 0.1), inset 0 0 30px rgba(212, 167, 44, 0.08);
}

.contact-card-premium {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(212, 167, 44, 0.5);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(107, 15, 26, 0.06), inset 0 0 15px rgba(212, 167, 44, 0.04);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-card-premium:hover {
  transform: translateY(-4px);
  border-color: var(--gold-accent);
  box-shadow: 0 18px 40px rgba(107, 15, 26, 0.14), 0 0 20px rgba(240, 199, 94, 0.25);
}

.contact-icon-animated {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--balaji-red) 0%, var(--temple-black) 100%);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-accent);
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(107, 15, 26, 0.25);
}

.celebrate-elephant-img {
  animation: gentleElephantSway 6s ease-in-out infinite alternate;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.celebrate-elephant-img:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 10px 20px rgba(107, 15, 26, 0.3));
}

@keyframes gentleElephantSway {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(1.5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* --------------------------------------------------------------------------
   PREMIUM ROYAL RSVP BANNER WITH JOINUS ARTWORK
   -------------------------------------------------------------------------- */
.rsvp-luxury-banner {
  position: relative;
  background: linear-gradient(135deg, var(--temple-black) 0%, var(--balaji-red) 50%, var(--temple-black) 100%);
  border-top: 3px solid var(--gold-primary);
  border-bottom: 3px solid var(--gold-primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 35px rgba(240, 199, 94, 0.12);
  color: var(--gold-accent);
}

.rsvp-pill-input {
  background: #FFFDF7;
  color: #38060C;
  border: 2px solid var(--gold-primary);
  border-radius: 9999px;
  padding: 0.85rem 1.35rem 0.85rem 3.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  width: 100%;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.rsvp-pill-input:focus {
  outline: none;
  border-color: var(--gold-accent);
  box-shadow: 0 0 15px rgba(240, 199, 94, 0.5), inset 0 2px 6px rgba(0, 0, 0, 0.08);
  background: #FFFFFF;
}

.rsvp-pill-input::placeholder {
  color: #8C6A5E;
  font-weight: 500;
}

.rsvp-pill-wrapper {
  position: relative;
  width: 100%;
}

.rsvp-pill-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--maroon-primary);
  font-size: 1.05rem;
  pointer-events: none;
  z-index: 10;
}

.rsvp-send-pill-btn {
  background: linear-gradient(135deg, var(--balaji-red) 0%, var(--temple-black) 100%);
  color: var(--gold-accent);
  border: 2px solid var(--gold-primary);
  border-radius: 9999px;
  padding: 0.95rem 2rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(240, 199, 94, 0.2);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
}

.rsvp-send-pill-btn:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--gold-accent);
  box-shadow: 0 14px 35px rgba(240, 199, 94, 0.45);
  background: linear-gradient(135deg, #801220 0%, #4A0A12 100%);
}

.joinus-artwork-img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

.joinus-artwork-img:hover {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 10px 25px rgba(240, 199, 94, 0.4));
}

/* --------------------------------------------------------------------------
   PREMIUM ANIMATED CLOSING VISARJAN BENEDICTION SECTION
   -------------------------------------------------------------------------- */
.closing-section-banner {
  position: relative;
  background-image: linear-gradient(180deg, rgba(244, 232, 207, 0.35) 0%, rgba(255, 253, 248, 0.20) 50%, rgba(244, 232, 207, 0.35) 100%), url('./images/temple.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding-top: 3rem;
  padding-bottom: 3rem;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.25);
}

.closing-card-container {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 253, 245, 0.78) 50%, rgba(254, 246, 232, 0.82) 100%);
  border: 2.5px solid var(--gold-primary);
  border-radius: 2.5rem;
  padding: 3rem 1.75rem;
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(240, 199, 94, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  outline: 1.5px dashed rgba(212, 167, 44, 0.5);
  outline-offset: -10px;
}

.spin-slow {
  animation: spinChakraSlow 25s linear infinite;
  transform-origin: center center;
}

.spin-reverse-slow {
  animation: spinChakraReverse 32s linear infinite;
  transform-origin: center center;
}

@keyframes spinChakraSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinChakraReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.pulse-flame {
  animation: pulseFlameGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseFlameGlow {
  0% {
    transform: scale(0.96);
    filter: drop-shadow(0 0 6px rgba(240, 199, 94, 0.7));
  }
  100% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 20px rgba(240, 199, 94, 0.98)) drop-shadow(0 0 10px rgba(107, 15, 26, 0.4));
  }
}

/* --------------------------------------------------------------------------
   FOOTER SECTION - DARK MAROON #4A0A12
   -------------------------------------------------------------------------- */
footer {
  background-color: var(--footer-maroon);
  color: var(--bg-primary);
  border-top: 2px solid var(--gold-primary);
}

/* Toast Notifications (Small Bottom Rectangle Box) */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, var(--balaji-red) 0%, var(--temple-black) 100%);
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-accent);
  padding: 10px 22px;
  border-radius: 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  text-align: center;
  max-width: 90vw;
}

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

/* Canvas Floating Flowers & Leaves */
#petal-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* --------------------------------------------------------------------------
   FAMILY MEMBERS PREMIUM SECTION (LARGE RECTANGULAR / ARCHED PORTRAITS)
   -------------------------------------------------------------------------- */
.family-member-card {
  position: relative;
  background: linear-gradient(165deg, #FFFDF7 0%, #FFF8EB 50%, #FFF3DE 100%);
  border: 2.5px solid var(--gold-primary);
  border-radius: 2rem;
  padding: 1.15rem 1.15rem 1.6rem;
  text-align: center;
  box-shadow: 0 16px 40px rgba(139, 30, 30, 0.1), inset 0 0 25px rgba(184, 137, 46, 0.08);
  transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.family-member-card::before {
  content: "✦";
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 11px;
  color: var(--gold-primary);
  opacity: 0.7;
  z-index: 10;
}

.family-member-card::after {
  content: "✦";
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 11px;
  color: var(--gold-primary);
  opacity: 0.7;
  z-index: 10;
}

.family-member-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--gold-accent);
  box-shadow: 0 26px 50px rgba(139, 30, 30, 0.2), 0 0 35px rgba(231, 184, 75, 0.45);
}

/* Large Arched Royal Portrait Container (3:4 Aspect Ratio, Non-Circle) */
.family-portrait-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 3rem 3rem 1.2rem 1.2rem;
  overflow: hidden;
  border: 3.5px solid var(--gold-primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), inset 0 0 20px rgba(184, 137, 46, 0.25);
  margin-bottom: 1.15rem;
  background-color: var(--temple-black);
  cursor: pointer;
}

.family-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: inherit;
  filter: brightness(1.02) contrast(1.03);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
}

.family-member-card:hover .family-portrait-img {
  transform: scale(1.07);
  filter: brightness(1.07) contrast(1.05);
}

/* Click to View Zoom Hint Overlay on Hover */
.family-zoom-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, var(--balaji-red) 0%, var(--temple-black) 100%);
  border: 1.5px solid var(--gold-accent);
  color: var(--gold-accent);
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.family-member-card:hover .family-zoom-hint {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Subtle Golden Shimmer Bottom Overlay */
.family-portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(23, 21, 19, 0.7) 100%);
  pointer-events: none;
  z-index: 2;
}

.family-crown-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--balaji-red) 0%, var(--temple-black) 100%);
  border: 2px solid var(--gold-accent);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 10px rgba(231, 184, 75, 0.5);
  z-index: 5;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.family-member-card:hover .family-crown-badge {
  transform: scale(1.18) rotate(12deg);
  border-color: #ffffff;
  color: #ffffff;
}

/* Family Member Names & Badges */
.family-member-name {
  font-family: 'Yatra One', 'Rozha One', serif;
  font-size: 1.35rem;
  color: var(--maroon-primary);
  margin-bottom: 0.35rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

@media (min-width: 640px) {
  .family-member-name {
    font-size: 1.5rem;
  }
}

.family-role-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(139, 30, 30, 0.12) 0%, rgba(184, 137, 46, 0.15) 100%);
  border: 1.5px solid rgba(184, 137, 46, 0.6);
  color: var(--maroon-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.family-gold-underline {
  height: 2px;
  width: 70px;
  margin: 0.4rem auto 0.75rem;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  position: relative;
}

.family-gold-underline::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  color: var(--gold-primary);
  background: #FFF8EB;
  padding: 0 5px;
/* --------------------------------------------------------------------------
   FAMILY MEMBERS PREMIUM SECTION (3:4 ARCHED PORTRAITS & ROYAL GOLD CARDS)
   -------------------------------------------------------------------------- */
.family-member-card {
  position: relative;
  background: linear-gradient(165deg, #FFFDF7 0%, #FFF8EB 50%, #FFF3DE 100%);
  border: 2.5px solid var(--gold-primary);
  border-radius: 2rem;
  padding: 1.25rem 1.25rem 1.6rem;
  text-align: center;
  box-shadow: 0 16px 40px rgba(139, 30, 30, 0.1), inset 0 0 25px rgba(184, 137, 46, 0.08);
  transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.family-member-card::before {
  content: "✦";
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 11px;
  color: var(--gold-primary);
  opacity: 0.7;
  z-index: 10;
}

.family-member-card::after {
  content: "✦";
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 11px;
  color: var(--gold-primary);
  opacity: 0.7;
  z-index: 10;
}

.family-member-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--gold-accent);
  box-shadow: 0 26px 50px rgba(139, 30, 30, 0.2), 0 0 35px rgba(231, 184, 75, 0.45);
}

/* Large Arched Royal Portrait Container (3:4 Aspect Ratio, Non-Circle) */
.family-portrait-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 2.5rem 2.5rem 1.2rem 1.2rem;
  overflow: hidden;
  border: 3.5px solid var(--gold-primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), inset 0 0 20px rgba(184, 137, 46, 0.25);
  margin-bottom: 1.15rem;
  background-color: var(--temple-black);
  cursor: pointer;
}

.family-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: inherit;
  filter: brightness(1.02) contrast(1.03);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
}

.family-member-card:hover .family-portrait-img {
  transform: scale(1.07);
  filter: brightness(1.07) contrast(1.05);
}

/* Click to View Zoom Hint Overlay on Hover */
.family-zoom-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, var(--balaji-red) 0%, var(--temple-black) 100%);
  border: 1.5px solid var(--gold-accent);
  color: var(--gold-accent);
  padding: 5px 16px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.family-member-card:hover .family-zoom-hint {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Subtle Golden Shimmer Bottom Overlay */
.family-portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(23, 21, 19, 0.7) 100%);
  pointer-events: none;
  z-index: 2;
}

.family-crown-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--balaji-red) 0%, var(--temple-black) 100%);
  border: 2px solid var(--gold-accent);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 10px rgba(231, 184, 75, 0.5);
  z-index: 5;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.family-member-card:hover .family-crown-badge {
  transform: scale(1.18) rotate(12deg);
  border-color: #ffffff;
  color: #ffffff;
}

/* Family Member Names & Badges */
.family-member-name {
  font-family: 'Yatra One', 'Rozha One', serif;
  font-size: 1.35rem;
  color: var(--maroon-primary);
  margin-bottom: 0.35rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

@media (min-width: 640px) {
  .family-member-name {
    font-size: 1.5rem;
  }
}

.family-role-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(139, 30, 30, 0.12) 0%, rgba(184, 137, 46, 0.15) 100%);
  border: 1.5px solid rgba(184, 137, 46, 0.6);
  color: var(--maroon-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.family-gold-underline {
  height: 2px;
  width: 70px;
  margin: 0.4rem auto 0.75rem;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  position: relative;
}

.family-gold-underline::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  color: var(--gold-primary);
  background: #FFF8EB;
  padding: 0 5px;
}

/* --------------------------------------------------------------------------
   FAMILY MEMBER LIGHTBOX / MODAL POPUP (WITH NEXT/PREV ARROWS & 3:4 PORTRAIT)
   -------------------------------------------------------------------------- */
.family-modal-card {
  background: linear-gradient(165deg, #FFFDF7 0%, #FFF8EB 50%, #FFF3DE 100%);
  border: 3px solid var(--gold-primary);
  border-radius: 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 45px rgba(231, 184, 75, 0.4);
  max-width: 460px;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: modalPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.family-modal-img-container {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 480px;
  overflow: hidden;
  position: relative;
  border-bottom: 3px solid var(--gold-primary);
  background-color: var(--temple-black);
}

.family-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.4s ease;
}

.family-nav-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--balaji-red) 0%, var(--temple-black) 100%);
  border: 2px solid var(--gold-accent);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  z-index: 50;
}

.family-nav-arrow:hover {
  transform: scale(1.12);
  background: linear-gradient(135deg, #A32424 0%, var(--balaji-red) 100%);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(231, 184, 75, 0.5);
}