/* ═══════════════════════════════════════════════════════
   ZAINAB & ABBAS — ROYAL WEDDING INVITATION
   Color palette derived from the Arabic calligraphy crown
   logos. Inspired by Fatemi architecture & British royalty.
   ═══════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  /* Primary Palette (from logos) */
  --maroon:          #7B1232;
  --maroon-light:    #9B1E47;
  --maroon-dark:     #4A0B1E;
  --maroon-deep:     #2D0712;

  --gold:            #B8962E;
  --gold-light:      #D4B44A;
  --gold-pale:       #E8D48B;
  --gold-shimmer:    #F0E2A0;

  --ivory:           #F5EDE3;
  --ivory-warm:      #FAF6EF;
  --ivory-dark:      #E8DDD0;

  --white:           #FFFDF9;

  /* Functional */
  --text-dark:       #2D0712;
  --text-body:       #5A3040;
  --text-muted:      #8A6A6A;
  --text-light:      #C8AFA0;
  --text-on-dark:    #F5EDE3;

  /* Shadows */
  --shadow-soft:     0 4px 24px rgba(75, 11, 30, 0.08);
  --shadow-medium:   0 8px 40px rgba(75, 11, 30, 0.12);
  --shadow-heavy:    0 16px 64px rgba(75, 11, 30, 0.18);
  --shadow-gold:     0 0 30px rgba(184, 150, 46, 0.25);
  --shadow-glow:     0 0 60px rgba(184, 150, 46, 0.35);

  /* Typography Scale */
  --font-display:    'Playfair Display', Georgia, serif;
  --font-body:       'Cormorant Garamond', Garamond, serif;
  --font-arabic:     'Amiri', serif;
  --font-ui:         'Montserrat', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 12vh, 160px);
  --container-max:   1100px;

  /* Transitions */
  --ease-royal:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:     cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.7;
  color: var(--text-body);
  background: var(--ivory);
  overflow-x: hidden;
}

::selection {
  background: var(--gold-pale);
  color: var(--maroon-dark);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* ─── Fatemi Geometric Pattern (SVG Background) ─── */
/* An 8-pointed star tessellation inspired by Fatimid art */
.hero-pattern-overlay,
.section-ornament-top,
.date-card-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23B8962E' stroke-width='0.5' opacity='0.12'%3E%3Cpath d='M40 0L50 15L65 10L60 25L80 30L65 40L80 50L60 55L65 70L50 65L40 80L30 65L15 70L20 55L0 50L15 40L0 30L20 25L15 10L30 15Z'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* ─── Particles Canvas ─── */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

/* ═══════════════════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════════════════ */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--maroon-deep);
  transition: opacity 0.8s var(--ease-royal), visibility 0.8s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  width: 140px;
  height: 140px;
  margin-bottom: 40px;
  animation: loadingPulse 1.5s ease-in-out infinite;
}

.loading-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 40px rgba(184, 150, 46, 0.4));
}

.loading-bar-track {
  width: 200px;
  height: 2px;
  background: rgba(184, 150, 46, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.loading-text {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

@keyframes loadingPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-royal), background 0.4s;
}

.main-nav.visible {
  transform: translateY(0);
}

.main-nav.scrolled {
  background: rgba(45, 7, 18, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo-link {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
}

.nav-amp {
  font-style: italic;
  margin: 0 4px;
  opacity: 0.6;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-royal);
}

.nav-link:hover {
  opacity: 1;
  color: var(--gold);
}

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

.nav-side-toggle {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--maroon-deep);
  background: var(--gold);
  padding: 6px 16px;
  border-radius: 20px;
  transition: all 0.3s var(--ease-royal);
}

.nav-side-toggle:hover {
  background: var(--gold-light);
  transform: scale(1.05);
  box-shadow: var(--shadow-gold);
}

.toggle-icon {
  font-size: 14px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s var(--ease-royal);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, var(--maroon) 0%, var(--maroon-dark) 60%, var(--maroon-deep) 100%);
  overflow: hidden;
  z-index: 2;
}

