/* ==========================================================================
   JANNAT PALACE — Ethereal Mughal Garden & Palace Royal Wedding Invitation
   Pure CSS3 Design System • Responsive • Hardware Accelerated
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Amiri:ital,wght@0,400;0,700;1,400&family=Cinzel+Decorative:wght@400;700;900&family=Great+Vibes&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

:root {
  --color-sandstone-light: #FAF6F0;
  --color-sandstone-card: #F5EFE6;
  --color-sandstone-border: #E8DCCB;
  --color-gold-light: #F9E8B8;
  --color-gold-primary: #D4AF37;
  --color-gold-deep: #A77B1A;
  --color-gold-shadow: rgba(212, 175, 55, 0.25);
  --color-maroon-dark: #270C15;
  --color-maroon-primary: #451726;
  --color-maroon-soft: #63263B;
  --color-text-main: #2D1A22;
  --color-text-muted: #6B555E;
  --color-text-gold: #967425;
  --color-emerald-deep: #2A4736;
  --color-emerald-soft: #4A6B55;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel Decorative', 'Playfair Display', serif;
  --font-script: 'Alex Brush', 'Great Vibes', cursive;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-arch: 999px 999px 24px 24px;

  --shadow-sm: 0 4px 12px rgba(45, 26, 34, 0.05);
  --shadow-md: 0 10px 30px rgba(45, 26, 34, 0.08), 0 2px 8px rgba(212, 175, 55, 0.08);
  --shadow-lg: 0 20px 50px rgba(45, 26, 34, 0.12), 0 8px 20px rgba(212, 175, 55, 0.15);
  --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.35);
}

/* ----------------- Reset & Base Styles ----------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-sandstone-light);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 100% 50%, rgba(99, 38, 59, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* ----------------- Floating Music Disc Controller ----------------- */
.audio-controller {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.audio-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF7E2, #FAF0D8 40%, #E8CE8E 100%);
  border: 2px solid var(--color-gold-primary);
  box-shadow: 0 8px 24px rgba(45, 26, 34, 0.2), 0 0 16px var(--color-gold-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audio-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(45, 26, 34, 0.25), 0 0 22px var(--color-gold-shadow);
}

.audio-disc-icon {
  width: 24px;
  height: 24px;
  color: var(--color-maroon-primary);
  transition: transform 0.4s ease;
}

.audio-btn.is-playing .audio-disc-icon {
  animation: rotateDisc 6s linear infinite;
}

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

.audio-bars {
  position: absolute;
  bottom: 9px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.audio-bars span {
  width: 2px;
  background: var(--color-gold-deep);
  border-radius: 1px;
  height: 3px;
  transition: height 0.2s ease;
}

.audio-btn.is-playing .audio-bars span:nth-child(1) {
  animation: barBounce 0.8s ease-in-out infinite alternate;
}
.audio-btn.is-playing .audio-bars span:nth-child(2) {
  animation: barBounce 0.6s ease-in-out infinite 0.2s alternate;
}
.audio-btn.is-playing .audio-bars span:nth-child(3) {
  animation: barBounce 0.9s ease-in-out infinite 0.4s alternate;
}

@keyframes barBounce {
  0% { height: 3px; }
  100% { height: 12px; }
}

.audio-tooltip {
  position: absolute;
  right: 66px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(39, 12, 21, 0.9);
  color: var(--color-gold-light);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.audio-btn:hover .audio-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

/* ----------------- Top Sticky Monogram Bar ----------------- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
}

.top-nav.is-scrolled {
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(45, 26, 34, 0.08);
  pointer-events: auto;
}

.nav-monogram {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-maroon-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.top-nav.is-scrolled .nav-monogram {
  opacity: 1;
  transform: translateY(0);
}

.nav-monogram ⚜ {
  color: var(--color-gold-primary);
}

.nav-links {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.top-nav.is-scrolled .nav-links {
  opacity: 1;
  transform: translateY(0);
}

.nav-links a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--color-maroon-primary);
  transition: color 0.25s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ==========================================================================
   SCENE 1: THE ROYAL ARCHWAY ENTRANCE (Exact Reference from Video)
   ========================================================================== */
.hero-stage {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #270C15;
}

/* The master background image from video */
.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/hero_arch_bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 12s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-stage:hover .hero-backdrop {
  transform: scale(1.07);
}

/* Soft atmospheric vignette & light gradient */
.hero-overlay-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(250, 246, 240, 0.05) 50%,
    rgba(39, 12, 21, 0.45) 100%
  );
  pointer-events: none;
}

/* Canvas for falling blossom petals */
#petalsCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* Soaring Birds Animation across mountains */
.birds-container {
  position: absolute;
  top: 15%;
  left: 30%;
  width: 40%;
  height: 20%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.bird {
  position: absolute;
  width: 24px;
  height: 14px;
  opacity: 0.75;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
}

.bird-1 {
  top: 20%;
  left: 20%;
  animation: birdFly1 22s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.bird-2 {
  top: 35%;
  left: 60%;
  transform: scale(0.7);
  animation: birdFly2 28s cubic-bezier(0.4, 0, 0.6, 1) infinite 4s;
}

@keyframes birdFly1 {
  0% { transform: translate(-40px, 15px) scale(0.9) rotate(-3deg); }
  50% { transform: translate(50px, -20px) scale(1.05) rotate(4deg); }
  100% { transform: translate(-40px, 15px) scale(0.9) rotate(-3deg); }
}

@keyframes birdFly2 {
  0% { transform: translate(30px, -10px) scale(0.65) rotate(5deg); }
  50% { transform: translate(-40px, 20px) scale(0.75) rotate(-2deg); }
  100% { transform: translate(30px, -10px) scale(0.65) rotate(5deg); }
}

/* Hero Typography Content (Inside the Arch Portal) */
.hero-content {
  position: relative;
  z-index: 20;
  max-width: 680px;
  padding: 40px 24px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: heroEntrance 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroEntrance {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Islamic Bismillah Header */
.bismillah-text {
  font-family: var(--font-arabic);
  font-size: 1.85rem;
  line-height: 1.3;
  color: var(--color-maroon-primary);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8), 0 2px 10px rgba(212, 175, 55, 0.3);
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.hero-subtitle-tag {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3B1421;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Couple Calligraphy Names — Replicating the Video Reference */
.hero-couple-calligraphy {
  margin: 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
}

.calligraphy-name {
  font-family: var(--font-script);
  font-size: 4.8rem;
  font-weight: 400;
  color: #2F0E1B;
  text-shadow: 
    0 1px 1px rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(212, 175, 55, 0.35),
    0 4px 18px rgba(45, 26, 34, 0.2);
  letter-spacing: 0.02em;
  transition: transform 0.3s ease;
}

.calligraphy-amp {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--color-gold-deep);
  margin: -8px 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Date & Location Pill */
.hero-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(45, 26, 34, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  margin-top: 8px;
}

.hero-meta-pill span {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-maroon-primary);
}

.hero-meta-pill .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-gold-primary);
}

/* Royal Invitation CTA Button */
.hero-cta-btn {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 36px;
  border-radius: 50px;
  background: linear-gradient(135deg, #4A1628 0%, #632238 50%, #4A1628 100%);
  color: #FFF6E5;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1.5px solid var(--color-gold-primary);
  box-shadow: 0 10px 30px rgba(45, 26, 34, 0.35), 0 0 25px rgba(212, 175, 55, 0.3);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.hero-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  transition: left 0.7s ease;
}

.hero-cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px rgba(45, 26, 34, 0.45), 0 0 35px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #5A1B32 0%, #752A44 50%, #5A1B32 100%);
}

.hero-cta-btn:hover::before {
  left: 150%;
}

.hero-cta-btn ⚜ {
  color: var(--color-gold-primary);
  font-size: 1.1rem;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 20;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.scroll-hint:hover {
  opacity: 1;
}

.scroll-hint span {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-maroon-primary);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.scroll-chevron {
  width: 18px;
  height: 18px;
  stroke: var(--color-maroon-primary);
  animation: chevronBounce 1.8s ease-in-out infinite;
}

@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Responsive adjustments for Hero */
@media (max-width: 640px) {
  .hero-content {
    padding: 30px 16px;
    gap: 10px;
  }
  .bismillah-text {
    font-size: 1.55rem;
  }
  .hero-subtitle-tag {
    font-size: 0.95rem;
  }
  .calligraphy-name {
    font-size: 3.5rem;
  }
  .calligraphy-amp {
    font-size: 2.2rem;
  }
  .hero-meta-pill {
    padding: 6px 16px;
    font-size: 0.74rem;
  }
  .hero-cta-btn {
    padding: 13px 28px;
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .calligraphy-name {
    font-size: 3rem;
  }
  .bismillah-text {
    font-size: 1.35rem;
  }
}

/* ==========================================================================
   MAIN CONTENT SECTIONS & CONTAINER
   ========================================================================== */
.site-wrapper {
  position: relative;
  z-index: 30;
  background-color: var(--color-sandstone-light);
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

@media (max-width: 768px) {
  .section-container {
    padding: 60px 18px;
  }
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
  margin-bottom: 8px;
}

.section-tag::before, .section-tag::after {
  content: '✦';
  font-size: 0.6rem;
  color: var(--color-gold-primary);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--color-maroon-primary);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  font-weight: 400;
  line-height: 1.7;
}

.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 0 auto;
  width: 100%;
  max-width: 240px;
}

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

.gold-divider .symbol {
  color: var(--color-gold-primary);
  font-size: 1.1rem;
}

@media (max-width: 640px) {
  .section-title { font-size: 1.85rem; }
  .section-subtitle { font-size: 0.85rem; }
}

/* ==========================================================================
   SCENE 2: SACRED BLESSING & QURANIC VERSE
   ========================================================================== */
.blessing-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--color-sandstone-card);
  border: 1px solid var(--color-sandstone-border);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.blessing-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.blessing-arabic {
  font-family: var(--font-arabic);
  font-size: 2rem;
  line-height: 1.8;
  color: var(--color-maroon-primary);
  margin: 20px 0;
  padding: 0 10px;
  direction: rtl;
}

.blessing-translation {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text-main);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 12px auto;
}

.blessing-ref {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
  font-weight: 600;
}

@media (max-width: 640px) {
  .blessing-card { padding: 36px 20px; }
  .blessing-arabic { font-size: 1.55rem; line-height: 1.7; }
  .blessing-translation { font-size: 0.92rem; }
}

/* ==========================================================================
   SCENE 3: THE ROYAL COUPLE
   ========================================================================== */
.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  max-width: 980px;
  margin: 0 auto;
}

.couple-card {
  background: var(--color-sandstone-card);
  border: 1px solid var(--color-sandstone-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.couple-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Arch-shaped portrait frame */
.portrait-arch-frame {
  width: 220px;
  height: 290px;
  margin: 0 auto 24px auto;
  border-radius: 110px 110px 20px 20px;
  overflow: hidden;
  border: 3px solid var(--color-gold-primary);
  box-shadow: 0 10px 25px rgba(45, 26, 34, 0.15), 0 0 16px var(--color-gold-shadow);
  position: relative;
}

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

.couple-card:hover .portrait-img {
  transform: scale(1.05);
}

.couple-title-role {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
  font-weight: 600;
  margin-bottom: 6px;
}

.couple-person-name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--color-maroon-primary);
  margin-bottom: 8px;
}

.couple-parents {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Center Monogram Emblem */
.couple-center-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.monogram-badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF7E4, #F2E0BD);
  border: 2px solid var(--color-gold-primary);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--color-maroon-primary);
}

