/* ============================================================
   FAHIM ❤ HIBA — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Great+Vibes&family=Poppins:wght@300;400;500;600&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');
@import 'variables.css';
@import 'animations.css';

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

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
  cursor: none;
  transition: background-color var(--transition-md), color var(--transition-md);
}

body.loading { overflow: hidden; }

::selection {
  background: rgba(212, 175, 55, 0.3);
  color: var(--dark);
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: none; border: none; background: none; font-family: var(--font-body); }
ul, ol { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--gradient-gold);
  border-radius: var(--border-radius-full);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container--wide {
  max-width: var(--container-wide);
  padding: 0 var(--space-8);
}

/* ── Section ── */
section {
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gradient-gold);
  opacity: 0.7;
}
.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}
.section-title em {
  font-style: italic;
  color: var(--crimson);
}
.section-subtitle {
  font-size: var(--text-md);
  color: var(--text-muted);
  font-weight: 300;
}

/* ── Gold Divider ── */
.gold-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) auto;
  width: fit-content;
}
.gold-divider__line {
  width: 80px;
  height: 1px;
  background: var(--gradient-gold-h);
  opacity: 0.6;
}
.gold-divider__ornament {
  color: var(--gold);
  font-size: var(--text-lg);
  animation: rotateFloat 6s ease-in-out infinite;
}

/* ── Islamic Background Pattern ── */
.islamic-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.5' opacity='0.4'%3E%3Cpolygon points='60,10 110,30 110,90 60,110 10,90 10,30'/%3E%3Cpolygon points='60,25 95,40 95,80 60,95 25,80 25,40'/%3E%3Cline x1='60' y1='10' x2='60' y2='25'/%3E%3Cline x1='110' y1='30' x2='95' y2='40'/%3E%3Cline x1='110' y1='90' x2='95' y2='80'/%3E%3Cline x1='60' y1='110' x2='60' y2='95'/%3E%3Cline x1='10' y1='90' x2='25' y2='80'/%3E%3Cline x1='10' y1='30' x2='25' y2='40'/%3E%3Ccircle cx='60' cy='60' r='15'/%3E%3Ccircle cx='60' cy='60' r='5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: var(--pattern-opacity);
  pointer-events: none;
  z-index: 0;
  animation: patternDrift 30s linear infinite;
}

/* ── Floating Petals ── */
.petals-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-above);
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -60px;
  width: 20px;
  height: 16px;
  pointer-events: none;
  will-change: transform, opacity;
  animation: petalFall var(--duration, 8s) var(--delay, 0s) linear infinite;
}

.petal svg {
  width: 100%;
  height: 100%;
  fill: var(--crimson);
  opacity: 0.7;
  filter: drop-shadow(0 2px 4px rgba(161,0,33,0.3));
}

/* ============================================================
   CURSOR
   ============================================================ */
#cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, opacity 0.3s;
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease-out-expo),
              width 0.4s var(--ease-spring),
              height 0.4s var(--ease-spring),
              border-color 0.3s,
              opacity 0.3s;
  opacity: 0.7;
}

#cursor-ring.hovering {
  width: 65px;
  height: 65px;
  border-color: var(--crimson);
  opacity: 1;
  background: rgba(212, 175, 55, 0.06);
}

#cursor-heart {
  position: fixed;
  font-size: 18px;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s var(--ease-spring);
  opacity: 0;
  color: var(--crimson);
}

#cursor-heart.visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  animation: heartbeat 1.2s ease-in-out infinite;
}

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: #0e0806;
  z-index: var(--z-loader);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#loader.hiding {
  animation: loaderFadeOut 1s var(--ease-in-expo) forwards;
}

#loader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.loader-bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: var(--gold);
  opacity: 0;
  letter-spacing: 0.05em;
  text-shadow: 0 0 30px rgba(212,175,55,0.5);
  animation: fadeUp 1s var(--ease-out-expo) 0.5s forwards;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700; /* Bold as requested */
  letter-spacing: 0.12em;
  opacity: 0;
  background: var(--gradient-gold-h);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeIn 1.2s ease 1.2s forwards, goldShimmer 3s linear 2s infinite;
}

