/* ==========================================================================
   ROYAL ISLAMIC WEDDING INVITATION — MD KARIMULLAH & HINA QUADRI
   Theme: Royal Emerald Green (#063C30, #03251F) & Antique Gold (#C9A35B, #E6D3A0)
   ========================================================================== */

/* --- 1. CSS VARIABLES & DESIGN TOKENS --- */
:root {
  --color-emerald-deep: #063c30;
  --color-forest-dark: #03251f;
  --color-jade-secondary: #145344;
  --color-emerald-card: #084336;
  --color-emerald-card-subtle: rgba(8, 67, 54, 0.72);
  --color-emerald-border: rgba(201, 163, 91, 0.35);

  --color-gold-antique: #c9a35b;
  --color-gold-champagne: #e6d3a0;
  --color-gold-light: #fbebb8;
  --color-gold-dark: #966f28;
  --color-gold-burnt: #b58832;

  --color-ivory-warm: #fff8ea;
  --color-ivory-muted: rgba(255, 248, 234, 0.78);
  --color-ivory-dim: rgba(255, 248, 234, 0.55);
  --color-white: #ffffff;

  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cinzel Decorative', 'Cinzel', 'Playfair Display', serif;
  --font-cinzel: 'Cinzel', serif;
  --font-arabic: 'Amiri', 'Noto Naskh Arabic', 'Traditional Arabic', serif;
  --font-sans: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Great Vibes', 'Alex Brush', cursive;

  --gold-gradient: linear-gradient(135deg, #fbebb8 0%, #e6d3a0 25%, #c9a35b 55%, #966f28 100%);
  --gold-gradient-soft: linear-gradient(135deg, #f7dfa5 0%, #c9a35b 50%, #966f28 100%);
  --gold-gradient-h: linear-gradient(90deg, transparent 0%, #c9a35b 50%, transparent 100%);
  --emerald-card-gradient: linear-gradient(160deg, rgba(14, 75, 61, 0.85) 0%, rgba(4, 38, 31, 0.95) 100%);
  --emerald-card-glow: 0 10px 35px -5px rgba(0, 0, 0, 0.5), 0 0 24px rgba(201, 163, 91, 0.12);
}

/* --- 2. BASE & RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-forest-dark);
  color: var(--color-ivory-warm);
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility focus styles */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-gold-champagne);
  outline-offset: 3px;
}

/* --- 3. BACKGROUND ARCHITECTURE & TEXTURES --- */

/* Fixed background container */
.bg-fixed-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Base rich emerald radial depth */
.bg-radial-depth {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 15%, #0d5444 0%, #063c30 40%, #03251f 85%, #021a16 100%);
}

/* Damask / Woven paper texture emulation with subtle SVG grain */
.bg-damask-texture {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(201, 163, 91, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px, 24px 24px;
}

/* Repeated Calligraphy Background: 'An-nikah min sunnati' (النِّكَاحُ مِنْ سُنَّتِي) */
.bg-calligraphy-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='120' viewBox='0 0 260 120'%3E%3Ctext x='130' y='60' text-anchor='middle' font-family='Amiri, serif' font-size='21' fill='%23e6d3a0' letter-spacing='1'%3E%D8%A7%D9%84%D9%86%D9%91%D9%90%D9%83%D9%8E%D8%A7%D8%AD%D9%8F %D9%85%D9%90%D9%86%D9%92 %D8%B3%D9%8F%D9%86%D9%91%D9%8E%D8%AA%D9%90%D9%8A%3C/text%3E%3Ccircle cx='10' cy='10' r='1.5' fill='%23c9a35b' opacity='0.4'/%3E%3Ccircle cx='250' cy='110' r='1.5' fill='%23c9a35b' opacity='0.4'/%3E%3Cpath d='M60 10 L130 30 L200 10' stroke='%23c9a35b' stroke-width='0.4' fill='none' opacity='0.25'/%3E%3Cpath d='M60 110 L130 90 L200 110' stroke='%23c9a35b' stroke-width='0.4' fill='none' opacity='0.25'/%3E%3C/svg%3E");
  background-size: 260px 120px;
  animation: subtlePatternFloat 60s linear infinite alternate;
}

@keyframes subtlePatternFloat {
  0% { background-position: 0 0; }
  100% { background-position: 30px 40px; }
}

/* Islamic Geometric Lattice (Octagram & Girih motifs) */
.bg-islamic-lattice {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg stroke='%23c9a35b' stroke-width='0.6' fill='none'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3Crect x='11.72' y='11.72' width='56.56' height='56.56' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='14'/%3E%3Ccircle cx='40' cy='40' r='6' stroke-width='0.4'/%3E%3Ccircle cx='0' cy='0' r='10'/%3E%3Ccircle cx='80' cy='0' r='10'/%3E%3Ccircle cx='0' cy='80' r='10'/%3E%3Ccircle cx='80' cy='80' r='10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* Vignette border framing */
.bg-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px rgba(1, 15, 12, 0.8), inset 0 0 240px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}

/* Canvas for Interactive Gold Dust Particles */
#goldDustCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Content Container wrapper above backgrounds */
.content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* --- 4. FLOATING LUMINOUS SPHERES & PEARL ORNAMENTS --- */
.ambient-elements-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Luminous glowing spheres */
.luminous-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.38;
  animation: sphereDrift ease-in-out infinite alternate;
}