.vertical-gold-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--color-gold-primary), transparent);
}

@media (max-width: 880px) {
  .couple-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .couple-center-divider {
    order: -1;
  }
  .vertical-gold-line {
    display: none;
  }
  .portrait-arch-frame {
    width: 190px;
    height: 250px;
  }
}

/* ==========================================================================
   SCENE 4: LIVE COUNTDOWN TIMER
   ========================================================================== */
.countdown-section-wrapper {
  background: linear-gradient(180deg, rgba(39, 12, 21, 0.03) 0%, rgba(39, 12, 21, 0.08) 100%);
  border-top: 1px solid var(--color-sandstone-border);
  border-bottom: 1px solid var(--color-sandstone-border);
  padding: 60px 24px;
}

.countdown-box {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.countdown-item {
  background: #FFFFFF;
  border: 1px solid var(--color-sandstone-border);
  border-radius: var(--radius-md);
  padding: 24px 12px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.countdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-deep), var(--color-gold-primary), var(--color-gold-deep));
}

.countdown-item:hover {
  transform: translateY(-4px);
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-maroon-primary);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.countdown-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
}

@media (max-width: 640px) {
  .countdown-grid { gap: 8px; }
  .countdown-item { padding: 16px 8px; }
  .countdown-number { font-size: 1.85rem; }
  .countdown-label { font-size: 0.65rem; }
}