.hero-pattern-overlay {
  position: absolute;
  inset: 0;
  background-size: 80px 80px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(45, 7, 18, 0.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
}

/* Staggered Hero Animations */
.anim-hero {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1s var(--ease-royal) forwards;
  animation-delay: var(--delay, 0s);
}

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

/* Bismillah */
.bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(20px, 3vw, 32px);
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 40px;
  text-shadow: 0 0 30px rgba(184, 150, 46, 0.3);
}

/* Hero Logo */
.hero-logo-wrapper {
  position: relative;
  width: clamp(200px, 30vw, 320px);
  height: clamp(200px, 30vw, 320px);
  margin-bottom: 32px;
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 50px rgba(184, 150, 46, 0.3));
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.logo-shimmer {
  position: absolute;
  top: -5%;
  left: 35%;
  width: 30%;
  height: 30%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: shimmerPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmerPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.3); }
}

/* Sparkles around the logo diamond */
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-shimmer);
  box-shadow: 0 0 8px var(--gold-light);
  animation: sparkleTwinkle 2s ease-in-out infinite;
}

.sparkle-1 { top: 2%; left: 48%; animation-delay: 0s; }
.sparkle-2 { top: 8%; left: 38%; animation-delay: 0.5s; width: 4px; height: 4px; }
.sparkle-3 { top: 8%; right: 38%; animation-delay: 1s; width: 4px; height: 4px; }
.sparkle-4 { top: 0%; left: 50%; animation-delay: 1.5s; width: 3px; height: 3px; }

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* Hero Names */
.hero-names {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 24px);
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.name-bride,
.name-groom {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 3px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.name-ampersand {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-style: italic;
  color: var(--gold);
  opacity: 0.8;
}

/* Hero Tagline */
.hero-tagline {
  font-family: var(--font-ui);
  font-size: clamp(11px, 1.3vw, 15px);
  font-weight: 400;
  letter-spacing: clamp(3px, 0.5vw, 8px);
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 48px;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 20px);
  margin-bottom: 48px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.countdown-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(184, 150, 46, 0.3);
}

.countdown-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 36px);
  color: var(--gold);
  opacity: 0.4;
  margin-top: -20px;
}

/* Scroll Prompt */
.scroll-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  opacity: 0.7;
  animation: scrollBounce 2s ease-in-out infinite;
  animation-delay: 3.5s;
}

.scroll-prompt span {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.scroll-arrow svg {
  display: block;
}

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

/* ═══════════════════════════════════════════════════════
   SECTION SHARED STYLES
   ═══════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vh, 80px);
}

.section-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 1px;
  line-height: 1.2;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.2vw, 20px);
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

/* Ornament Divider */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament-diamond {
  color: var(--gold);
  font-size: 10px;
  animation: diamondRotate 8s linear infinite;
}

@keyframes diamondRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-royal), transform 0.8s var(--ease-royal);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section ornament top */
.section-ornament-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background-size: 80px 80px;
  opacity: 0.15;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
}

/* ═══════════════════════════════════════════════════════
   SECTION 2 — CHOOSE YOUR SIDE
   ═══════════════════════════════════════════════════════ */
.choose-side-section {
  position: relative;
  padding: var(--section-padding) 24px;
  background: var(--ivory-warm);
  z-index: 2;
}

.side-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  max-width: 800px;
  margin: 0 auto;
}

.side-card {
  position: relative;
  padding: 0;
  border: none;
  background: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.5s var(--ease-royal);
}

.side-card:hover {
  transform: translateY(-8px);
}

.side-card-border {
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  border-radius: 16px;
  opacity: 0.4;
  transition: all 0.5s var(--ease-royal);
}

.side-card:hover .side-card-border {
  opacity: 1;
  box-shadow: var(--shadow-gold);
  border-color: var(--gold-light);
}

.side-card.selected .side-card-border {
  opacity: 1;
  border-color: var(--gold);
  border-width: 3px;
  box-shadow: var(--shadow-glow);
}

.side-card-inner {
  position: relative;
  padding: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px);
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  transition: background 0.3s;
}

.side-card:hover .side-card-inner {
  background: var(--ivory-warm);
}

.side-card.selected .side-card-inner {
  background: linear-gradient(135deg, var(--ivory-warm) 0%, var(--ivory) 100%);
}

/* Card Corner Ornaments */
.side-card-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.side-card:hover .side-card-corner { opacity: 1; }

.side-card-corner.tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.side-card-corner.tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.side-card-corner.bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.side-card-corner.br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