.sphere-1 {
  width: 280px;
  height: 280px;
  top: 8%;
  left: -80px;
  background: radial-gradient(circle, rgba(230, 211, 160, 0.28) 0%, rgba(20, 83, 68, 0.15) 60%, transparent 80%);
  animation-duration: 22s;
}

.sphere-2 {
  width: 320px;
  height: 320px;
  top: 42%;
  right: -90px;
  background: radial-gradient(circle, rgba(201, 163, 91, 0.22) 0%, rgba(6, 60, 48, 0.3) 65%, transparent 80%);
  animation-duration: 28s;
  animation-delay: -7s;
}

.sphere-3 {
  width: 240px;
  height: 240px;
  bottom: 12%;
  left: 15%;
  background: radial-gradient(circle, rgba(251, 235, 184, 0.18) 0%, rgba(14, 75, 61, 0.2) 60%, transparent 80%);
  animation-duration: 25s;
  animation-delay: -12s;
}

@keyframes sphereDrift {
  0% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-40px) translateX(25px) scale(1.08); }
  100% { transform: translateY(30px) translateX(-20px) scale(0.95); }
}

/* Floating Pearl & Balloon-like Ornaments */
.floating-pearl-ornament {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 35% 30%, rgba(255, 248, 234, 0.85) 0%, rgba(230, 211, 160, 0.5) 45%, rgba(201, 163, 91, 0.2) 75%, transparent 100%);
  box-shadow: 0 0 20px rgba(230, 211, 160, 0.25), inset -2px -2px 6px rgba(150, 111, 40, 0.4);
  animation: pearlFloat ease-in-out infinite alternate;
}

.pearl-1 {
  width: 26px;
  height: 26px;
  top: 18%;
  left: 8%;
  opacity: 0.6;
  animation-duration: 16s;
}

.pearl-2 {
  width: 18px;
  height: 18px;
  top: 32%;
  right: 12%;
  opacity: 0.5;
  animation-duration: 21s;
  animation-delay: -4s;
}

.pearl-3 {
  width: 32px;
  height: 32px;
  top: 68%;
  left: 5%;
  opacity: 0.45;
  animation-duration: 19s;
  animation-delay: -9s;
}

.pearl-4 {
  width: 22px;
  height: 22px;
  top: 85%;
  right: 7%;
  opacity: 0.55;
  animation-duration: 24s;
  animation-delay: -14s;
}

@keyframes pearlFloat {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-35px) scale(1.05); }
  100% { transform: translateY(-70px) scale(0.98); }
}

/* Twinkling star particle */
.twinkle-star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-gold-champagne);
  border-radius: 50%;
  box-shadow: 0 0 8px 1px rgba(230, 211, 160, 0.8);
  animation: starPulse 3s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 0.95; transform: scale(1.3); }
}

/* --- 5. TYPOGRAPHY & GOLD METALLIC EFFECTS --- */