/* ==========================================================================
   SCENE 5: EVENTS & CELEBRATION ITINERARY
   ========================================================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.event-card {
  background: var(--color-sandstone-card);
  border: 1px solid var(--color-sandstone-border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.event-card-arch-header {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF6E5, #F3E2BD);
  border: 1.5px solid var(--color-gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-maroon-primary);
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.event-arabic-title {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  color: var(--color-gold-deep);
  margin-bottom: 2px;
}

.event-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-maroon-primary);
  margin-bottom: 12px;
}

.event-time-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(69, 23, 38, 0.06);
  border: 1px solid rgba(69, 23, 38, 0.12);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-maroon-primary);
  margin-bottom: 16px;
}

.event-desc {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.event-meta-info {
  border-top: 1px solid var(--color-sandstone-border);
  padding-top: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.event-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
}

.event-meta-row svg {
  width: 16px;
  height: 16px;
  color: var(--color-gold-deep);
  shrink: 0;
  margin-top: 2px;
}

.event-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid var(--color-sandstone-border);
  background: #FFFFFF;
  color: var(--color-maroon-primary);
}

.btn-secondary:hover {
  background: var(--color-maroon-primary);
  color: #FFFFFF;
  border-color: var(--color-maroon-primary);
}

.btn-gold-outline {
  border-color: var(--color-gold-primary);
  color: var(--color-gold-deep);
}

.btn-gold-outline:hover {
  background: var(--color-gold-primary);
  color: #FFFFFF;
  border-color: var(--color-gold-primary);
}

@media (max-width: 960px) {
  .events-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

/* ==========================================================================
   SCENE 6: LOVE STORY MILESTONES
   ========================================================================== */