.loader-logo span.amp {
  -webkit-text-fill-color: var(--gold-light);
  color: var(--gold-light);
  background: none;
  font-family: var(--font-script);
  font-weight: 400;
  display: inline-block;
}

@keyframes seqAnim {
  0%   { opacity: 0; transform: translateY(15px); filter: blur(8px); }
  15%  { opacity: 1; transform: translateY(0); filter: blur(0); }
  85%  { opacity: 1; transform: translateY(0); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-15px); filter: blur(8px); }
}

@keyframes seqAnimIn {
  0%   { opacity: 0; transform: translateY(15px); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.loader-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.05);
}

.loader-progress-bar {
  height: 100%;
  background: var(--gradient-gold);
  animation: progressBar 3.5s var(--ease-inout) forwards;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1200px;
  z-index: var(--z-nav);
  animation: navAppear 0.8s var(--ease-out-expo) 5.5s both;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--border-radius-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: background var(--transition-sm), border-color var(--transition-sm), box-shadow var(--transition-sm);
}

#navbar.scrolled .nav-inner {
  background: var(--glass-bg-lg);
  border-color: var(--glass-border-gold);
  box-shadow: var(--glass-shadow-lg);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  background: var(--gradient-gold);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.08em;
  animation: goldShimmer 4s linear infinite;
  white-space: nowrap;
}

.nav-marquee {
  position: relative;
  flex: 1;
  margin: 0 var(--space-2);
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.nav-seq-item {
  position: absolute;
  width: 100%;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 1s ease 1s forwards;
  line-height: 1.2;
}

.nav-seq-item.seq-invite {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--gold);
  animation-delay: 0s;
}

.nav-seq-item.seq-date {
  font-family: var(--font-body);
  font-size: clamp(0.65rem, 2vw, 0.9rem);
  letter-spacing: 0.15em;
  color: var(--cream-light);
  text-transform: uppercase;
  animation-delay: 5s;
}

.nav-seq-item.seq-venue {
  font-family: var(--font-body);
  font-size: clamp(0.6rem, 1.8vw, 0.85rem);
  letter-spacing: 0.1em;
  color: var(--cream-light);
  animation-delay: 10s;
  padding: 0 var(--space-2);
}

@keyframes navSeqLoop {
  0%, 5% { opacity: 0; transform: translateY(10px); }
  10%, 25% { opacity: 1; transform: translateY(0); }
  30%, 100% { opacity: 0; transform: translateY(-10px); }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-sm);
}

.nav-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.1);
  box-shadow: var(--shadow-gold);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-sm);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  right: 0;
  background: var(--glass-bg-lg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-4);
  box-shadow: var(--glass-shadow-lg);
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-xs);
}

.nav-mobile a:hover {
  color: var(--gold);
  background: rgba(212,175,55,0.1);
  padding-left: var(--space-6);
}

/* ============================================================
   HERO
   ============================================================ */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  background: var(--dark-deep);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform-origin: center;
  will-change: transform;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-islamic-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.8'%3E%3Cpath d='M100,20 L180,60 L180,140 L100,180 L20,140 L20,60 Z'/%3E%3Cpath d='M100,35 L165,68 L165,132 L100,165 L35,132 L35,68 Z'/%3E%3Cpath d='M100,50 L150,75 L150,125 L100,150 L50,125 L50,75 Z'/%3E%3Ccircle cx='100' cy='100' r='25'/%3E%3Ccircle cx='100' cy='100' r='8'/%3E%3Cline x1='100' y1='20' x2='100' y2='50'/%3E%3Cline x1='180' y1='60' x2='150' y2='75'/%3E%3Cline x1='180' y1='140' x2='150' y2='125'/%3E%3Cline x1='100' y1='180' x2='100' y2='150'/%3E%3Cline x1='20' y1='140' x2='50' y2='125'/%3E%3Cline x1='20' y1='60' x2='50' y2='75'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: var(--space-8) var(--space-6);
}