.side-card-icon {
  color: var(--gold);
  margin-bottom: 20px;
  transition: transform 0.5s var(--ease-royal);
}

.side-card:hover .side-card-icon {
  transform: scale(1.1);
}

.side-card-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 8px;
}

.side-card-name {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 4px;
}

.side-card-city {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.side-card-cta {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 8px 24px;
  border: 1px solid var(--gold);
  border-radius: 24px;
  display: inline-block;
  transition: all 0.3s var(--ease-royal);
}

.side-card:hover .side-card-cta {
  background: var(--gold);
  color: var(--maroon-deep);
}

.side-card.selected .side-card-cta {
  background: var(--maroon);
  color: var(--ivory);
  border-color: var(--maroon);
}

/* ═══════════════════════════════════════════════════════
   SECTION 3 — SAVE THE DATES
   ═══════════════════════════════════════════════════════ */
.dates-section {
  position: relative;
  padding: var(--section-padding) 24px;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-warm) 100%);
  z-index: 2;
}

.date-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.date-card {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  text-align: center;
  transition: transform 0.5s var(--ease-royal);
}

.date-card:hover {
  transform: translateY(-6px);
}

/* Fatemi-inspired pointed arch at the top of each card */
.date-card-arch {
  position: relative;
  width: 100%;
  height: 60px;
  background: var(--maroon);
  clip-path: polygon(0 100%, 0 40%, 5% 20%, 20% 5%, 50% 0%, 80% 5%, 95% 20%, 100% 40%, 100% 100%);
}

.date-card-arch::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--maroon-dark);
  clip-path: polygon(0 100%, 0 40%, 5% 20%, 20% 5%, 50% 0%, 80% 5%, 95% 20%, 100% 40%, 100% 100%);
}

.date-card-content {
  position: relative;
  background: var(--white);
  border: 2px solid var(--gold);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 32px 24px 40px;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

.date-card-icon {
  color: var(--gold);
  margin-bottom: 16px;
}

.date-card-city {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 16px;
}

.date-card-dates {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 16px;
}

.date-month {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

.date-numbers {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--maroon);
  line-height: 1.1;
}

.date-year {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--text-muted);
}

.date-card-desc {
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  color: var(--text-muted);
}

.date-card-pattern {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-size: 80px 80px;
  opacity: 0.1;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.nisbat-note {
  font-family: var(--font-body);
  font-size: 18px;
  font-style: italic;
  color: var(--maroon);
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.alhamdolillah-note {
  font-family: var(--font-heading);
  font-size: 24px;
  font-style: italic;
  color: var(--maroon);
  text-align: center;
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
}

/* Date cards divider */
.date-cards-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.divider-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.divider-diamond {
  color: var(--gold);
  animation: diamondRotate 10s linear infinite;
}

/* ═══════════════════════════════════════════════════════
   SECTION 4 — THE COUPLE
   ═══════════════════════════════════════════════════════ */
.couple-section {
  position: relative;
  padding: var(--section-padding) 24px;
  background: radial-gradient(ellipse at 50% 0%, var(--ivory-warm) 0%, var(--ivory) 100%);
  z-index: 2;
}

.couple-profiles {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Profile Card */
.profile-card {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  position: relative;
  transition: transform 0.5s var(--ease-royal);
}

.profile-card:hover {
  transform: translateY(-6px);
}

/* Fatemi arch at top of profile */
.profile-arch {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-light) 100%);
  clip-path: polygon(0 100%, 0 50%, 10% 15%, 35% 2%, 50% 0%, 65% 2%, 90% 15%, 100% 50%, 100% 100%);
}

.profile-card-inner {
  background: var(--white);
  border: 2px solid rgba(184, 150, 46, 0.3);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 0 24px 36px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.5s;
}

.profile-card:hover .profile-card-inner {
  box-shadow: var(--shadow-medium);
  border-color: var(--gold);
}

/* Monogram Circle */
.profile-monogram {
  position: relative;
  width: 80px;
  height: 80px;
  margin: -40px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.monogram-letter {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--ivory);
}

.monogram-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-light) 100%);
  border: 3px solid var(--gold);
  box-shadow: 0 4px 20px rgba(123, 18, 50, 0.3), inset 0 0 15px rgba(0,0,0,0.1);
}