.gold-text-metallic {
  background: linear-gradient(135deg, #fff3cd 0%, #fbebb8 20%, #e6d3a0 45%, #c9a35b 75%, #966f28 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--color-gold-champagne);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.gold-text-subtle {
  color: var(--color-gold-champagne);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.arabic-bismillah {
  font-family: var(--font-arabic);
  line-height: 2.3 !important;
  padding-bottom: 18px;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
  color: var(--color-gold-champagne);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  display: block;
}

.arabic-dua {
  font-family: var(--font-arabic);
  line-height: 2.2;
  color: var(--color-gold-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Shimmer Gold Line */
.shimmer-gold-line {
  height: 2px;
  background: var(--gold-gradient-h);
  background-size: 200% 100%;
  animation: shimmerMove 3.5s ease-in-out infinite;
}

@keyframes shimmerMove {
  0%, 100% { background-position: -200% 0; }
  50% { background-position: 200% 0; }
}

/* Ornamental Arabesque Section Divider */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 0;
  max-width: 480px;
  margin: 0 auto;
}

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

.ornament-divider .emblem {
  color: var(--color-gold-champagne);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- 6. LUXURY ISLAMIC MEHRAB & EVENT CARDS --- */

.royal-card {
  position: relative;
  background: var(--emerald-card-gradient);
  border: 1.5px solid var(--color-emerald-border);
  border-radius: 20px;
  box-shadow: var(--emerald-card-glow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.royal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 163, 91, 0.65);
  box-shadow: 0 16px 45px -8px rgba(0, 0, 0, 0.65), 0 0 32px rgba(201, 163, 91, 0.22);
}

/* Mehrab Arch styling for Couple and Ceremony cards */
.card-mehrab-top {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: -1px;
}

.mehrab-arch-svg {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
}

.mehrab-body {
  border-top: none !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

/* Corner Ornaments for royal frames */
.corner-filigree {
  position: absolute;
  width: 24px;
  height: 24px;
  color: var(--color-gold-antique);
  pointer-events: none;
  opacity: 0.85;
}

.corner-filigree-tl { top: 12px; left: 12px; }
.corner-filigree-tr { top: 12px; right: 12px; transform: scaleX(-1); }
.corner-filigree-bl { bottom: 12px; left: 12px; transform: scaleY(-1); }
.corner-filigree-br { bottom: 12px; right: 12px; transform: scale(-1); }

/* --- 7. BUTTONS & ACTIONS --- */

.btn-royal-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold-gradient);
  color: #03251f;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 13px 26px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(201, 163, 91, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 48px;
}

.btn-royal-gold:hover {
  background: linear-gradient(135deg, #ffffff 0%, #fbebb8 40%, #c9a35b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 163, 91, 0.55);
}

.btn-royal-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(3, 37, 31, 0.6);
  color: var(--color-gold-champagne);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 13px 24px;
  border-radius: 9999px;
  border: 1.5px solid var(--color-gold-antique);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 48px;
}

.btn-royal-outline:hover {
  background: rgba(201, 163, 91, 0.18);
  border-color: var(--color-gold-light);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-whatsapp-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 26px;
  border-radius: 9999px;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 48px;
}

.btn-whatsapp-green:hover {
  background: linear-gradient(135deg, #2cf074 0%, #15a594 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(37, 211, 102, 0.5);
}

/* WhatsApp Pulse Animation */
@keyframes waPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4), 0 4px 18px rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0), 0 6px 24px rgba(37, 211, 102, 0.5); }
}

.wa-pulse {
  animation: waPulse 2.4s ease-in-out infinite;
}

/* --- 8. TOP NAVIGATION BAR --- */
.top-nav-bar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: calc(100% - 28px);
  max-width: 640px;
  background: rgba(3, 37, 31, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-emerald-border);
  border-radius: 9999px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.top-nav-brand {
  flex-shrink: 0;
  white-space: nowrap;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.top-nav-link {
  color: var(--color-ivory-dim);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-nav-link:hover, .top-nav-link.active {
  color: var(--color-gold-light);
  background: rgba(201, 163, 91, 0.15);
}

.top-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .top-nav-bar {
    width: auto;
    max-width: 920px;
    padding: 6px 18px;
    gap: 14px;
  }
}

.nav-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-emerald-border);
  background: rgba(20, 83, 68, 0.4);
  color: var(--color-gold-champagne);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-icon-btn:hover {
  background: var(--color-gold-antique);
  color: var(--color-forest-dark);
}

/* Mobile Menu Hamburger Button */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(20, 83, 68, 0.9), rgba(6, 60, 48, 0.95));
  border: 1.5px solid var(--color-gold-antique);
  border-radius: 9999px;
  padding: 6px 14px;
  color: var(--color-gold-light);
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 36px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.mobile-menu-btn:hover, .mobile-menu-btn:active {
  background: var(--gold-gradient);
  border-color: var(--color-gold-light);
  color: var(--color-forest-dark);
  transform: translateY(-1px);
}