.hero-bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  color: var(--gold);
  margin-bottom: var(--space-8);
  text-shadow: 0 0 30px rgba(212,175,55,0.4);
  opacity: 0;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-8);
  opacity: 0;
}

.hero-invite-text {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--cream-light);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  opacity: 0;
}

.hero-names {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-6);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}

.hero-name {
  background: var(--gradient-gold-h);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 5s linear infinite;
}

.hero-heart {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  -webkit-text-fill-color: var(--crimson);
  color: var(--crimson);
  background: none;
  animation: heartPulseGlow 1.8s ease-in-out infinite;
  display: inline-block;
}

.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-8);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: var(--border-radius-full);
  background: rgba(212,175,55,0.08);
  backdrop-filter: blur(10px);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-12);
  opacity: 0;
}

.hero-date-badge::before,
.hero-date-badge::after {
  content: '◆';
  font-size: 0.4em;
  color: var(--gold);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  animation: fadeIn 1s ease 5.5s forwards;
}

.hero-scroll-text {
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 300;
}

.hero-scroll-mouse {
  width: 26px;
  height: 40px;
  border: 1.5px solid rgba(212,175,55,0.5);
  border-radius: 14px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.hero-scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  position: absolute;
  animation: scrollDot 2s ease-in-out infinite;
}

/* ── Hero Ornaments ── */
.hero-ornaments {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-ornament {
  position: absolute;
  color: rgba(212,175,55,0.25);
  font-size: 3rem;
  animation: float 8s ease-in-out infinite;
}

.hero-ornament:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; }
.hero-ornament:nth-child(2) { top: 15%; right: 8%; animation-delay: -2s; }
.hero-ornament:nth-child(3) { bottom: 20%; left: 6%; animation-delay: -4s; }
.hero-ornament:nth-child(4) { bottom: 20%; right: 6%; animation-delay: -6s; }

/* ============================================================
   OUR STORY TIMELINE
   ============================================================ */
#story { background: var(--bg-secondary); }

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

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

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-16);
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-card {
  width: calc(50% - 60px);
  padding: var(--space-8);
  background: var(--glass-bg-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(212,175,55,0.1);
  transition: transform var(--transition-sm), box-shadow var(--transition-sm);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-gold);
  border: 3px solid var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 1;
  box-shadow: var(--shadow-gold);
  animation: timelineGlow 3s ease-in-out infinite;
  flex-shrink: 0;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.timeline-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================================
   INVITATION SECTION
   ============================================================ */
#invitation {
  background: var(--bg-primary);
  text-align: center;
}

.invitation-scene {
  perspective: 1200px;
  width: 340px;
  margin: 0 auto;
  cursor: none;
}

.envelope-wrapper {
  position: relative;
  transform-style: preserve-3d;
}

/* Envelope Body */
.envelope {
  position: relative;
  width: 340px;
  background: linear-gradient(160deg, #f5efe0 0%, #ede1c5 100%);
  border-radius: 4px 4px 20px 20px;
  box-shadow: var(--shadow-xl);
  overflow: visible;
  transition: transform var(--transition-md);
}

.envelope:hover:not(.opened) {
  animation: envelopeShake 0.5s ease;
}

.envelope-body {
  width: 100%;
  height: 220px;
  background: linear-gradient(160deg, #f5efe0 0%, #ede1c5 100%);
  border-radius: 0 0 20px 20px;
  position: relative;
  overflow: hidden;
}

.envelope-body::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, #c8a96e, #ede1c5);
  clip-path: polygon(0 100%, 50% 0%, 100% 100%);
}

.envelope-body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, #d4b882, #ede1c5);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Envelope Flap */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(160deg, #e8d8a0 0%, #c8a96e 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 1s var(--ease-inout);
  z-index: 10;
  border-radius: 4px 4px 0 0;
}

