

:root {
  --primary-gold: #d4af37;
  --light-gold: #f3e5ab;
  --deep-maroon: #58181f;
  --bg-ivory: #fffdf9;
  --text-dark: #2c2c2c;
  --text-muted: #555555;
  --white: #ffffff;
  --card-bg: #fff5ee;
}

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

body {
  font-family: "Lato", sans-serif;
  background-color: var(--bg-ivory);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* =====================================================================
   STEP-BY-STEP PEARL ENVELOPE + SEAL + ROYAL BURGUNDY & GOLD RIBBON BOW
   ===================================================================== */
.preloader-overlay {
  --pearl-light: #fcf8f0;
  --pearl-mid: #f3e8d4;
  --royal-burgundy: #5e111d;
  --royal-burgundy-deep: #37060e;
  --royal-burgundy-sheen: #8d1c2e;
  --gold: #d4af37;
  --gold-bright: #f5df94;
  --ink-deep: #5c4938;
  --ink-soft: #856d57;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 249, 232, 0.96) 0%, #efe3cc 65%, #e3d3b5 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.9s ease;
}

.preloader-overlay.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-overlay.is-playing .pearl-flap-top,
.preloader-overlay.is-playing .pearl-flap-left,
.preloader-overlay.is-playing .pearl-flap-right,
.preloader-overlay.is-playing .pearl-seal-badge,
.preloader-overlay.is-playing .royal-bow-knot,
.preloader-overlay.is-playing .royal-ribbon-band,
.preloader-overlay.is-playing .pearl-card-sheet {
  will-change: transform, opacity;
}

.pearl-stage-frame {
  position: relative;
  width: min(430px, 88vw);
  height: min(690px, 84vh);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 26px 65px rgba(72, 54, 38, 0.28),
    0 0 0 1px rgba(212, 175, 55, 0.45);
  background: linear-gradient(180deg, #fbf6eb 0%, #f2e6cf 100%);
}

/* Inner Ornate Pearl Card Sheet with Wedding Details */
.pearl-card-sheet {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 26px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.85), rgba(246, 235, 213, 0.72)),
    repeating-radial-gradient(circle at 12% 12%, rgba(226, 208, 173, 0.28) 0 14px, transparent 14px 36px),
    repeating-radial-gradient(circle at 88% 88%, rgba(226, 208, 173, 0.28) 0 14px, transparent 14px 36px);
}