.timeline-wrapper {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--color-gold-primary) 10%, var(--color-gold-primary) 90%, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  display: flex;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: calc(50% + 28px);
  text-align: right;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: calc(50% + 28px);
  text-align: left;
}

.timeline-node {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--color-gold-primary);
  box-shadow: 0 0 12px var(--color-gold-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-maroon-primary);
  font-size: 0.85rem;
  z-index: 2;
}

.timeline-card {
  background: var(--color-sandstone-card);
  border: 1px solid var(--color-sandstone-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-4px);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  color: var(--color-gold-deep);
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-maroon-primary);
  margin-bottom: 8px;
}

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

@media (max-width: 640px) {
  .timeline-wrapper::before {
    left: 20px;
  }
  .timeline-node {
    left: 20px;
  }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 52px;
    padding-right: 0;
    text-align: left;
  }
}

/* ==========================================================================
   SCENE 7: COUTURE PHOTO GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1050px;
  margin: 0 auto;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 1px solid var(--color-sandstone-border);
  background: #000;
}

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

.gallery-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.9);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(39, 12, 21, 0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-caption {
  color: #FFF6E5;
  font-size: 0.82rem;
  font-family: var(--font-serif);
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 6, 11, 0.94);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: background 0.25s ease;
}

.lightbox-close-btn:hover {
  background: rgba(212, 175, 55, 0.8);
}

/* ==========================================================================
   SCENE 8: DIGITAL SHAGUN / GIFT REGISTRY
   ========================================================================== */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.gift-card {
  background: var(--color-sandstone-card);
  border: 1px solid var(--color-sandstone-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.gift-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF7E4, #F2E0BD);
  border: 1px solid var(--color-gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-maroon-primary);
  font-size: 1.35rem;
}

.gift-bank-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-maroon-primary);
  margin-bottom: 8px;
}