.envelope-wrapper.opened .envelope-flap {
  transform: rotateX(-180deg);
  z-index: 1;
  transition: transform 1s var(--ease-inout), z-index 0s 0.5s;
}

/* Wax Seal */
.wax-seal {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--crimson) 30%, var(--crimson-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold-light);
  box-shadow: 0 4px 16px rgba(161,0,33,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  z-index: 11;
  transition: all 0.5s var(--ease-inout);
  cursor: none;
}

.envelope-wrapper.opened .wax-seal {
  animation: waxSealBreak 0.6s ease forwards;
}

/* Invitation Card */
.invitation-card {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: 280px;
  background: linear-gradient(160deg, #FFFDF8 0%, #F8F4EF 100%);
  border: 2px solid rgba(212,175,55,0.4);
  border-radius: var(--border-radius);
  padding: var(--space-8) var(--space-6);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
  z-index: 5;
  transition: transform 1.2s var(--ease-out-expo) 0.4s, opacity 0.6s ease 0.4s;
  opacity: 0;
  text-align: center;
}

.envelope-wrapper.opened .invitation-card {
  transform: translateX(-50%) translateY(-260px);
  opacity: 1;
}

.card-bismillah {
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  color: var(--crimson);
  margin-bottom: var(--space-4);
}

.card-couple {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.2;
}

.card-date {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  color: var(--gold-dark);
  margin: var(--space-3) 0;
  text-transform: uppercase;
}

.card-venue {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.6;
}

.card-gold-border {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: calc(var(--border-radius) - 4px);
  pointer-events: none;
}

.invitation-open-hint {
  margin-top: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-content: center;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  animation: float 3s ease-in-out infinite;
}

/* ============================================================
   EVENT DETAILS
   ============================================================ */
#details { background: var(--bg-secondary); }

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  max-width: 960px;
  margin: 0 auto;
}

.detail-card {
  padding: var(--space-10) var(--space-8);
  background: var(--glass-bg-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-sm), box-shadow var(--transition-sm);
  position: relative;
  overflow: hidden;
}

.detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
}

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

.detail-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto var(--space-5);
  box-shadow: var(--shadow-gold);
}

.detail-label {
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.detail-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
#countdown {
  background: linear-gradient(160deg, var(--dark-deep) 0%, var(--dark) 100%);
  text-align: center;
  position: relative;
}

#countdown .section-title { color: var(--cream-light); }
#countdown .section-label { color: var(--gold); }
#countdown .section-subtitle { color: var(--gold-light); }

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-12);
}

.countdown-item {
  text-align: center;
}

/* ── Countdown Card — Clean Premium Design ── */
.flip-card {
  position: relative;
  width: 130px;
  height: 150px;
  margin-bottom: var(--space-3);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(170deg, #2e1c0a 0%, #110803 100%);
  border: 1px solid rgba(212,175,55,0.25);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(212,175,55,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.5);
}

/* Top half background */
.flip-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, #2e1c0a 0%, #200e05 100%);
  border-bottom: 1.5px solid rgba(0,0,0,0.7);
  box-shadow: inset 0 1px 0 rgba(212,175,55,0.12);
}

/* Bottom half background */
.flip-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, #1a0d04 0%, #0e0703 100%);
}

/* The actual number — centered over the full card */
.flip-top .digit,
.flip-bottom .digit {
  position: absolute;
}

/* Overlay the number on top of both halves */
.flip-card::before {
  content: attr(data-value);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 5.5rem;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: -0.03em;
  text-shadow:
    0 0 40px rgba(212,175,55,0.3),
    0 2px 12px rgba(0,0,0,0.5);
  z-index: 2;
  pointer-events: none;
  line-height: 1;
}

/* Gold shimmer line across the middle */
.flip-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1.5px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212,175,55,0.15) 10%,
    rgba(0,0,0,0.7) 50%,
    rgba(212,175,55,0.15) 90%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* Change animation — slides in from top on digit update */