.pearl-card-arch {
  width: 100%;
  height: 100%;
  border-radius: 140px 140px 18px 18px;
  border: 1.5px solid rgba(201, 169, 98, 0.65);
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

.pearl-card-family {
  font-family: 'Playfair Display', serif;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.pearl-card-couple {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  color: var(--ink-deep);
  line-height: 1.05;
  margin: 0;
  font-weight: 400;
}

.pearl-card-amp {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 4px 0;
}

.pearl-card-date {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--ink-deep);
  margin: 18px 0 6px;
}

.pearl-card-venue {
  font-family: 'Cinzel', serif;
  font-size: 0.76rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

/* Textured Pearl Envelope Flaps */
.pearl-flap-left,
.pearl-flap-right,
.pearl-flap-top {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background:
    linear-gradient(155deg, #fffdf7 0%, #f5ebd6 48%, #e6d6b8 100%);
  box-shadow: inset 0 0 36px rgba(133, 109, 87, 0.16);
}

.pearl-flap-left {
  z-index: 2;
  transform-origin: left center;
  clip-path: polygon(0 0, 56% 50%, 0 100%);
  border-right: 1px solid rgba(212, 175, 55, 0.35);
}

.pearl-flap-right {
  z-index: 2;
  transform-origin: right center;
  clip-path: polygon(100% 0, 44% 50%, 100% 100%);
  border-left: 1px solid rgba(212, 175, 55, 0.35);
}

.pearl-flap-top {
  z-index: 3;
  transform-origin: center top;
  clip-path: polygon(0 0, 100% 0, 50% 42%);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.45);
}

/* Embossed Royal Seal */
.pearl-seal-badge {
  position: absolute;
  top: 19%;
  left: 50%;
  z-index: 4;
  width: 92px;
  height: 68px;
  margin-left: -46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 28%, #7d1727 0%, #4d0a14 68%, #2d040a 100%);
  border: 1.5px solid var(--gold-bright);
  box-shadow:
    0 10px 24px rgba(55, 6, 14, 0.34),
    inset 0 1px 4px rgba(255, 232, 163, 0.5);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: var(--gold-bright);
}

/* Royal Burgundy Velvet-Satin Ribbon with Gold Filigree Edge */
.royal-ribbon-band {
  position: absolute;
  top: 50%;
  left: -6%;
  right: -6%;
  height: 28px;
  margin-top: -14px;
  z-index: 5;
  background: linear-gradient(
    180deg,
    #3b060f 0%,
    #781525 22%,
    #a32237 50%,
    #6d1120 78%,
    #32050c 100%
  );
  border-top: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  box-shadow:
    0 8px 22px rgba(42, 4, 10, 0.35),
    0 0 16px rgba(212, 175, 55, 0.25);
}

/* Elegant Multi-Loop Royal Ribbon Bow */
.royal-bow-knot {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  width: 176px;
  height: 118px;
  margin: -59px 0 0 -88px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.royal-bow-tail {
  position: absolute;
  top: 52px;
  width: 28px;
  height: 70px;
  background: linear-gradient(180deg, #8c192c 0%, #580c18 65%, #34050d 100%);
  border-left: 1px solid rgba(245, 223, 148, 0.65);
  border-right: 1px solid rgba(245, 223, 148, 0.65);
  box-shadow: 0 8px 16px rgba(42, 4, 10, 0.32);
}

.royal-bow-tail--left {
  left: 48px;
  transform: rotate(24deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}

.royal-bow-tail--right {
  right: 48px;
  transform: rotate(-24deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}

.royal-bow-outer-loop {
  position: absolute;
  width: 82px;
  height: 62px;
  border-radius: 54% 46% 48% 52% / 64% 62% 38% 36%;
  background: radial-gradient(circle at 35% 28%, #b3263d 0%, #6e1120 58%, #38060e 100%);
  border: 1.5px solid var(--gold-bright);
  box-shadow:
    0 10px 20px rgba(42, 4, 10, 0.36),
    inset 0 2px 6px rgba(255, 232, 163, 0.35);
}

.royal-bow-outer-loop--left {
  left: 4px;
  transform: rotate(-20deg);
}

.royal-bow-outer-loop--right {
  right: 4px;
  transform: rotate(20deg);
}

.royal-bow-inner-loop {
  position: absolute;
  width: 56px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c7324a 0%, #7d1526 70%, #440812 100%);
  border: 1px solid rgba(245, 223, 148, 0.72);
  box-shadow: inset 0 1px 4px rgba(255, 240, 190, 0.35);
}

.royal-bow-inner-loop--left {
  left: 24px;
  transform: rotate(-10deg);
}

.royal-bow-inner-loop--right {
  right: 24px;
  transform: rotate(10deg);
}

.royal-bow-clasp {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fff4c2 0%, #d4af37 52%, #8a6206 100%);
  border: 1.5px solid #fff9e0;
  box-shadow: 0 6px 14px rgba(42, 4, 10, 0.42);
}

.royal-bow-clasp::after {
  content: "✦";
  font-size: 0.85rem;
  color: #460912;
}

/* Step-by-step Keyframes (transform + opacity only) */
.preloader-overlay.is-playing .pearl-seal-badge {
  animation: sealLiftFade 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.preloader-overlay.is-playing .pearl-flap-top {
  animation: topFlapLift 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

.preloader-overlay.is-playing .pearl-flap-left {
  animation: leftFlapOpen 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards;
}

.preloader-overlay.is-playing .pearl-flap-right {
  animation: rightFlapOpen 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards;
}

.preloader-overlay.is-playing .royal-bow-knot {
  animation: royalBowUntangle 2.05s cubic-bezier(0.25, 0.1, 0.25, 1) 1.45s forwards;
}

.preloader-overlay.is-playing .royal-ribbon-band {
  animation: royalRibbonUntangle 2.05s cubic-bezier(0.25, 0.1, 0.25, 1) 1.65s forwards;
}

@keyframes sealLiftFade {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(1.18) translateY(-22px);
    opacity: 0;
  }
}

@keyframes topFlapLift {
  0% {
    transform: perspective(1200px) rotateX(0deg);
    opacity: 1;
  }
  100% {
    transform: perspective(1200px) rotateX(110deg);
    opacity: 0;
  }
}

@keyframes leftFlapOpen {
  0% {
    transform: perspective(1200px) rotateY(0deg);
    opacity: 1;
  }
  100% {
    transform: perspective(1200px) rotateY(-95deg);
    opacity: 0;
  }
}

@keyframes rightFlapOpen {
  0% {
    transform: perspective(1200px) rotateY(0deg);
    opacity: 1;
  }
  100% {
    transform: perspective(1200px) rotateY(95deg);
    opacity: 0;
  }
}

@keyframes royalBowUntangle {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  45% {
    transform: scale(1.15) rotate(-7deg);
    opacity: 1;
  }
  80% {
    transform: scale(1.28) rotate(9deg);
    opacity: 0.94;
  }
  100% {
    transform: scale(1.36) rotate(14deg) translateY(-22px);
    opacity: 0;
  }
}

@keyframes royalRibbonUntangle {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }
  45% {
    transform: translate3d(0, -10px, 0) rotate(-1.5deg);
    opacity: 1;
  }
  82% {
    transform: translate3d(12%, 24px, 0) rotate(2deg);
    opacity: 0.94;
  }
  100% {
    transform: translate3d(110%, 60px, 0) rotate(3deg);
    opacity: 0;
  }
}

img {
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0);
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}

.subtitle {
  margin-bottom: 12px;
  margin-top: -5px;
  text-align: center;
}

/*  Force each line onto its own row  */
.subtitle-row {
  display: block;
  width: 100%;
  margin-bottom: 6px;
}

.invite-banner-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;

  border-radius: 20px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.5);
  backdrop-filter: blur(4px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.invite-banner-text {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
  
}

/*  Desktop default for Venue & Date  */
.venue-date-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.5);
  backdrop-filter: blur(4px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
  flex-wrap: nowrap;
}

.gold-gradient {
  background: linear-gradient(
    135deg,
    #bf953f 0%,
    #fcf6ba 25%,
    #b38728 50%,
    #fbf5b7 75%,
    #aa771c 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.mobile-break {
  display: none;
 
}



@media (max-width: 500px) {
  .invite-banner-box {
    padding: 8px 12px !important;
   
    max-width: 95vw;
  }

  .invite-banner-text {
    font-size: 0.78rem !important;
    letter-spacing: 0.45px !important;
    line-height: 1.3 !important;
  }

  .venue-date-badge {
    flex-direction: column !important;
    gap: 2px !important;
    padding: 7px 14px !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.2px !important;
    max-width: 95vw;
    line-height: 1.5;
  }

  html.lang-hi .venue-date-badge {
    gap: .5px !important;
  }

  .desktop-star {
    display: none;
  }

  .mobile-break {
    display: block;
  }

  .desktop-venue {
    display: none;
  }

  .mobile-venue {
    display: inline;
  }

  .mobile-date {
    display: block;
    margin-top: 2px;
  }
}

.cursive-name {
  font-family: "Great Vibes", cursive;
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 1.5;
  margin-top: 5px;
  margin-bottom: 10px;
  text-align: center;
  padding-right: 18px;

  /*  Light Champagne Gold Base with Pearl-Silver Light Beam  */
  background: linear-gradient(
    105deg,
    #f5e6b3 0%,
     #fbf3d5 25%,
     #ffffff 45%,
    #e3eaf5 55%,
   #fbf3d5 75%,
     #f5e6b3 100%
  );
  background-size: 230% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: goldSilverHarmonized 7.5s ease-in-out infinite;
  text-shadow:
    0 0 12px rgba(247, 231, 169, 0.45),
    0 0 28px rgba(224, 232, 245, 0.35),
    0 4px 22px rgba(0, 0, 0, 0.85);
}

@keyframes goldSilverHarmonized {
  0% {
    background-position: 180% center;
  }

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

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

@media (max-width: 480px) {
  
  .cursive-name {
    font-size: clamp(3.8rem) !important;
    white-space: nowrap;
    letter-spacing: -1.5px;

  
  }

   html.lang-hi .cursive-name {
        font-size: 2.8rem !important; 
        letter-spacing: 0px !important;
        word-break: keep-all !important;
        white-space: normal !important; 
    }

  
 
  
  .tagline {
    font-size: 16px !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
    color: #fef8faa7;
  }

  /*  Scaled-down Mantra Box Container  */
  .mantra-box {
    padding: 10px 14px;
    margin: 0 auto 20px;
    max-width: 90%;
  }

  /*  Sanskrit Sloka Text  */
  .mantra-box p.sanskrit {
    font-size: medium !important;
    line-height: 1.5;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
  }

  .mantra-box p:not(.sanskrit) {
    font-size: clamp(0.75rem, 2.8vw, 0.88rem);
    line-height: 1.35;
    opacity: 0.85;
  }
}

/*  LIGHTER TOP HEADER WITH HANGING BULBS  */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 8%;
  z-index: 1000;
  border-bottom: 1.5px solid var(--primary-gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.nav-fairy-lights {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 1001;
  padding: 0 5px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.25),
    transparent
  );
}

.fairy-light-dot {
  width: 5px;
  height: 5px;
  background: #fff9e6;
  border-radius: 50%;
  box-shadow: 0 0 6px #ffd700;
  animation: twinkleLight 1.2s ease-in-out infinite alternate;
}

.fairy-light-dot:nth-child(even) {
  animation-delay: 0.5s;
}

/*  Hanging Bulbs with Increased Size in Desktop Mode  */
.hanging-toran-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 28px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.hanging-string {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: swayString 3s ease-in-out infinite alternate;
  transform-origin: top center;
}

.string-line {
  width: 1.5px;
  height: 10px;
  background: linear-gradient(to bottom, var(--primary-gold), #fff);
}

.string-flower {
  width: 13px;
  height: 13px;
  background: radial-gradient(circle, #ffffff 0%, #ffea79 60%, #ffd700 100%);
  border-radius: 50%;
  box-shadow:
    0 0 10px rgba(255, 235, 128, 0.9),
    0 0 18px rgba(255, 215, 0, 0.6);
  animation: pulseBulb 2s ease-in-out infinite alternate;
}

@keyframes pulseBulb {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

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

@keyframes swayString {
  0% {
    transform: rotate(-3deg);
  }

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

.nav-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--deep-maroon);
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

/*  beating hearts */
@keyframes heartbeat {
  0% {
    transform: scale(1);
    color: #ffd700;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.6);
  }

  25% {
    transform: scale(1.3);
    color: #e3dddd;
    text-shadow:
      0 0 15px rgba(255, 255, 255, 0.95),
      0 0 25px rgba(255, 215, 0, 0.8);
  }

  40% {
    transform: scale(1.1);
    color: #f3e5ab;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
  }

  60% {
    transform: scale(1.35);
    color: #ffd700;
    text-shadow: 0 0 18px rgba(255, 215, 0, 0.95);
  }

  100% {
    transform: scale(1);
    color: #d4af37;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.6);
  }
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-gold);
}

/*  Beating Heart Animation  */
.beating-heart {
  display: inline-block;
  color: #f01b42;
  font-size: 1.5rem;
  animation: heartThump 1.4s ease-in-out infinite;
}

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

  14% {
    transform: scale(1.25);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.18);
  }
}

/*  Text Breathing / Pulsing Animation  */
.countdown-footer {
  font-weight: bold;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  color: #dfc88a;
 
  display: inline-block;
  transform-origin: center;
  animation: textPulseBreath 3s ease-in-out infinite;
}

@keyframes textPulseBreath {
  0%,
  100% {
    transform: scale(1);
    color: #706e6e8b;
  }

  50% {
    transform: scale(1.03);
  
    color: #fed622;
    
  }
}

.menu-toggle {
  display: none;
  background: linear-gradient(
    145deg,
    rgba(255, 253, 245, 0.9) 0%,
    rgba(255, 235, 170, 0.6) 50%,
    rgba(240, 220, 140, 0.8) 100%
  );
  border: 1.5px solid #d4af37;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 15px rgba(212, 175, 55, 0.3),
    inset 0 0 8px rgba(255, 255, 255, 0.9);
  transition:
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    background 0.3s ease;
  transform-origin: center center;
  position: relative;
  margin-top: 3px;
}

.menu-toggle::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.5),
    rgba(255, 255, 255, 0.8),
    rgba(212, 175, 55, 0.3)
  );
  z-index: -1;
  opacity: 0.7;
  filter: blur(1px);
}

.menu-toggle.rotated {
  transform: rotate(360deg) scale(1.08);
}

.menu-toggle:hover {
  box-shadow:
    0 8px 25px rgba(212, 175, 55, 0.5),
    inset 0 0 12px rgba(255, 255, 255, 1);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 240, 190, 0.8) 50%,
    rgba(230, 200, 110, 0.9) 100%
  );
}

/*  COMPACT HOME PAGE WITH INCREASED RIBBON SIZE IN DESKTOP MODE  */
header.hero {
  position: relative;
  min-height: 85vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 100px 10% 90px 10%;
  background-color: #280a0e;
}

/*  INCREASED FLOATING RIBBON SIZE IN DESKTOP MODE  */
.hero-bottom-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(88, 24, 31, 0.96),
    rgba(212, 175, 55, 0.92),
    rgba(88, 24, 31, 0.96)
  );
  padding: 3px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 10;
  overflow: hidden;
  border-top: 2px solid var(--primary-gold);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.65);
}

.ribbon-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  animation: smoothMaroonRibbon 12s linear infinite;
}

.floating-ribbon-text {
  font-family: "Great Vibes", cursive;
  font-size: 1.3rem; 
  color: #fff9db;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.95);
  letter-spacing: 1px;
  display: inline-block;
  padding-right: 50px;
}