.profile-name {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 16px;
  line-height: 1.3;
}

.profile-detail-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 8px;
}

.profile-detail-row svg {
  flex-shrink: 0;
  color: var(--gold);
}

.hafiz-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 18px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--maroon-deep);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(184, 150, 46, 0.3);
}

.hafiz-crescent {
  font-size: 14px;
}

/* Heart Connector */
.couple-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  flex-shrink: 0;
}

.connector-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.connector-heart {
  animation: heartPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(184, 150, 46, 0.4));
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Shared Blessing */
.shared-blessing {
  text-align: center;
  margin-top: 48px;
  margin-bottom: 48px;
}

.blessing-badge {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 48px;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 60px;
  box-shadow: var(--shadow-gold);
}

.blessing-glow {
  position: absolute;
  inset: -10px;
  border-radius: 70px;
  background: radial-gradient(ellipse, rgba(184, 150, 46, 0.15) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.blessing-icon {
  font-size: 28px;
}

.blessing-text {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--maroon);
}

.blessing-text strong {
  color: var(--gold);
  font-weight: 700;
}

/* Quranic Verse */
.quran-verse {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, rgba(123, 18, 50, 0.03) 0%, rgba(184, 150, 46, 0.05) 100%);
  border-radius: 16px;
  border: 1px solid rgba(184, 150, 46, 0.2);
}

.verse-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 2;
  color: var(--maroon);
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.verse-divider-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 20px;
}

.verse-translation {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 20px);
  font-style: italic;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 12px;
}

.verse-citation {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════
   SECTION 5 — EVENTS TIMELINE
   ═══════════════════════════════════════════════════════ */
.events-section {
  position: relative;
  padding: var(--section-padding) 24px;
  background: var(--maroon-deep);
  color: var(--text-on-dark);
  z-index: 2;
  overflow: hidden;
}

.events-section .section-title {
  color: var(--ivory);
}

.events-section .section-eyebrow {
  color: var(--gold-pale);
}

.events-section .ornament-divider::before,
.events-section .ornament-divider::after {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Side Indicator */
.side-indicator {
  text-align: center;
  margin-bottom: 48px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-light);
}

.side-indicator strong {
  color: var(--gold);
  font-size: 20px;
  display: block;
  margin: 8px 0 16px;
  font-family: var(--font-display);
}

.switch-side-btn {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 8px 24px;
  border: 1px solid var(--gold);
  border-radius: 24px;
  transition: all 0.3s var(--ease-royal);
  cursor: pointer;
  background: transparent;
}

.switch-side-btn:hover {
  background: var(--gold);
  color: var(--maroon-deep);
  box-shadow: var(--shadow-gold);
}

/* Timeline Layout */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 0;
}

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

/* Timeline Event */
.timeline-event {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-royal), transform 0.6s var(--ease-royal);
}

.timeline-event.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Alternate sides */
.timeline-event:nth-child(odd) {
  flex-direction: row;
  text-align: right;
  padding-right: calc(50% + 32px);
}

.timeline-event:nth-child(even) {
  flex-direction: row-reverse;
  text-align: left;
  padding-left: calc(50% + 32px);
}

/* Timeline dot */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border: 3px solid var(--maroon-deep);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(184, 150, 46, 0.2), 0 0 16px rgba(184, 150, 46, 0.3);
  z-index: 2;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s;
}

.timeline-event:hover .timeline-dot {
  transform: translateX(-50%) scale(1.3);
  box-shadow: 0 0 0 6px rgba(184, 150, 46, 0.3), 0 0 24px rgba(184, 150, 46, 0.5);
}

/* Timeline Card */
.timeline-card {
  background: rgba(255, 253, 249, 0.06);
  border: 1px solid rgba(184, 150, 46, 0.25);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease-royal);
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184, 150, 46, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.timeline-event:hover .timeline-card {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(184, 150, 46, 0.15);
  transform: translateY(-2px);
}

.timeline-event:hover .timeline-card::before {
  opacity: 1;
}

.timeline-date {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 6px;
  line-height: 1.3;
}

.timeline-location {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
}

.timeline-icon {
  font-size: 20px;
  margin-bottom: 8px;
  display: block;
}