.gift-account-number {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-maroon-primary);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.gift-holder-name {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 30px;
  background: #FFFFFF;
  border: 1.5px solid var(--color-gold-primary);
  color: var(--color-gold-deep);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.copy-btn:hover {
  background: var(--color-gold-primary);
  color: #FFFFFF;
}

@media (max-width: 680px) {
  .gifts-grid {
    grid-template-columns: 1fr;
  }
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(39, 12, 21, 0.95);
  color: #FFF6E5;
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 0.84rem;
  font-weight: 500;
  border: 1px solid var(--color-gold-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2500;
}

.toast-notice.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   SCENE 9: RSVP SYSTEM
   ========================================================================== */
.rsvp-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: var(--color-sandstone-card);
  border: 1px solid var(--color-sandstone-border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.rsvp-form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.rsvp-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-maroon-primary);
  letter-spacing: 0.04em;
}

.rsvp-input, .rsvp-select, .rsvp-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-sandstone-border);
  background: #FFFFFF;
  color: var(--color-text-main);
  font-size: 0.9rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.rsvp-input:focus, .rsvp-select:focus, .rsvp-textarea:focus {
  outline: none;
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.rsvp-textarea {
  resize: vertical;
  min-height: 90px;
}

.rsvp-submit-btn {
  width: 100%;
  padding: 15px;
  border-radius: 40px;
  background: linear-gradient(135deg, #4A1628, #632238);
  border: 1.5px solid var(--color-gold-primary);
  color: #FFF6E5;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.rsvp-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  background: linear-gradient(135deg, #5A1B32, #752A44);
}

.rsvp-success-message {
  display: none;
  background: rgba(42, 71, 54, 0.08);
  border: 1px solid var(--color-emerald-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  color: var(--color-emerald-deep);
  margin-top: 24px;
}

.rsvp-success-message h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .rsvp-wrapper { padding: 32px 20px; }
}

/* ==========================================================================
   SCENE 10: WISHES GUESTBOOK & PRAYER WALL
   ========================================================================== */
.wishes-container {
  max-width: 680px;
  margin: 36px auto 0 auto;
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
}

.wishes-card {
  background: #FFFFFF;
  border: 1px solid var(--color-sandstone-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.wish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.wish-author {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-maroon-primary);
}

.wish-time {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.wish-body {
  font-size: 0.85rem;
  color: var(--color-text-main);
  line-height: 1.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.royal-footer {
  text-align: center;
  padding: 80px 24px 60px 24px;
  background: #270C15;
  color: #FFF6E5;
  position: relative;
  overflow: hidden;
}

.footer-monogram {
  font-family: var(--font-script);
  font-size: 4rem;
  color: var(--color-gold-primary);
  margin-bottom: 12px;
  display: block;
}

.footer-couple-names {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.footer-gratitude {
  font-size: 0.85rem;
  color: rgba(255, 246, 229, 0.7);
  max-width: 480px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--color-gold-light);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.back-to-top-btn:hover {
  background: var(--color-gold-primary);
  color: #270C15;
}