/* 756px ya usse badi screens ke liye */
@media (min-width: 756px) {
  .floating-ribbon-text {
    font-size: 1.9rem !important;
    letter-spacing: 2px !important;
    padding-right: 80px;
  }
}

@keyframes smoothMaroonRibbon {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background-color: #f8f5ef;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover; /* default for screens wider than 480px */
  background-position: center 25%;
  background-repeat: no-repeat;
  opacity: 0;
  transition:
    opacity 2s ease-in-out,
    transform 8s ease-in-out;
  transform: scale(1);
}

.hero-bg.active {
  opacity: 1;
  transform: scale(1.04);
}
@media (max-width: 480px) {
  .hero {
    position: relative;
    min-height: auto !important;
    height: auto !important;
    /* Top padding clears the D&S navbar; bottom padding stays compact */
    padding: 72px 25px 24px !important;
    overflow: hidden;
  }

  /* Only adjust the top invitation pill, not icon spans */
  .hero > div:first-of-type,
  .hero-badge {
    font-size: 0.7rem !important;
    line-height: 1.35 !important;
    padding: 6px 12px !important;
    margin-bottom: 10px !important;
  }

  /* Keep the venue/date box compact without breaking inline sparkles */
  .hero h1,
  .hero h2,
  .hero p {
    margin-top: 6px;
    margin-bottom: 6px;
  }
  .hero .invite-banner-box {
  margin-top:32px;
  }

  .hero .hashtag {
   margin-bottom: 14px;
  }

  .hero-bg,
  .hero-bg.active {
    background-size: cover !important;
    background-position: 50% 25% !important; /* centers the couple better */
    transform: scale(1) !important;
  }
}
/*  TWINKLING STAR CRACKERS CANVAS  */
#crackerCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/*  Shared Gold & Silver Falling Petals Container  */
.petals-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.petal {
  position: absolute;
  border-radius: 150% 0 150% 0;
  animation: fallVerySlow linear infinite;
  opacity: 0.85;
}

@keyframes fallVerySlow {
  0% {
    transform: translateY(-50px) translateX(0) rotate(0deg);
    opacity: 0.95;
  }

  50% {
    transform: translateY(500px) translateX(45px) rotate(180deg);
    opacity: 0.9;
  }

  100% {
    transform: translateY(1100px) translateX(-45px) rotate(360deg);
    opacity: 0.8;
  }
}

/*  Ultra-Slow, Graceful Falling Petals  */
.petal-section-fall {
  position: absolute;
  border-radius: 150% 0 150% 0;
  animation: fallFullSection linear infinite;
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

/*  Very Slower Floating Golden Bubbles  */
.bubbles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.bubble {
  position: absolute;
  background: radial-gradient(
    circle at 30% 30%,
    rgb(225, 224, 224),
    rgba(255, 217, 0, 0.964) 60%,
    rgba(212, 175, 55, 0.921) 100%
  );
  border: 1px solid rgba(255, 240, 150, 0.6);
  border-radius: 50%;
  box-shadow:
    inset 0 0 10px rgb(186, 185, 185),
    0 0 12px rgba(255, 217, 0, 0.956);
  animation: floatBubbleSlow linear infinite;
  opacity: 0.7;
}

@keyframes floatBubbleSlow {
  0% {
    transform: translateY(110vh) scale(0.6);
    opacity: 0;
  }

  20% {
    opacity: 0.6;
  }

  80% {
    opacity: 0.9;
  }

  100% {
    transform: translateY(-10vh) scale(1.1) translateX(20px);
    opacity: 0;
  }
}

/*  Floating Magic Sparks  */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.floating-spark {
  position: absolute;
  background: #ffd700;
  border-radius: 50%;
  animation: floatUpSlow linear infinite;
  opacity: 0.6;
  box-shadow: 0 0 8px #ffd700;
}

@keyframes floatUpSlow {
  0% {
    transform: translateY(110vh) scale(0.5);
    opacity: 0;
  }

  50% {
    opacity: 0.9;
  }

  100% {
    transform: translateY(-10vh) scale(1.1);
    opacity: 0;
  }
}

.hero .subtitle,
.hero h1,
.hero .tagline,
.hero .mantra-box,
.hero .hashtag,
.hero .btn {
  z-index: 5;
  position: relative;
}

.hero-bg 
{
  top:45px;
}

.hero .subtitle {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--light-gold);
  font-weight: 700;
}

.hero .tagline {
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 400;
  margin-bottom: 24px;
  font-style: italic;
  color: #fef8fa;
}

@media (min-width: 992px) {
  header.hero {
    min-height: 92vh;
    padding: 110px 10% 120px 10% !important;
  }

  .cursive-name {
    font-size: clamp(4.8rem, 7.5vw, 7.5rem) !important;
    margin-bottom: 14px;
  }

  .mantra-box {
    max-width: 800px !important;
    padding: 20px 32px !important;
    margin-bottom: 20px !important;
  }

  .mantra-box p.sanskrit {
    font-size: 1.4rem !important;
  }

  .mantra-box p:last-child {
    font-size: 1.05rem !important;
  }

  .hashtag {
    font-size: 1.25rem !important;
    letter-spacing: 3px !important;
    margin-bottom: 20px !important;
  }

  .hero .btn {
    padding: 14px 40px !important;
    font-size: 0.95rem !important;
    letter-spacing: 2.5px !important;
    margin-bottom: 25px !important;
  }
}

.mantra-box {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--primary-gold);
  padding: 16px 28px;
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  margin-bottom: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.mantra-box p.sanskrit {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 6px;
  color: #ffd700;
  font-weight: 700;
  font-family: "Playfair Display", serif;
}

.mantra-box p:last-child {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: #fce4ec;
  font-style: italic;
}

.hashtag {
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 2.5px;
  color: var(--light-gold);
  margin-bottom: 18px;
  font-weight: 700;
}

.btn {
  display: inline-block;
  background: var(--primary-gold);
  color: var(--deep-maroon);
  font-weight: 700;
  padding: 12px 34px;
  border-radius: 35px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2.5px;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.4);
}

.btn:hover {
  background: var(--white);
  transform: translateY(-2px);
}

/*  General Section Styling  */
section {
  padding: 130px 8% 100px 8%;
  text-align: center;
}

@media (min-width: 1200px) {
  section {
    padding: 100px 12%;
  }
}

.section-title {
  font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  color: var(--deep-maroon);
  margin-bottom: 14px;
  font-weight: 700;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 50px;
  font-style: italic;
}

/*  FLOATING BACKGROUND PETALS & BUBBLES CONTAINER FOR SECTIONS  */
.section-bg-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.decor-item {
  position: absolute;
  animation: floatDecorItem linear infinite;
  opacity: 0.55;
}

@keyframes floatDecorItem {
  0% {
    transform: translateY(105vh) scale(0.6) rotate(0deg);
    opacity: 0;
  }

  20% {
    opacity: 0.6;
  }

  80% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-10vh) scale(1.2) rotate(360deg);
    opacity: 0;
  }
}

/*  Ensure section content sits above decor  */
.unified-photo-portion,
.family-friends-section,
#countdown,
.rsvp-section {
  position: relative;
  overflow: hidden;
}

.unified-photo-portion .section-title,
.unified-photo-portion .section-subtitle,
.unified-photo-portion .photo-master-container {
  position: relative;
  z-index: 5;
}
.unified-photo-portion {
  background: linear-gradient(135deg, #fff2e6 0%, #fff8f0 50%, #fdf2f4 100%);
  padding: 110px 8%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.unified-photo-portion::before {
  content: "✦ ✧ ✦ ✧ ✦";
  display: block;
  font-size: 1.2rem;
  color: var(--primary-gold);
  letter-spacing: 8px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.photo-master-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 45px 35px;
  max-width: 1350px;
  margin: 0 auto;
}

.royal-polaroid-card {
  background: #ffffff;
  padding: 14px 14px 16px 14px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(88, 24, 31, 0.15);
  border: 2px solid rgba(212, 175, 55, 0.5);
  position: relative;
  transition:
    transform 0.6s ease,
    box-shadow 0.5s ease;
}

/*  Smooth Floating & Colliding Keyframes  */
.royal-polaroid-card:nth-child(1) {
  animation: floatAndCollide1 7s ease-in-out infinite alternate;
}

.royal-polaroid-card:nth-child(2) {
  animation: floatAndCollide2 8s ease-in-out infinite alternate;
}

.royal-polaroid-card:nth-child(3) {
  animation: floatAndCollide3 7.5s ease-in-out infinite alternate;
}

.royal-polaroid-card:nth-child(4) {
  animation: floatAndCollide4 8.5s ease-in-out infinite alternate;
}

.royal-polaroid-card:nth-child(5) {
  animation: floatAndCollide1 8s ease-in-out infinite alternate;
}

.royal-polaroid-card:nth-child(6) {
  animation: floatAndCollide2 7.2s ease-in-out infinite alternate;
}

.royal-polaroid-card:nth-child(7) {
  animation: floatAndCollide3 8.2s ease-in-out infinite alternate;
}

.royal-polaroid-card:nth-child(8) {
  animation: floatAndCollide4 7.8s ease-in-out infinite alternate;
}

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

  50% {
    transform: translate(4px, -6px) rotate(0.8deg) scale(1.01);
  }

  100% {
    transform: translate(-3px, 4px) rotate(-0.5deg);
  }
}

@keyframes floatAndCollide2 {
  0% {
    transform: translate(0, 0) rotate(1.5deg);
  }

  50% {
    transform: translate(-5px, 5px) rotate(-1deg) scale(1.01);
  }

  100% {
    transform: translate(4px, -3px) rotate(0.8deg);
  }
}

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

  50% {
    transform: translate(5px, 4px) rotate(1deg) scale(1.01);
  }

  100% {
    transform: translate(-4px, -5px) rotate(-0.8deg);
  }
}