@keyframes digitPop {
  0%   { transform: scaleY(0.85); opacity: 0.4; }
  60%  { transform: scaleY(1.04); opacity: 1; }
  100% { transform: scaleY(1);    opacity: 1; }
}

.flip-card.changing::before {
  animation: digitPop 0.4s cubic-bezier(0.16,1,0.3,1);
}

.countdown-sep {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 40px;
  opacity: 0.6;
  animation: heartbeat 2s ease-in-out infinite;
  user-select: none;
}

.countdown-label {
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 300;
}

/* ============================================================
   SAVE THE DATE CALENDAR
   ============================================================ */
#calendar { background: var(--bg-primary); }

.calendar-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--glass-bg-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), var(--shadow-gold);
}

.calendar-header {
  background: var(--gradient-crimson);
  padding: var(--space-8) var(--space-10);
  text-align: center;
}

.calendar-month {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.1em;
}

.calendar-year {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: rgba(243,231,195,0.8);
  letter-spacing: 0.4em;
  font-weight: 300;
}

.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(161,0,33,0.1);
  padding: var(--space-3) var(--space-6);
}

.calendar-day-label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: var(--space-6);
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--text-primary);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-xs);
  font-weight: 300;
}

.calendar-day.empty { opacity: 0; }

.calendar-day:not(.empty):not(.highlighted):hover {
  background: rgba(212,175,55,0.1);
  color: var(--gold);
}

.calendar-day.highlighted {
  background: var(--gradient-crimson);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  border-radius: var(--border-radius);
  animation: calDatePulse 2s ease-in-out infinite;
  box-shadow: var(--shadow-crimson);
  position: relative;
  z-index: 1;
}

.calendar-footer {
  padding: var(--space-6) var(--space-10) var(--space-8);
  text-align: center;
  border-top: 1px solid var(--glass-border-gold);
}

.calendar-heart {
  font-size: 2rem;
  animation: heartPulseGlow 1.6s ease-in-out infinite;
  display: block;
  margin-bottom: var(--space-2);
}

.calendar-save-text {
  font-family: var(--font-script);
  font-size: var(--text-2xl);
  color: var(--crimson);
}

/* ============================================================
   PARENTS
   ============================================================ */
#parents { background: var(--bg-secondary); }

.parents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  max-width: 900px;
  margin: 0 auto;
}

.parent-card {
  padding: var(--space-12) var(--space-10);
  background: var(--glass-bg-md);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--border-radius-xl);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-sm), box-shadow var(--transition-sm);
}

.parent-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl), var(--shadow-gold);
}

.parent-card__ornament {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  background: var(--gradient-gold);
  padding: var(--space-1) var(--space-4);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: none;
}

.parent-role {
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.parent-name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.parent-title {
  font-family: var(--font-script);
  font-size: var(--text-xl);
  color: var(--crimson);
  display: block;
  margin-bottom: var(--space-3);
}

.parent-family-name {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================================
   VENUE & MAP
   ============================================================ */
#venue { background: var(--bg-primary); }

.venue-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--glass-bg-md);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.venue-info {
  padding: var(--space-10) var(--space-12);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
}

.venue-details h3 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.venue-address {
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.venue-time {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--gold);
  font-weight: 500;
}

.venue-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.venue-map {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
}

.venue-map-container {
  position: relative;
}

/* ============================================================
   DRESS CODE
   ============================================================ */
#dresscode { background: var(--bg-secondary); }

.dress-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.dress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--glass-bg-md);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  min-width: 150px;
  transition: transform var(--transition-sm);
}

.dress-item:hover { transform: translateY(-5px); }

.dress-swatch {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(212,175,55,0.3);
  box-shadow: var(--shadow-md);
}