.mobile-menu-btn:hover span, .mobile-menu-btn:active span,
.mobile-menu-btn:hover svg, .mobile-menu-btn:active svg {
  color: var(--color-forest-dark) !important;
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 18, 14, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-drawer-panel {
  position: relative;
  z-index: 201;
  width: 100%;
  max-width: 320px;
  height: 100%;
  background: linear-gradient(175deg, #074235 0%, #03251f 100%);
  border-left: 1.5px solid var(--color-gold-antique);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(201, 163, 91, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-overlay.active .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(201, 163, 91, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 37, 31, 0.7);
}

.mobile-drawer-body {
  padding: 14px 16px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(4, 46, 38, 0.7);
  border: 1px solid rgba(201, 163, 91, 0.2);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-drawer-link:hover, .mobile-drawer-link:active {
  background: rgba(20, 83, 68, 0.9);
  border-color: var(--color-gold-light);
  transform: translateX(3px);
}

.drawer-icon {
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 37, 31, 0.8);
  border-radius: 10px;
  border: 1px solid rgba(201, 163, 91, 0.25);
  flex-shrink: 0;
}

.drawer-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-gold-light);
  line-height: 1.2;
}

.drawer-desc {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--color-ivory-dim);
  margin-top: 2px;
}

.mobile-drawer-footer {
  padding: 14px 18px 24px;
  border-top: 1px solid rgba(201, 163, 91, 0.2);
  background: rgba(3, 37, 31, 0.7);
}

/* --- 9. FLOATING CONTROLS (AUDIO & QUICK ACTIONS) --- */
.floating-dock {
  position: fixed;
  bottom: 22px;
  right: 18px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dock-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  border: 1.5px solid var(--color-gold-antique);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  min-width: 44px;
  min-height: 44px;
}

.dock-btn:active {
  transform: scale(0.92);
}

.dock-btn-music {
  background: var(--gold-gradient);
  color: #03251f;
  animation: musicGlow 3s ease-in-out infinite;
}

@keyframes musicGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 163, 91, 0.4), 0 6px 20px rgba(0, 0, 0, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(201, 163, 91, 0), 0 8px 24px rgba(201, 163, 91, 0.35); }
}

.dock-btn-music .disk-icon {
  animation: spinSlow 3.5s linear infinite;
}

.dock-btn-music.paused .disk-icon {
  animation-play-state: paused;
}

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

.dock-btn-calendar {
  background: var(--color-emerald-deep);
  color: var(--color-gold-champagne);
}

.dock-btn-calendar:hover {
  background: var(--color-jade-secondary);
  color: var(--color-gold-light);
}

/* --- 10. HERO CRESCENT & STAR EMBLEM --- */
.hero-emblem-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-crescent-svg {
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 4px 18px rgba(201, 163, 91, 0.45));
}

.crescent-halo {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 163, 91, 0.25) 0%, transparent 70%);
  filter: blur(12px);
  z-index: -1;
  animation: haloBreath 4s ease-in-out infinite alternate;
}

@keyframes haloBreath {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.9; }
}

/* --- 11. EVENT COUNTDOWN BOXES --- */
.countdown-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.countdown-box {
  flex: 1;
  min-width: 76px;
  background: linear-gradient(155deg, rgba(20, 83, 68, 0.9), rgba(6, 60, 48, 0.95));
  border: 1.5px solid rgba(201, 163, 91, 0.5);
  border-radius: 16px;
  padding: 14px 6px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 0 16px rgba(201, 163, 91, 0.08);
  position: relative;
  overflow: hidden;
  animation: cdGlow 3.5s ease-in-out infinite;
}

@keyframes cdGlow {
  0%, 100% { border-color: rgba(201, 163, 91, 0.4); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4); }
  50% { border-color: rgba(251, 235, 184, 0.85); box-shadow: 0 6px 24px rgba(201, 163, 91, 0.28); }
}

.countdown-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 235, 184, 0.8), transparent);
}

.countdown-val {
  display: block;
  font-family: var(--font-cinzel);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-gold-light);
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.countdown-lbl {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-ivory-dim);
  margin-top: 4px;
}

/* Completed countdown banner */
.countdown-completed-banner {
  background: linear-gradient(135deg, rgba(20, 83, 68, 0.95), rgba(6, 60, 48, 0.95));
  border: 1.5px solid var(--color-gold-antique);
  border-radius: 18px;
  padding: 18px 24px;
  text-align: center;
  box-shadow: var(--emerald-card-glow);
}

/* --- 12. TIMELINE ITINERARY --- */
.timeline-container {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-left: 28px;
}

@media (min-width: 640px) {
  .timeline-container {
    padding-left: 36px;
  }
}

.timeline-stem-line {
  position: absolute;
  left: 12px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: linear-gradient(180deg, var(--color-gold-champagne) 0%, var(--color-gold-antique) 50%, var(--color-gold-dark) 100%);
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(201, 163, 91, 0.35);
}