@keyframes floatAndCollide4 {
  0% {
    transform: translate(0, 0) rotate(0.8deg);
  }

  50% {
    transform: translate(-4px, -4px) rotate(-0.8deg) scale(1.01);
  }

  100% {
    transform: translate(4px, 5px) rotate(1deg);
  }
}

.royal-polaroid-card:hover {
  transform: scale(1.06) translate(0, 0) rotate(0deg) !important;
  box-shadow: 0 25px 55px rgba(212, 175, 55, 0.4);
  z-index: 10;
  animation-play-state: paused;
}

.polaroid-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 270px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    
  
    background: linear-gradient(
        135deg, 
        #f5ebd7 0%, 
        #eed8a8ed 25%, 
        #dddde0 50%,
        #eed8a8ed 75%, 
        #f5ebd7 100%
    );
    background-size: 400% 400%;
    animation: flowGradientColors 4s ease infinite;
}


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

.royal-polaroid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    position: relative;
    z-index: 2;
}

.royal-polaroid-card img.loaded,
.royal-polaroid-card img[src] {
    opacity: 1;
}
/*  FAMILY & FRIENDS SECTION  */

.squad-photo-frame {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    
   
  background: linear-gradient(
        135deg, 
        #f5ebd7 0%, 
        #eed8a8ed 25%, 
        #e4e4e6e5 50%, 
        #eed8a8ed 75%, 
        #f5ebd7 100%
    );
    background-size: 400% 400%;
    animation: flowGradientColors 4s ease infinite;
}


.squad-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    position: relative;
    z-index: 2;
    display: block;
}

.squad-photo-frame img.loaded,
.squad-photo-frame img[src] {
    opacity: 1;
}
.family-friends-section {
  background: linear-gradient(135deg, #fff9f0 0%, #fff3e6 100%);
  padding: 100px 8%;
  text-align: center;
  border-top: 2px solid rgba(212, 175, 55, 0.2);
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.hosts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.host-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid var(--primary-gold);
  box-shadow: 0 10px 30px rgba(88, 24, 31, 0.08);
  position: relative;
  overflow: hidden;
}

.host-card h3 {
  font-size: 1.8rem;
  color: var(--deep-maroon);
  margin-bottom: 15px;
}

.host-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
}

/*  Countdown Section  */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.countdown-box {
  width: 130px;
  height: 130px;
  border: 2px solid var(--primary-gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

.countdown-box span.number {
  font-size: 2.2rem;
  font-family: "Playfair Display", serif;
  color: var(--deep-maroon);
  font-weight: 700;
  line-height: 1;
}

.countdown-box span.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 700;
}

.countdown-footer {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
}

/*  Heartbeat pulsing effect for countdown blocks  */

.countdown-box,
.clock-card {
  animation: royalAura 3.5s ease-in-out infinite;
}

/*  Staggered glow wave effect  */
.countdown-box:nth-child(1) {
  animation-delay: 0s;
}

.countdown-box:nth-child(2) {
  animation-delay: 0.8s;
}

.countdown-box:nth-child(3) {
  animation-delay: 1.6s;
}

.countdown-box:nth-child(4) {
  animation-delay: 2.4s;
}

/*  ELEVATED LUXURY BLESSING BANNER STYLING  */
.blessing-banner {
  background: linear-gradient(135deg, #3a0d12 0%, #58181f 50%, #280a0e 100%);
  color: var(--light-gold);
  padding: 50px 40px;
  margin: 60px auto;
  max-width: 1000px;
  border-radius: 24px;
  border: 2px solid rgba(212, 175, 55, 0.6);
  box-shadow:
    0 20px 50px rgba(88, 24, 31, 0.35),
    0 0 30px rgba(255, 215, 0, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blessing-banner::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(255, 215, 0, 0.4);
  border-radius: 18px;
  pointer-events: none;
}

.blessing-star-sparkle {
  font-size: 1.5rem;
  color: #ffd700;
  letter-spacing: 12px;
  margin-bottom: 12px;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
}

.blessing-banner h3 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: #fff6d6;
  font-family: "Playfair Display", serif;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.blessing-banner p {
  font-style: italic;
  font-size: 1.15rem;
  color: #fce4ec;
  line-height: 1.7;
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 568px) {
  .blessing-banner {
    padding: 30px 20px !important;
    margin: 30px 15px !important;
    border-radius: 18px !important;
  }

  .blessing-banner h3 {
    font-size: 1.5rem !important;
    margin-bottom: 10px !important;
  }

  .blessing-banner p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  .blessing-star-sparkle {
    font-size: 1.2rem !important;
    letter-spacing: 8px !important;
    margin-bottom: 8px !important;
  }
}

/*  ELEVATED LUXURY SCHEDULE CARDS STYLING  */

/* Schedule Section PDF Button Container */
.schedule-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-top: .5rem;
    padding-top: 1rem; */
    gap: 14px;
}


/* Luxury Gold Button Styling */
.btn-gold-pdf {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(105deg, #ddab4bf7 0%, #fffcfce7 100%);
    color: var(--deep-maroon);
    font-family: 'Cinzel', serif !important;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 0.55rem 1.8rem;
    border-radius: 20px;
    border: 1px solid #d4af37 !important;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}


.btn-gold-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.45);
    background: linear-gradient(135deg, #dfba73 0%, #c5a059 100%);
}

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

.btn-gold-pdf svg {
    flex-shrink: 0;
}

/* Language Override Lock for PDF Button */
html.lang-hi .btn-gold-pdf .pdf-btn-text {
    font-family: 'Noto Serif Devanagari', serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    font-weight: 600;
    text-align: center;
    font-size: large;
    margin-top: 6px;
}
html.lang-hi .btn-gold-pdf {
  padding: 0.45rem 1.2rem;
}

/* Mobile Responsive Styling (Screens under 560px) */
@media screen and (max-width: 560px) {

    /* Button Container Spacing */
    .schedule-actions {
        margin-top: .5rem;
        padding: 0 10px;
        flex-direction: column;
    }

    /* PDF Button Size Reduction */
    .btn-gold-pdf {
        width: 100%;                
        max-width: 320px;             
        padding: 0.65rem 1.1rem;     
        font-size: 0.75rem;           
        letter-spacing: 0.8px;
        gap: 0.5rem;                 
        justify-content: center;
    }

    html.lang-hi .btn-gold-pdf .pdf-btn-text {
    
   font-size: medium;
   
}
html.lang-hi .btn-gold-pdf  {
  padding: 0.25rem 1.2rem;
  font-size: 13px;
}
    /* Icon Resizing */
    .btn-gold-pdf svg {
        width: 16px;
        height: 16px;
        text-align: center;
    }
}

.schedule-section {
  background: linear-gradient(135deg, #fffcf5 0%, #fef3e6 50%, #fdf5f7 100%);
  position: relative;
  overflow: hidden;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 40px;
  max-width: 1350px;
  margin: 0 auto;
}

.schedule-card:nth-child(1) {
  animation: floatUpAndDown1 6s ease-in-out infinite alternate;
}

.schedule-card:nth-child(2) {
  animation: floatUpAndDown2 7s ease-in-out infinite alternate;
}

.schedule-card:nth-child(3) {
  animation: floatUpAndDown1 6.5s ease-in-out infinite alternate;
}

.schedule-card:nth-child(4) {
  animation: floatUpAndDown2 7.5s ease-in-out infinite alternate;
}

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

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

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

  100% {
    transform: translateY(8px);
  }
}

.schedule-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 22px 20px 18px 20px;
  box-shadow:
    0 14px 35px rgba(88, 24, 31, 0.12),
    0 0 18px rgba(212, 175, 55, 0.15);
  border: 2px solid rgba(212, 175, 55, 0.6);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.schedule-icon-frame {
  position: relative;
  width: 62px;
  height: 62px;
  margin: 6px auto 10px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeb3b 100%);
  border: 2px solid var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 5px 18px rgba(255, 215, 0, 0.4),
    inset 0 0 8px #ffffff;
  font-size: 1.7rem;
}

.schedule-card h3 {
  font-size: 1.6rem;
  color: var(--deep-maroon);
  margin-bottom: 5px;
  font-family: "Playfair Display", serif;
}

.schedule-time-badge {
  display: inline-block;
  background: rgba(88, 24, 31, 0.08);
  color: var(--deep-maroon);
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  border: 1px solid rgba(88, 24, 31, 0.2);
}

.schedule-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 12px;
  font-style: italic;
}

.rsvp-section {
  background: linear-gradient(135deg, #fff5ee 0%, #fffdf9 100%);
}

.rsvp-form {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  background: var(--white);
  padding: 50px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  text-align: left;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: "Lato", sans-serif;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-gold);
}

.radio-group {
  display: flex;
  gap: 35px;
  margin-top: 10px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  font-size: 1.05rem;
  cursor: pointer;
  font-weight: 400;
}

.rsvp-form .btn {
  width: 100%;
  text-align: center;
  cursor: pointer;
  border: none;
}

footer {
  background: #280a0e;
  color: var(--light-gold);
  text-align: center;
  padding: 50px 20px;
  font-size: 0.95rem;
  border-top: 2px solid var(--primary-gold);
}

footer p {
  margin-bottom: 8px;
}

footer .hashtag {
  color: var(--white);
  margin-top: 14px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 65px;
    left: 5%;
    width: 90%;
    background: linear-gradient(
      135deg,
      rgba(255, 253, 249, 0.99) 0%,
      rgba(255, 240, 215, 0.99) 100%
    );
    padding: 10px 0;
    border-radius: 18px;
    border: 1.5px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 20px 50px rgba(88, 24, 31, 0.3);
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .nav-links.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.25);
    transition: background 0.3s ease;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links li:hover {
    background: rgba(212, 175, 55, 0.12);
  }

  .nav-links a {
    font-size: 0.9rem;
    letter-spacing: 2.5px;
    color: #58181f;
    font-weight: 700;
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    transition: color 0.3s ease;
  }

  .nav-links a:hover {
    color: #d4af37;
    transform: scale(1.05);
  }

  .menu-toggle {
    display: block;
  }

  section {
    padding: 80px 6%;
  }

  .countdown-box {
    width: 100px;
    height: 100px;
  }

  .countdown-box span.number {
    font-size: 1.6rem;
  }

  .rsvp-form {
    padding: 38px 25px;
  }
}