.dress-swatch.white  { background: #FFFFF0; }
.dress-swatch.gold   { background: var(--gradient-gold); }
.dress-swatch.beige  { background: #F5F0E8; }
.dress-swatch.trad   { background: linear-gradient(135deg, var(--crimson), var(--dark)); }

.dress-label {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================================
   GALLERY
   ============================================================ */
#gallery { background: var(--bg-primary); }

.gallery-filters {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.gallery-filter-btn {
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--border-radius-full);
  background: var(--glass-bg);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition-sm);
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
  background: var(--gradient-crimson);
  color: var(--gold-light);
  border-color: transparent;
  box-shadow: var(--shadow-crimson);
}

.gallery-grid {
  columns: 3;
  column-gap: var(--space-4);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-4);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  cursor: none;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(36,26,24,0.8), transparent);
  opacity: 0;
  transition: opacity var(--transition-sm);
}

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

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

.gallery-item-icon {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  background: rgba(212,175,55,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 0.9rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-sm);
  z-index: 1;
}

.gallery-item:hover .gallery-item-icon {
  opacity: 1;
  transform: scale(1);
}

/* Placeholder gallery cards */
.gallery-placeholder {
  width: 100%;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(212,175,55,0.3);
}

/* ============================================================
   BLESSINGS
   ============================================================ */
#blessings { background: var(--bg-secondary); }

.blessings-input-area {
  max-width: 600px;
  margin: 0 auto var(--space-12);
}

.blessings-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.blessings-textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--space-5);
  background: var(--glass-bg-md);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--border-radius-lg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  resize: vertical;
  transition: border-color var(--transition-sm), box-shadow var(--transition-sm);
  outline: none;
}

.blessings-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

.blessings-textarea::placeholder { color: var(--text-muted); }

.blessings-name-row {
  display: flex;
  gap: var(--space-4);
}

.blessings-name {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  background: var(--glass-bg-md);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--border-radius-lg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-sm);
}

.blessings-name:focus { border-color: var(--gold); }

.blessings-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
  max-width: 1100px;
  margin: 0 auto;
}

.blessing-card {
  padding: var(--space-6);
  background: var(--glass-bg-md);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  --card-tilt: -2deg;
  animation: blessingFloat 6s ease-in-out infinite;
  animation-delay: var(--card-delay, 0s);
}

.blessing-card:nth-child(even) { --card-tilt: 2deg; }
.blessing-card:nth-child(3n)   { --card-tilt: -1deg; animation-delay: -2s; }

.blessing-quote-icon {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.blessing-text {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.blessing-author {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ============================================================
   RSVP
   ============================================================ */
#rsvp { background: var(--bg-primary); }

.rsvp-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-12);
  background: var(--glass-bg-md);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.rsvp-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-gold);
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--border-radius-lg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  outline: none;
  transition: border-color var(--transition-sm), box-shadow var(--transition-sm);
  appearance: none;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  background: rgba(36,26,24,0.5);
}

.form-input:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

.form-input::placeholder { color: var(--text-muted); }

.form-select option { background: var(--bg-primary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }

/* RSVP toggle */
.attend-toggle {
  display: flex;
  gap: var(--space-4);
}

.attend-btn {
  flex: 1;
  padding: var(--space-4);
  border: 1.5px solid var(--glass-border-gold);
  border-radius: var(--border-radius-lg);
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: all var(--transition-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.attend-btn.yes.selected {
  background: rgba(39,174,96,0.15);
  border-color: #27ae60;
  color: #27ae60;
}

.attend-btn.no.selected {
  background: rgba(161,0,33,0.1);
  border-color: var(--crimson);
  color: var(--crimson);
}

/* ============================================================
   ISLAMIC QUOTE
   ============================================================ */
#quote {
  background: linear-gradient(160deg, var(--dark-deep) 0%, var(--dark) 100%);
  text-align: center;
}

.quote-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  color: var(--gold);
  line-height: 2;
  direction: rtl;
  text-align: right;
  max-width: 700px;
  margin: 0 auto var(--space-8);
  text-shadow: 0 0 40px rgba(212,175,55,0.3);
}

.quote-english {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--cream-light);
  max-width: 680px;
  margin: 0 auto var(--space-6);
  line-height: 1.7;
}