@media (min-width: 640px) {
  .timeline-stem-line {
    left: 18px;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 34px;
}

.timeline-marker {
  position: absolute;
  left: -28px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: 3px solid var(--color-forest-dark);
  box-shadow: 0 0 12px rgba(201, 163, 91, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

@media (min-width: 640px) {
  .timeline-marker {
    left: -36px;
    width: 38px;
    height: 38px;
    top: 20px;
  }
}

.timeline-marker svg {
  width: 14px;
  height: 14px;
  color: #03251f;
}

@media (min-width: 640px) {
  .timeline-marker svg {
    width: 18px;
    height: 18px;
  }
}

.timeline-card-highlight {
  border: 1.5px solid var(--color-gold-antique);
  background: linear-gradient(160deg, rgba(20, 83, 68, 0.95) 0%, rgba(6, 60, 48, 0.98) 100%);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 28px rgba(201, 163, 91, 0.2);
}

/* Sub-event pills inside Day 3 card */
.subevent-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(3, 37, 31, 0.6);
  border: 1px solid rgba(201, 163, 91, 0.22);
  border-radius: 14px;
  padding: 10px 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.subevent-pill:hover {
  background: rgba(20, 83, 68, 0.5);
  border-color: rgba(201, 163, 91, 0.45);
}

.subevent-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.subevent-icon-box svg {
  width: 20px;
  height: 20px;
  color: #03251f;
}

/* --- 13. CHASHM-E-BARAAH (FAMILY COMPLIMENTS) --- */
.compliments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 580px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .compliments-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

.compliment-pill {
  background: rgba(3, 37, 31, 0.65);
  border: 1px solid rgba(201, 163, 91, 0.25);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  transition: all 0.25s ease;
}

.compliment-pill:hover {
  border-color: var(--color-gold-champagne);
  background: rgba(20, 83, 68, 0.6);
  transform: translateY(-2px);
}

/* --- 14. MODAL / DIALOG (CALENDAR & SHARE) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(1, 18, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, #0a473a 0%, #03251f 100%);
  border: 1.5px solid var(--color-gold-antique);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(201, 163, 91, 0.25);
  padding: 28px 24px;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(201, 163, 91, 0.15);
  border: 1px solid rgba(201, 163, 91, 0.3);
  color: var(--color-gold-champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--color-gold-antique);
  color: #03251f;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  z-index: 160;
  background: var(--gold-gradient);
  color: #03251f;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- 15. HERO ENTRANCE & SCROLL-REVEAL SYSTEM --- */

/* Immediate Hero animations that run on page load without waiting for scroll */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroScaleUp {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-enter-up {
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-enter-scale {
  animation: heroScaleUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-delay-1 { animation-delay: 0.12s; }
.hero-delay-2 { animation-delay: 0.24s; }
.hero-delay-3 { animation-delay: 0.36s; }
.hero-delay-4 { animation-delay: 0.48s; }

/* Scroll-triggered reveal elements for below-the-fold content */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale-up {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-up.is-revealed,
.reveal-fade-left.is-revealed,
.reveal-fade-right.is-revealed,
.reveal-scale-up.is-revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Delay modifiers */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* --- 16. ACCESSIBILITY & PREFERS-REDUCED-MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-fade-up,
  .reveal-fade-left,
  .reveal-fade-right,
  .reveal-scale-up {
    opacity: 1 !important;
    transform: none !important;
  }

  .bg-calligraphy-pattern {
    animation: none !important;
  }

  .luminous-sphere,
  .floating-pearl-ornament,
  .twinkle-star,
  .dock-btn-music .disk-icon {
    animation: none !important;
  }
}

/* --- 17. RESPONSIVE OPTIMIZATIONS (320px - 1440px) --- */
@media (max-width: 640px) {
  .top-nav-bar {
    padding: 4px 10px;
    width: calc(100% - 16px);
    top: 8px;
  }

  .top-nav-links {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: calc(100% - 110px);
    padding: 0 2px;
  }

  .top-nav-links::-webkit-scrollbar {
    display: none;
  }

  .top-nav-link {
    font-size: 11px;
    padding: 4px 7px;
    min-height: 32px;
    white-space: nowrap;
  }

  .top-nav-link span.long-text {
    display: none;
  }

  .nav-icon-btn {
    width: 32px;
    height: 32px;
  }

  .countdown-val {
    font-size: 24px;
  }

  .countdown-lbl {
    font-size: 10px;
  }

  .countdown-box {
    min-width: 68px;
    padding: 10px 4px;
  }

  .btn-royal-gold,
  .btn-royal-outline,
  .btn-whatsapp-green {
    width: 100%;
    padding: 12px 18px;
    font-size: 13px;
  }
}