@media (min-width: 992px) {
  .string-flower {
    width: 20px !important;
    height: 20px !important;
    box-shadow:
      0 0 16px rgba(255, 235, 128, 0.95),
      0 0 28px rgba(255, 215, 0, 0.8) !important;
  }

  .string-line {
    height: 14px !important;
  }

  .hanging-toran-container {
    height: 38px !important;
  }
}


/* Unified Royal Golden Button Styling for both View Invite and View Map */
.link-btn {
    flex: 1 1 125px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(105deg, #ddab4bf7 0%, #ffffff 100%) !important;
    color: var(--deep-maroon) !important;                                      
    border-radius: 20px;
    border: 1px solid #d4af37 !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 3px 10px rgba(197, 160, 89, 0.3);
}

.link-btn:hover {
    background: linear-gradient(135deg, #dfba73 0%, #c5a059 100%) !important;
    color: var(--deep-maroon) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(197, 160, 89, 0.45);
}

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

.schedule-badge-top {
  display: block;
  font-family: "Great Vibes", cursive;
  font-size: 1.5rem;
  color: #b8860b;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 2px;
  text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

/*  CREATIVE FAMILY & FRIENDS SECTION STYLING - LUXURY ENHANCED  */
.family-friends-section {
  background: linear-gradient(135deg, #fdfbf7 0%, #f7efe2 50%, #fcedef 100%);
  padding: 140px 8% 110px 8%;
  position: relative;
  overflow: hidden;
}

.family-crest-header {
  text-align: center;
  margin-bottom: 35px;
}

.crest-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.5));
  animation: pulseCrest 3s ease-in-out infinite alternate;
}

@keyframes pulseCrest {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.15) rotate(5deg);
  }
}

.family-tabs {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 62px;
  flex-wrap: wrap;
}

.family-tab-btn {
  background: linear-gradient(135deg, #ffffff 0%, #fffbf2 100%);
  border: 2px solid #d4af37;
  color: var(--deep-maroon);
  padding: 14px 34px;
  border-radius: 35px;
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
}

.family-tab-btn.active,
.family-tab-btn:hover {
  background: linear-gradient(135deg, var(--deep-maroon) 0%, #3a0d12 100%);
  color: #ffd700;
  border-color: #ffd700;
  box-shadow:
    0 10px 30px rgba(88, 24, 31, 0.4),
    0 0 15px rgba(255, 215, 0, 0.5);
  transform: translateY(-4px) scale(1.03);
}

.family-tab-content {
  display: none;
  animation: fadeInTab 0.6s ease-in-out forwards;
}

.family-tab-content.active {
  display: block;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.creative-family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1150px;
  margin: 0 auto;
}

@media (max-width:820px)   {
  .creative-family-grid {
    grid-template-columns:none;
    
  }
}

.family-royal-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 50px 35px 38px 35px;
  border: 2px solid rgba(212, 175, 55, 0.5);
  box-shadow:
    0 20px 50px rgba(88, 24, 31, 0.1),
    inset 0 0 15px rgba(255, 248, 220, 0.6);
  position: relative;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.family-royal-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    90deg,
    #d4af37,
    #ffd700,
    #58181f,
    #ffd700,
    #d4af37
  );
}

.family-royal-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 55px rgba(212, 175, 55, 0.35);
  border-color: #d4af37;
}

.card-top-ornament {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-gold), #ffd700);
  color: var(--deep-maroon);
  padding: 5px 22px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.family-avatar-circle {
  width: 85px;
  height: 85px;
  margin: 15px auto 20px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff5ee 0%, #fff1d6 100%);
  border: 2px solid var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 20px rgba(212, 175, 55, 0.25),
    inset 0 0 10px #ffffff;
}

.avatar-emoji {
  font-size: 2.8rem;
}

.family-royal-card h3 {
  font-size: 2.1rem;
  color: var(--deep-maroon);
  margin-bottom: 8px;
}

.family-tagline {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 22px;
}

.family-members-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.member-badge {
  background: #fff8eb;
  color: var(--deep-maroon);
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.family-blessing-quote {
  background: linear-gradient(135deg, #faf6f0 0%, #fffdfa 100%);
  border-left: 3.5px solid var(--primary-gold);
  padding: 16px 20px;
  border-radius: 8px;
  text-align: left;
}

.family-blessing-quote p {
  font-style: italic;
  font-size: 0.95rem;
  color: #4a4a4a;
  line-height: 1.5;
}

.creative-squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1150px;
  margin: 0 auto;
}

.squad-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 35px 25px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 12px 35px rgba(88, 24, 31, 0.06);
  text-align: center;
  transition: all 0.4s ease;
}

.squad-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(212, 175, 55, 0.3);
  border-color: #d4af37;
}

.squad-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.squad-card h3 {
  font-size: 1.6rem;
  color: var(--deep-maroon);
  margin-bottom: 10px;
}

.squad-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.squad-slider-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 10px 0;
}

.squad-carousel {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.squad-slide-card {
  position: absolute;
  width: 100%;
  max-width: 700px;
  background: #ffffff;
  border-radius: 24px;
  border: 2px solid rgba(212, 175, 55, 0.6);
  box-shadow:
    0 20px 50px rgba(88, 24, 31, 0.18),
    0 0 25px rgba(255, 215, 0, 0.25);
  padding: 20px;
  text-align: center;
  opacity: 0;
  transform: scale(0.85) translateY(30px);
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}


.squad-slide-card.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  z-index: 5;
  box-shadow:
    0 25px 60px rgba(88, 24, 31, 0.25),
    0 0 35px rgba(255, 215, 0, 0.4);
}

.squad-photo-frame {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.4);
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.squad-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  object-position: center;
}

.squad-slide-card.active:hover img {
  transform: scale(1.08);
}

.squad-badge-overlay {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(88, 24, 31, 0.88);
  backdrop-filter: blur(8px);
  color: #ffd700;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  border: 1px solid rgba(255, 215, 0, 0.6);
  white-space: nowrap;
}

.squad-card-body h3 {
  font-size: 1.9rem;
  color: var(--deep-maroon);
  margin-bottom: 6px;
}

.squad-tagline {
  font-style: italic;
  color: var(--primary-gold);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.squad-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.squad-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-top: 65px;
}