.quote-reference {
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  color: var(--gold-light);
  font-weight: 300;
}

/* ============================================================
   QR CODE
   ============================================================ */
#qr-section { background: var(--bg-secondary); text-align: center; }

.qr-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-10);
  background: var(--glass-bg-lg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl), var(--shadow-gold);
}

.qr-wrapper {
  position: relative;
  padding: var(--space-4);
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.qr-pulse-ring {
  position: absolute;
  inset: -8px;
  border: 2px solid var(--gold);
  border-radius: var(--border-radius-xl);
  animation: qrPulse 2.5s ease-out infinite;
}

.qr-pulse-ring:nth-child(2) { animation-delay: 0.8s; }
.qr-pulse-ring:nth-child(3) { animation-delay: 1.6s; }

#qrcode canvas, #qrcode img { border-radius: var(--border-radius-sm); }

.qr-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--text-primary);
  text-align: center;
}

.qr-subtext {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark-deep);
  padding: var(--space-20) 0 var(--space-10);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footer-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  animation: twinkle var(--duration, 3s) ease-in-out var(--delay, 0s) infinite;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 300;
  background: var(--gradient-gold-h);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s linear infinite;
  margin-bottom: var(--space-6);
  letter-spacing: 0.1em;
}

.footer-message {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--cream-light);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.footer-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--gold);
  margin-bottom: var(--space-8);
  text-shadow: 0 0 20px rgba(212,175,55,0.3);
}

.footer-names {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold-light);
  margin-bottom: var(--space-10);
}

.footer-bottom {
  border-top: 1px solid rgba(212,175,55,0.1);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.15em;
}

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.floating-btns {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: var(--z-overlay);
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-sm), box-shadow var(--transition-sm);
  position: relative;
}

.floating-btn:hover { transform: scale(1.12); }

.floating-btn--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
}

.floating-btn--music {
  background: var(--gradient-gold);
  color: var(--dark);
}

.floating-btn--theme {
  background: var(--glass-bg-lg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  color: var(--gold);
}

.floating-btn--top {
  background: var(--gradient-crimson);
  color: var(--gold-light);
}

.floating-btn-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark);
  color: var(--gold-light);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius-full);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-sm);
  border: 1px solid rgba(212,175,55,0.2);
}

.floating-btn:hover .floating-btn-tooltip { opacity: 1; }

/* Music note animation */
.music-note {
  position: fixed;
  font-size: 1rem;
  color: var(--gold);
  pointer-events: none;
  animation: musicNoteFloat 2s ease-out forwards;
  z-index: var(--z-overlay);
}

/* ============================================================
   LUXURY BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--border-radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition-sm);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform var(--transition-sm);
}

.btn:hover::before { transform: translateX(0); }

.btn--gold {
  background: var(--gradient-gold);
  color: var(--dark);
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-lg);
}

.btn--crimson {
  background: var(--gradient-crimson);
  color: var(--gold-light);
  box-shadow: var(--shadow-crimson);
}

.btn--crimson:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px rgba(161,0,33,0.4);
}

.btn--glass {
  background: var(--glass-bg-md);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-gold);
  color: var(--text-primary);
}

.btn--glass:hover {
  background: rgba(212,175,55,0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.btn--full { width: 100%; }

/* Ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-gold    { color: var(--gold); }
.text-crimson { color: var(--crimson); }
.text-script  { font-family: var(--font-script); }
.text-heading { font-family: var(--font-heading); }
.text-arabic  { font-family: var(--font-arabic); }

.hidden { opacity: 0; visibility: hidden; }
.visible { opacity: 1; visibility: visible; }

/* AOS (manual) */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-aos="fade-left"]  { transform: translateX(-40px); }
[data-aos="fade-right"] { transform: translateX(40px); }
[data-aos="zoom-in"]    { transform: scale(0.9); opacity: 0; }

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