/* ═══════════════════════════════════════════════════════
   SECTION 6 — CLOSING BLESSING
   ═══════════════════════════════════════════════════════ */
.blessing-section {
  position: relative;
  padding: var(--section-padding) 24px;
  background: linear-gradient(180deg, var(--ivory-warm) 0%, var(--ivory) 100%);
  z-index: 2;
}

.blessing-content {
  max-width: 700px;
  margin: 0 auto;
}

.blessing-frame {
  position: relative;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px);
  border: 2px solid var(--gold);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-gold);
}

/* Blessing corner ornaments */
.blessing-corner {
  position: absolute;
  width: 32px;
  height: 32px;
}

.blessing-corner::before,
.blessing-corner::after {
  content: '';
  position: absolute;
  background: var(--gold);
}

.blessing-corner.tl { top: -4px; left: -4px; }
.blessing-corner.tr { top: -4px; right: -4px; }
.blessing-corner.bl { bottom: -4px; left: -4px; }
.blessing-corner.br { bottom: -4px; right: -4px; }

.blessing-corner.tl::before { top: 0; left: 0; width: 32px; height: 3px; }
.blessing-corner.tl::after  { top: 0; left: 0; width: 3px; height: 32px; }
.blessing-corner.tr::before { top: 0; right: 0; width: 32px; height: 3px; }
.blessing-corner.tr::after  { top: 0; right: 0; width: 3px; height: 32px; }
.blessing-corner.bl::before { bottom: 0; left: 0; width: 32px; height: 3px; }
.blessing-corner.bl::after  { bottom: 0; left: 0; width: 3px; height: 32px; }
.blessing-corner.br::before { bottom: 0; right: 0; width: 32px; height: 3px; }
.blessing-corner.br::after  { bottom: 0; right: 0; width: 3px; height: 32px; }

.blessing-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--maroon);
  line-height: 2;
  margin-bottom: 24px;
}

.blessing-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 24px;
}

.blessing-english {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 20px);
  font-style: italic;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 20px;
}

.blessing-note {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer-section {
  background: var(--maroon-deep);
  padding: 64px 24px 40px;
  text-align: center;
  z-index: 2;
  position: relative;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(184, 150, 46, 0.3);
  box-shadow: 0 0 30px rgba(184, 150, 46, 0.15);
}

.footer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-names {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.footer-date {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 24px;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 24px;
}

.footer-tagline {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-light);
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(45, 7, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right 0.5s var(--ease-royal);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav-link {
    font-size: 14px;
    letter-spacing: 3px;
  }

  /* Side cards */
  .side-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  /* Date cards */
  .date-cards {
    flex-direction: column;
    align-items: center;
  }

  .date-cards-divider {
    flex-direction: row;
    gap: 16px;
  }

  .divider-line {
    width: 40px;
    height: 1px;
  }

  /* Couple profiles */
  .couple-profiles {
    flex-direction: column;
    align-items: center;
  }

  .couple-connector {
    flex-direction: row;
    padding: 0 20px;
  }

  .connector-line {
    width: 30px;
    height: 1px;
  }

  .profile-card {
    max-width: 400px;
  }

  /* Timeline — stack on left */
  .timeline::before {
    left: 20px;
  }

  .timeline-event:nth-child(odd),
  .timeline-event:nth-child(even) {
    flex-direction: row;
    text-align: left;
    padding-right: 0;
    padding-left: 56px;
  }

  .timeline-dot {
    left: 20px;
  }
}

@media (max-width: 480px) {
  .hero-logo-wrapper {
    width: 180px;
    height: 180px;
  }

  .countdown {
    gap: 6px;
  }

  .countdown-item {
    min-width: 50px;
  }

  .countdown-sep {
    margin-top: -16px;
  }

  .date-card {
    min-width: 260px;
  }

  .blessing-frame {
    padding: 32px 20px;
  }

  .quran-verse {
    padding: 32px 20px;
  }
}

/* ═══════════════════════════════════════════════════════
   UTILITY ANIMATIONS
   ═══════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Gold shimmer sweep for borders */
@keyframes shimmerSweep {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Stagger children animation */
.stagger-children > * {
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-royal) forwards;
}

.stagger-children.visible > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { animation-delay: 0.6s; }