.squad-nav-btn {
  background: linear-gradient(135deg, var(--deep-maroon) 0%, #3a0d12 100%);
  color: #ffd700;
  border: 2px solid #d4af37;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(88, 24, 31, 0.3);
  transition: all 0.3s ease;
}

.squad-nav-btn:hover {
  background: #ffd700;
  color: var(--deep-maroon);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.squad-dots {
  display: flex;
  gap: 10px;
}

.squad-dot {
  width: 12px;
  height: 12px;
  background: #d4af37;
  opacity: 0.4;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.squad-dot.active {
  opacity: 1;
  transform: scale(1.3);
  box-shadow: 0 0 10px #ffd700;
}



@media (max-width: 768px) {
  nav {
    padding: 10px 5% !important;
  }

  .hanging-toran-container {
    height: 18px !important;
  }

  .string-line {
    height: 6px !important;
  }

  .string-flower {
    width: 10px !important;
    height: 10px !important;
  }

  /*  Section Top Clearance on Mobile  */
  section,
  .family-friends-section,
  .unified-photo-portion {
    padding-top: 95px !important;
    padding-bottom: 50px !important;
    padding-left: 4% !important;
    padding-right: 4% !important;
  }

  /*  Family Tabs Spacing  */
  .family-tabs {
    gap: 10px !important;
    margin-bottom: 25px !important;
  }

  .family-tab-btn {
    padding: 10px 20px !important;
    font-size: 0.92rem !important;
  }

  /*  Squad Carousel Responsive Height & Spacing  */
  .squad-carousel {
    min-height: 420px !important;
  }

  .squad-slide-card {
    max-width: 100% !important;
  

    padding: 14px !important;
  }

  .squad-photo-frame {
    height: 240px !important;
    
    margin-bottom: 5px !important;
  }

  .squad-card-body h3 {
    font-size: 1.5rem !important;
  }

  .squad-tagline {
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
  }

  .squad-desc {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
  }

  .squad-controls {
    margin-top: 25px !important;
    margin-bottom: 40px !important;
  }

  /*  Reposition Floating Music Toggle Button on Mobile  */
  #bgMusicToggle {
    bottom: 15px !important;
    right: 15px !important;
    padding: 8px 14px !important;
    font-size: 0.78rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  }
}

/*  Responsive typography fix for parent & family cards  */
@media screen and (max-width: 600px) {
  
  .family-tab-content h2,
  .family-tab-content .family-title {
    font-size: 1.5rem !important;
    margin-bottom: 8px !important;
  }

  /*  Subtitle / Quote Text  */
  .family-tab-content p,
  .family-tab-content .family-subtitle {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }

  /*  Parents Box Badge Header ("PARENTS OF THE GROOM")  */
  .parents-box .subtitle,
  .parents-card header span {
    font-size: 0.7rem !important;
    letter-spacing: 1px !important;
  }
  .parents-box h3,
  .parents-box h4,
  .parents-card p,
  .parents-card div {
    font-size: 0.95rem !important;
  
    line-height: 1.4 !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
  }

  /*  Reduce interior card padding on mobile  */
  .parents-box,
  .family-royal-card {
    padding: 12px 15px !important;
  }
}

/*  Countdown Footer Two-Line Centered Mobile Layout  */
.mobile-break {
  display: none;
}



@media (max-width: 768px) {
  .mobile-break {
    display: block;
  }

  .countdown-footer {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
    padding: 0 15px !important;
  }
}

/* scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #ffd700 #e0e0e0;
}

/*  For Chrome, Edge, Safari, and Opera  */
::-webkit-scrollbar {
  width: 11px;
}

/*  Silver Scrollbar Track  */
::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #f0f0f0 0%, #d8d8d8 50%, #e8e8e8 100%);
  border-left: 1px solid #c0c0c0;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

/*  Metallic Golden Scrollbar Thumb  */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffe066 0%, #d4af37 50%, #aa771c 100%);
  border-radius: 6px;
  border: 2px solid #e0e0e0;
  /*  Matches the silver track border  */
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/*  Bright Gold Glow on Hover  */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffffff 0%, #ffd700 50%, #d4af37 100%);
}

.bubble,
.floating-spark,
.petal,
.royal-polaroid-card,
#crackerCanvas {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@media (max-width: 768px) {
  .bubble:nth-child(even),
  .floating-spark:nth-child(even) {
    display: none;
  }

  /*  Simplify heavy drop-shadows on mobile for lag-free scrolling  */
  .royal-polaroid-card {
    box-shadow: 0 8px 20px rgba(88, 24, 31, 0.12) !important;
  }
}

.card-top-ornament {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  white-space: nowrap !important;
 
  font-size: 0.75rem !important;
 
  padding: 5px 16px !important;
  line-height: 1.2 !important;
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
  z-index: 10 !important;
}

@media (max-width: 768px) {
  .family-royal-card {
    padding-top: 40px !important;
    
  }
}

.mobile-break {
  display: none;
}

@media (max-width: 768px) {
  .mobile-break {
    display: block;
  }

  #countdown {
    text-align: center !important;
  }

  .countdown-footer {
    display: inline-block !important;
    text-align: left !important;
    
    max-width: 300px !important;
    margin: 0 auto !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    padding: 0 10px !important;
  }

  /*  Countdown Footer Layout: Line 1 Left, Line 2 Right-Shifted  */
  .countdown-footer {
    display: block !important;
    text-align: center !important;
    padding: 0 15px !important;
  }

  .footer-line-1 {
    display: block !important;
    text-align: left !important;
  }

  .footer-line-2 {
    display: block !important;
    text-align: right !important;
    padding-right: 10px !important;
  }
}

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

  100% {
    transform: rotate(360deg);
  }
}
.schedule-icon-frame {
  animation: smoothRotate 6s linear infinite;
}
.schedule-card:hover .schedule-icon-frame {
  animation-play-state: paused;
}

.phera-arena {
  position: relative;
  height: 150px;
  background: #fffdf9;
  border-radius: 20px;
  border: 1.5px dashed rgba(212, 175, 55, 0.6);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  overflow: hidden;
}

.couple-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.avatar-icon-box {
  width: 140px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.avatar-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--deep-maroon, #58181f);
  margin-top: 6px;
}

#coupleBride  {
 margin-top: 5px;
}

.center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.floating-garland {
  font-size: 1.5rem;
  margin-bottom: 8px;
  animation: floatGarland 2s infinite alternate ease-in-out;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
  transition: all 0.6s ease;
}

@keyframes floatGarland {
  0% {
    transform: translateY(0px) scale(1);
  }

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

.sacred-fire {
  font-size: 2.2rem;
  animation: pheraGlow 1.5s infinite alternate ease-in-out;
}

.sacred-fire img {
  margin-top: 20px;
  height: 110px;
}

/*  Base styles for the Phera Arena  */
.phera-arena {
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: relative;
  padding: 15px 5px;
  min-height: 180px;
  width: 100%;
  box-sizing: border-box;
}

.couple-alignment-container,
.varmala-flex-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
 
}

/*  Ensure individual person items maintain equal layout bounds  */
.person-card,
.groom-box,
.bride-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (max-width: 576px) {
  #seven-pheras {
    padding: 50px 15px !important;
  
  }

  #seven-pheras > div {
    padding: 20px 12px !important;
  
    border-radius: 18px !important;
  }

  .section-title {
    font-size: 1.6rem !important;
  }

  .section-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 20px !important;
  }
  .avatar-icon-box {
    width: 60px;
    height: 60px;
  }

  .avatar-name {
    font-size: 0.85rem;
    margin-top: 4px;
  }

  /*  Shrink Mandap / Havan image container for phones  */
  .center-stage img {
    width: 80px !important;
    height: 80px !important;
  }

  .floating-garland {
    font-size: 1.2rem !important;
  }
  /*  (Handled via script or a smaller scale max)  */
  .phera-card {
    padding: 12px !important;
  }

  .phera-card h3 {
    font-size: 1.05rem !important;
  }

  .phera-vow {
    font-size: 0.85rem !important;
  }

  .btn-phera {
    padding: 10px 20px !important;
    font-size: 0.95rem !important;
  }
}

/*  Rose Petal Shower Animation  */
.petal-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.rose-petal {
  position: absolute;
  top: -20px;
  font-size: 1.2rem;
  animation: fallPetal linear forwards;
  opacity: 0.85;
}

@keyframes fallPetal {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(450px) rotate(360deg);
    opacity: 0;
  }
}

.phera-progress-bar {
  width: 100%;
  height: 10px;
  background: #f3f4f6;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 25px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.phera-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #ffd700);
  transition: width 0.6s ease-in-out;
  border-radius: inherit;
}

.phera-card {
  background: #fffdfa;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(88, 24, 31, 0.04);
}

.phera-badge {
  display: inline-block;
  background: rgba(88, 24, 31, 0.08);
  color: var(--deep-maroon, #58181f);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.phera-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: var(--deep-maroon, #58181f);
  margin-bottom: 8px;
}

.phera-vow {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.5;
  font-style: italic;
}

.btn-phera {
  background: linear-gradient(
    135deg,
    var(--deep-maroon, #58181f) 0%,
    #3a0d12 100%
  );
  color: #ffd700;
  border: 1.5px solid #ffd700;
  padding: 14px 32px;
  font-size: 1.05rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(88, 24, 31, 0.25);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-phera:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 24, 31, 0.35);
}

@keyframes sparkleAnim {
  0% {
    transform: translateY(-20px) translateX(0) rotate(0deg) scale(0.8);
    opacity: 0;
  }

  50% {
    opacity: 1;
    transform: translateY(220px) translateX(var(--drift, 15px)) rotate(180deg)
      scale(1.2);
  }

  100% {
    transform: translateY(450px) translateX(calc(var(--drift, 15px) * 2))
      rotate(360deg) scale(0.8);
    opacity: 0;
  }
}
.floating-heart,
.gold-heart-bg,
[class*="heart"] {
    will-change: transform, opacity;
    transform: translateZ(0); 
    pointer-events: none;    
    filter: drop-shadow(0 2px 5px rgba(212, 175, 55, 0.2)) !important; 
}

/*  Optimize Main Card Composite Layer  */
.vows-3d-card,
.card-3d,
.varmala-card-wrap {
    transform: translateZ(0);
    will-change: transform;
   
    box-shadow:
        0 15px 35px -5px rgba(180, 145, 90, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
}

/*  Disable Heavy Glass Blur inside Card Containers  */
.luxe-inset-box,
.phera-content-box {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 253, 248, 0.96) !important;
}

/*  Optimize Varmala Animated Character / Mandap Images  */
.varmala-icon-3d img,
.couple-character-img {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/*  Inset 3D Phera Card Details Box (Pillow-Depressed Effect)  */
.luxe-inset-box {
  background: linear-gradient(145deg, #fffdf8 0%, #f7f0e1 100%) !important;
  border-radius: 18px !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  padding: 24px 20px !important;
  margin: 20px 0 !important;
  box-shadow:
    0 8px 20px rgba(200, 170, 110, 0.12),
    inset 0 2px 4px rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px rgba(180, 150, 90, 0.18) !important;
  text-align: center;
}

/*  3D Embossed Badge Pill  */
.luxe-badge-pill {
  background: linear-gradient(
    135deg,
    #d4af37 0%,
    #f5e49b 45%,
    #c59b27 80%,
    #9e7512 100%
  ) !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.78rem !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 20px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  display: inline-block;
  box-shadow:
    0 5px 12px rgba(160, 120, 20, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    inset 0 -2px 3px rgba(80, 50, 0, 0.35) !important;
  text-shadow: 0 1px 2px rgba(50, 30, 0, 0.4);
  margin-bottom: 12px;
}

/*  3D Metallic Action Button  */
.luxe-metal-btn {
  background: linear-gradient(
    135deg,
    #ffd700 0%,
    #d4af37 50%,
    #aa771c 100%
  ) !important;
  color: #58181f !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 35px !important;
  padding: 12px 28px !important;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  margin-top: 15px;
  box-shadow:
    0 8px 20px rgba(180, 140, 40, 0.35),
    inset 0 2px 3px rgba(255, 255, 255, 0.8),
    inset 0 -2px 3px rgba(120, 80, 10, 0.3) !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.luxe-metal-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 25px rgba(212, 175, 55, 0.5) !important;
}

.rose-petal {
  position: absolute;
  top: -20px;
  font-size: 1.3rem;
  animation: sparkleAnim linear forwards;
  opacity: 0.95;
}

.photo-booth-card {
  background: linear-gradient(
    135deg,
    rgba(255, 253, 245, 0.98),
    rgba(255, 245, 230, 0.98)
  );
  border: 2px solid #d4af37;
  border-radius: 20px;
  max-width: 580px;
  width: 95%;
  padding: 22px 18px;
  text-align: center;
  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(212, 175, 55, 0.25);

  margin: auto;
  margin-top: 30px;
  margin-bottom: 30px;
}

.sparkle-icon {
  font-size: 1.8rem;
}

.header-title {
  font-family: "Playfair Display", serif;
  color: #58181f;
  font-size: 1.85rem;
  margin-bottom: 4px;
}

.header-sub {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 16px;
  font-weight: bold;
}

/*  Viewfinder Box  */
.viewfinder-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 420px;
    margin: 15px auto;
    background-image: url(assets/BACKGRIYND.webp);
    background-size: 125% auto;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid #d4af37;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    display: block !important;
    background-position-x: 60%;
    background-position-y: 35%;
    background-repeat: no-repeat;
}


@media (max-width: 500px) {
  .viewfinder-box {
    background-position-x: -52px;
  }
}

#webcamVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  
}

#uploadedImgPreview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
 
}

.prop-overlay-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 5;
}

.permission-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 11, 16, 0.95);
  color: #ffd700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  z-index: 20;
}

.camera-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.permission-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.permission-sub {
  font-size: 0.78rem;
  color: #ddd;
  margin-top: 4px;
  max-width: 260px;
  text-align: center;
}

.permission-btn {
  background: linear-gradient(135deg, #d4af37, #aa7c11);
  color: #3b0a0e;
  border: none;
  padding: 8px 22px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  margin-top: 10px;
}

.controls-group {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-action {
  background: linear-gradient(135deg, #58181f, #8b1d28);
  color: #ffd700;
  border: 1px solid #d4af37;
  padding: 10px 20px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(88, 24, 31, 0.2);
  transition: transform 0.2s;
}

.btn-action:hover {
  transform: translateY(-2px);
}

.btn-download {
  background: linear-gradient(135deg, #27ae60, #1e8449);
  color: #ffffff;
  border: 1px solid #2ecc71;
}

#statusMessage {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #8b1d28;
  font-weight: bold;
}
.venue-date-badge {
  flex-wrap: nowrap;
}

.date-text {
  display: inline;
}
.mobile-venue,
.mobile-date {
  display: none;
}

.desktop-venue {
  display: inline;
}
@media (max-width: 500px) {
  .venue-date-badge {
    flex-direction: column;
    line-height: 1.5;
    padding: 10px 15px !important;
  }

  .desktop-venue {
    display: none;
  }

  .mobile-venue {
    display: inline;
  }

  .mobile-date {
    display: block;
    margin-top: 2px;
  }
}

#webcamVideo,
#uploadedImgPreview,
.default-photo-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
 
  filter: brightness(1.08) contrast(1.05) saturate(1.15)
    drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

/*  Container styling for the watermark badge  */
.creator-watermark-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 18px;
  margin: 25px auto;
  background: linear-gradient(
    135deg,
    rgba(20, 19, 22, 0.92),
    rgba(44, 43, 48, 0.95)
  );
  border: 1.5px solid #d4af37;
  border-radius: 30px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 0 12px rgba(212, 175, 55, 0.25);
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  color: #e0e0e0;
  letter-spacing: 0.8px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: all 0.4s ease;
}

/*  Metallic gold shining text styling for RK DEEPAK  */
.creator-name {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  background: linear-gradient(
    110deg,
    #d4af37 0%,
    #ffd700 25%,
    #ffffff 50%,
    #ffd700 75%,
    #d4af37 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShine 3.5s linear infinite;
  text-transform: uppercase;
} 

/*  Moving light streak across the badge background  */
 .creator-watermark-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 215, 0, 0.18) 50%,
    transparent 70%
  );
  transform: rotate(30deg);
  animation: backgroundGleam 4s ease-in-out infinite;
  pointer-events: none;
} 

/*  Sparkle icon subtle scaling animation  */
 .watermark-icon {
  font-size: 0.95rem;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
  animation: sparklePulse 2s ease-in-out infinite alternate;
} */

/*  Hover effect  */
.creator-watermark-badge:hover {
  transform: translateY(-2px);
  border-color: #ffd700;
  box-shadow:
    0 6px 25px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(212, 175, 55, 0.5);
} 

/*  --- Keyframe Animations ---  */

/*  Text metallic gradient motion  */
 @keyframes goldShine {
  0% {
    background-position: 200% center;
  }

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

/*  Diagonal light sheen effect  */
 @keyframes backgroundGleam {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }

  100% {
    transform: translateX(100%) rotate(30deg);
  }
} 

/*  Sparkle glow pulse  */
 @keyframes sparklePulse {
  0% {
    opacity: 0.5;
    transform: scale(0.9);
  }

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

/*  --- Mobile Responsive Scaling (500px and below) ---  */
 @media screen and (max-width: 500px) {
  .creator-watermark-badge {
    padding: 6px 14px !important;
    margin: 15px auto !important;
    font-size: 0.75rem !important;
    gap: 6px !important;
    border-radius: 20px !important;
  }

  .creator-name {
    font-size: 0.6rem !important;
    letter-spacing: 1px !important;
  }

  .watermark-icon {
    font-size: 0.75rem !important;
  }
} 

/*  Container for the Sacred Vows background hearts  */
#vowsFloatingContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  contain: layout paint style;
}

/* Individual Floating Heart with Multi-Directional Movement */
.floating-vow-heart {
  position: absolute;
  font-size: 1.6rem;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
  animation:
    driftAllDirections linear infinite,
    heart3DEmbossShimmer 4s ease-in-out infinite alternate;
  transition: transform 0.2s ease;
  user-select: none;
  
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #fff5c0 22%,
    #d4af37 45%,
    #ffffff 55%,
    #b8860b 78%,
    #ffffff 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Directional Beveling & Multi-Layer 3D Lighting */
  filter:
    drop-shadow(-1.5px -1.5px 0px rgba(255, 255, 255, 0.95))
    drop-shadow(1.5px 2px 1px rgba(139, 90, 0, 0.65))
    drop-shadow(0 0 6px rgba(212, 175, 55, 0.5))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}

.floating-vow-heart:hover {
  transform: scale(1.3);
}

@keyframes driftAllDirections {
  0% {
    transform: translate(0, 0) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 0.85;
  }
  50% {
    transform: translate(var(--moveX1), var(--moveY1)) scale(1.1);
    opacity: 0.9;
  }
  80% {
    transform: translate(var(--moveX2), var(--moveY2)) scale(0.95);
    opacity: 0.85;
  }
  85% {
    transform: translate(var(--moveX3), var(--moveY3)) scale(0.75);
    opacity: 0.6;
  }
  100% {
    transform: translate(var(--moveX4), var(--moveY4)) scale(0.85);
    opacity: 0;
  }
}

/* Burst Particle Effect */
.heart-particle {
  position: absolute;
  font-size: 1.2rem;
  pointer-events: none;
  animation: particleBurst 0.8s ease-out forwards;
  z-index: 3000;
}

@keyframes particleBurst {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.3);
    opacity: 0;
  }
}

.burst-congrats-text {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.8);
  background: linear-gradient(135deg, #f5f7fa, #f7e3bb);
  border: 1.5px solid #d4af37;
  color: #58181f;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-family: "Playfair Display", serif, Georgia;
  text-align: center;
  line-height: 1.4;
  box-shadow:
    0 8px 25px rgba(212, 175, 55, 0.35),
    inset 0 0 8px rgba(255, 255, 255, 0.9);
  z-index: 1000;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  animation: popupFadeFloat 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.burst-congrats-text strong {
  color: #58181f;
  font-size: 1.05rem;
}

.burst-congrats-text span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #b8860b;
}

@keyframes popupFadeFloat {
  0% {
    transform: translate(-50%, -10px) scale(0.7);
    opacity: 0;
  }
  20% {
    transform: translate(-50%, -40px) scale(1);
    opacity: 1;
  }
  80% {
    transform: translate(-50%, -70px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -100px) scale(0.95);
    opacity: 0;
  }
}

@keyframes heartFadeInSlow {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  100% {
    transform: scale(var(--finalScale, 1)) rotate(0deg);
    opacity: 0.9;
  }
}

.floating-vow-heart.spawning {
  
  animation:
    heartFadeInSlow 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
    driftAllDirections linear infinite;
  animation-delay: 0s, 1.2s;
}

/* Mobile scaling */
@media (max-width: 568px) {
  .burst-congrats-text {
    padding: 5px 10px;
  }
  .burst-congrats-text strong {
    font-size: 0.85rem !important;
  }
  .burst-congrats-text span {
    font-size: 0.75rem !important;
  }
}

/* Performance & Layer Promotion */
html { scroll-behavior: smooth; }

.bubble, .floating-spark, .petal, .petal-section-fall,
.floating-vow-heart, .hanging-string, .string-flower,
.fairy-light-dot, .royal-particle, .preloader-bg-pulse,
.royal-polaroid-card, .floating-garland, .sacred-fire,
.heart-particle, .ribbon-track,
.rose-petal, .burst-congrats-text {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.bubbles-container, .floating-elements, #galleryPetalsContainer,
#countdownPetalsContainer, .nav-fairy-lights {
  contain: layout paint style;
}

.fairy-light-dot { box-shadow: 0 0 8px #ffd700; }

@keyframes twinkleLight {
  0%   { transform: scale(0.6) translateZ(0); opacity: 0.4; }
  100% { transform: scale(1.2) translateZ(0); opacity: 1; }
}

.sacred-fire { filter: drop-shadow(0 0 8px rgba(230, 165, 50, 0.75)); }

@keyframes pheraGlow {
  0%   { transform: scale(1) translateZ(0); }
  100% { transform: scale(1.1) translateZ(0); }
}

.petal-section-fall { filter: none; top: -40px; }

@keyframes fallFullSection {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.95; }
  50%  { transform: translate3d(50px, calc(var(--fall, 900px) / 2), 0) rotate(180deg); opacity: 0.9; }
  100% { transform: translate3d(-50px, var(--fall, 900px), 0) rotate(360deg); opacity: 0.85; }
}

.petal { filter: none; }
.countdown-box, .clock-card { position: relative; }

@keyframes royalAura {
  0%, 100% { border-color: rgba(212, 175, 55, 0.4); }
  50%      { border-color: rgba(255, 215, 0, 0.9); }
}

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

@media (max-width: 992px), (hover: none) {
  .mantra-box { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(0, 0, 0, 0.78) !important; }
  nav, .nav-links, .modal, .popup, [class*="glass"], [class*="blur"] {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .cursive-name, .creator-name {
    animation-timing-function: steps(40, end) !important;
  }
  .bubble { box-shadow: inset 0 0 6px rgba(255,255,255,.7), 0 0 10px rgba(255, 215, 90, 0.5) !important; }
  
  /* Simplify filter stack on mobile for performance */
  .floating-vow-heart {
    filter: drop-shadow(1px 2px 1px rgba(139, 90, 0, 0.55)) drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}

.phera-arena, .phera-card, .luxe-inset-box { contain: layout paint; }
.floating-garland { transition: transform 0.6s ease; }

nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
.mantra-box { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0, 0, 0, 0.78); }

#gallery, #hosts, #countdown, #schedule, #seven-pheras, #selfie, footer {
  content-visibility: auto;
}
#gallery        { contain-intrinsic-size: auto 1800px; }
#hosts          { contain-intrinsic-size: auto 1600px; }
#countdown      { contain-intrinsic-size: auto 700px; }
#schedule       { contain-intrinsic-size: auto 1300px; }
#seven-pheras   { contain-intrinsic-size: auto 900px; }
#selfie         { contain-intrinsic-size: auto 900px; }
footer          { contain-intrinsic-size: auto 200px; }

.invite-banner-box, .venue-date-badge {
  backdrop-filter: none; -webkit-backdrop-filter: none;
  background: rgba(0, 0, 0, 0.58);
}
.family-royal-card, .squad-badge-overlay {
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.hero-out .cursive-name { animation-play-state: paused; }

/* ---- Language switch (English / Hindi) ---- */
#langToggle {
  position: fixed;
  top: 78px;
  right: 12px;
  z-index: 9990;
  padding: 6px 14px;
  border: 1.5px solid #d4af37;
  border-radius: 16px;
  background: #fffdf9;
  color: #58181f;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(88, 24, 31, 0.25);
}
#langToggle:active { transform: scale(0.95); }


  /* Letter-spacing is removed because it breaks joined Devanagari letters. */
html.lang-hi,
html.lang-hi body,
html.lang-hi * {
  font-family: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', 'Nirmala UI', 'Mangal', serif !important;
  letter-spacing: 0 !important;


  
}

html.lang-hi nav a 
{
  font-size:medium;
}


html.lang-hi .gold-gradient 
{
  padding-top:5px;
  font-size: large;
  font-weight: 400;
}

html.lang-hi .nav-logo,
html.lang-hi a.nav-logo {
    font-family: 'Playfair Display', 'Cinzel', serif !important;
    font-size: 1.4rem;
    font-weight: 700 !important;
     color: var(--deep-maroon);
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
letter-spacing: 2px;
    text-decoration: none;
  
  
  
  
}

html.lang-hi .nav-links
{
  margin-top: 5px;
}






/* html.lang-hi h1, html.lang-hi h2, html.lang-hi h3, html.lang-hi p,
html.lang-hi .cursive-name, html.lang-hi .hero-tagline { line-height: 1.4; } */


/* Royal Invitation Card Modal Popup Styling */

.invite-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 5, 8, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 15px;
    animation: fadeInModal 0.3s ease-in-out forwards;
}

.invite-modal-overlay.active {
    display: flex;
}

.invite-modal-content {
    background: linear-gradient(135deg, #fffdf9 0%, #fef5e7 100%);
    border: 2px solid var(--primary-gold);
    border-radius: 20px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.4);
    overflow: hidden;
    animation: popScaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.invite-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(88, 24, 31, 0.1);
    color: var(--deep-maroon);
    border: 1px solid var(--primary-gold);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
    transition: all 0.2s ease;
}

.invite-modal-close:hover {
    background: var(--deep-maroon);
    color: #ffd700;
}

.invite-modal-title {
    font-family: 'Playfair Display', serif;
    color: var(--deep-maroon);
    font-size: 1.5rem;
    text-align: center;
    padding: 18px 20px 10px 20px;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.4);
}

.invite-modal-body {
    padding: 15px;
    overflow-y: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.invite-modal-body img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.3);
    object-fit: contain;
}

.invite-modal-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px dashed rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.6);
}
.invite-modal-footer button {
  background: linear-gradient(105deg, rgba(221, 171, 75, 0.97) 0%, rgba(255, 252, 252, 0.906) 100%);
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popScaleIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 500px) {
  html.lang-hi #modalDownloadBtn
  {
    padding:4px;
    line-height: normal;
  }
  .invite-modal-footer
  {
    flex-direction: column;
    
  }
}

/* Spinner */
/* Modal Image Wrapper Container with Loading Support */
.modal-img-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
}

/* Loading Spinner Animation */
.modal-img-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--primary-gold, #d4af37);
    border-radius: 50%;
    animation: spinModalLoader 0.8s linear infinite;
    z-index: 1;
    display: none; 
}

.modal-img-container.loading::before {
    display: block;
}

#modalCardImg {
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

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