/* ====== ROYAL ISLAMIC LUXURY THEME ====== */
:root {
  --onyx: #0F0F0F;
  --onyx-2: #161616;
  --ivory: #F8F5EF;
  --gold: #D4AF37;
  --gold-soft: #E8C76B;
  --gold-deep: #A6852A;
  --gold-light: #F1DB94;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Jost", system-ui, sans-serif;
  --font-arabic: "Amiri", "Cormorant Garamond", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: auto;
  overflow-x: clip;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scroll-behavior: smooth;
}
body {
  background: var(--onyx);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ====== TYPOGRAPHY ====== */
.display { font-family: var(--font-display); letter-spacing: 0.01em; }
.arabic  { font-family: var(--font-arabic); font-size: clamp(1.5rem, 4vw, 2.4rem); }
.italic  { font-style: italic; }
.caps    { text-transform: uppercase; letter-spacing: 0.5em; }
.tiny    { font-size: 10px; }
.small   { font-size: 12px; }
.dim     { color: rgba(248, 245, 239, 0.65); }
.center  { text-align: center; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-10 { margin-bottom: 2.5rem; }
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-8 { margin-top: 2rem; }
.my-6 { margin: 1.5rem auto; } .my-8 { margin: 2rem auto; }

.gold-text {
  background: linear-gradient(135deg, #A6852A 0%, #E8C76B 35%, #FFF2C2 50%, #E8C76B 65%, #A6852A 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-shimmer 6s ease-in-out infinite;
}
.gold-dim { color: rgba(212, 175, 55, 0.85); }

.huge { font-size: clamp(3rem, 8vw, 6rem); line-height: 1.05; font-weight: 500; }
.big  { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; }
.amp  { font-size: 1.6rem; margin: .25rem 0; }

@keyframes gold-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ====== ORNAMENT / DIVIDER ====== */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto;
}
.ornament .line {
  height: 1px;
  width: clamp(60px, 12vw, 120px);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament .diamond {
  color: var(--gold);
  font-size: 1rem;
}
.gold-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.gold-divider.narrow { width: 120px; margin: 1.25rem auto; }

/* ====== LOADER ====== */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--onyx);
  text-align: center; padding: 1rem;
  transition: opacity .8s ease;
}
.loader.hide { opacity: 0; pointer-events: none; }
.loader-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(212,175,55,0.18), transparent 60%);
}
.loader-inner { position: relative; max-width: 90vw; animation: fadeUp 1.4s ease both; }
.loader-names { font-size: clamp(2rem, 6vw, 4rem); font-weight: 500; }
.skip-btn {
  position: absolute; bottom: 2.5rem;
  background: none; border: none;
  color: rgba(248, 245, 239, 0.55);
  font-family: var(--font-sans);
  font-size: 10px; letter-spacing: .4em;
  text-transform: uppercase;
  cursor: pointer; transition: color .3s;
}
.skip-btn:hover { color: var(--gold); }

/* ====== MUSIC BUTTON ====== */
.music-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 50;
  transition: transform .3s, box-shadow .5s;
}
.music-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px -5px rgba(212, 175, 55, 0.5);
}
.music-btn.playing { animation: pulse-glow 3s ease-in-out infinite; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
  50%      { box-shadow: 0 0 50px rgba(212, 175, 55, 0.8); }
}

/* ====== HERO ====== */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.15); }
  to   { transform: scale(1.0); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.55) 50%, rgba(15,15,15,.95) 100%);
}
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(212,175,55,0.15), transparent 55%);
}
.vignette::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(15,15,15,0.9) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1.5rem;
}
.invite-text {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 520px;
  margin-top: 1.5rem;
  color: rgba(248, 245, 239, 0.85);
}
.couple-names { margin: 2rem 0 1rem; }
.hero-meta {
  margin-top: 2rem;
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: .5rem 1.5rem;
  font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: .35em; text-transform: uppercase;
  color: rgba(248, 245, 239, 0.85);
}
.hero-meta .sep { color: var(--gold); }
.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; gap: .5rem;
}
.scroll-cue .arrow {
  color: var(--gold); font-size: 1.2rem;
  animation: scrollBounce 2s infinite ease-in-out;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* ====== PARTICLES ====== */
.particles {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
}
.particle {
  position: absolute;
  background: var(--gold);
  border-radius: 50%;
  opacity: .5;
  box-shadow: 0 0 8px rgba(212,175,55,0.8);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) translateX(40px); opacity: 0; }
}

/* ====== SECTIONS ====== */
.section {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
}
.container { max-width: 1100px; margin: 0 auto; }
.container.narrow { max-width: 720px; }

.pattern {
  background-image:
    radial-gradient(circle, rgba(212,175,55,0.08) 1px, transparent 1px),
    radial-gradient(circle, rgba(212,175,55,0.05) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  background-position: 0 0, 20px 20px;
}
.pattern-overlay {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(circle, rgba(212,175,55,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ====== CARD ====== */
.card {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow:
    0 20px 60px -20px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.05);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 4px;
  transition: transform .5s, box-shadow .5s, border-color .5s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px -5px rgba(212, 175, 55, 0.5),
              inset 0 0 0 1px rgba(212, 175, 55, 0.5);
}
.corner-frame {
  position: absolute; inset: 12px;
  pointer-events: none;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--gold),var(--gold)) top left/14px 1px no-repeat,
    linear-gradient(var(--gold),var(--gold)) top left/1px 14px no-repeat,
    linear-gradient(var(--gold),var(--gold)) top right/14px 1px no-repeat,
    linear-gradient(var(--gold),var(--gold)) top right/1px 14px no-repeat,
    linear-gradient(var(--gold),var(--gold)) bottom left/14px 1px no-repeat,
    linear-gradient(var(--gold),var(--gold)) bottom left/1px 14px no-repeat,
    linear-gradient(var(--gold),var(--gold)) bottom right/14px 1px no-repeat,
    linear-gradient(var(--gold),var(--gold)) bottom right/1px 14px no-repeat;
  opacity: .55;
}

/* ====== COUPLE GRID ====== */
.grid-2 {
  display: grid; grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 800px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.card .card-name {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 500;
  margin-top: .5rem;
  text-align: center;
}
.card .relation { font-size: 11px; margin-bottom: .75rem; text-align: center; }
.card .parent  { font-size: 1.5rem; text-align: center; color: var(--ivory); }
.card .amp     { text-align: center; margin: .25rem 0; }
.card .addr    {
  margin-top: 1.75rem;
  text-align: center;
  font-size: .9rem;
  color: rgba(248,245,239,0.7);
  line-height: 1.7;
}
.card .addr .gold-text { font-size: 1.15rem; margin-bottom: .25rem; }

/* ====== SAVE THE DATE ====== */
.save-date { overflow: hidden; }
.save-date-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .4;
  filter: sepia(.2) brightness(.7) contrast(1.05);
}
.save-date-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,15,15,.85), rgba(15,15,15,.75) 50%, var(--onyx));
}
.save-date .container { position: relative; }
.Sunday { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .25rem; }
.date-huge { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 500; line-height: 1.1; margin: .5rem 0; }
.time      { letter-spacing: .4em; }
.venue-name { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: .5rem 0 .75rem; }

/* ====== COUNTDOWN ====== */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 600px; margin: 0 auto;
}
.cd-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 4px;
  padding: 1.25rem .5rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.cd-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  background: linear-gradient(135deg, #A6852A, #E8C76B, #FFF2C2, #E8C76B, #A6852A);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gold-shimmer 6s ease-in-out infinite;
  font-variant-numeric: tabular-nums;
}

/* ====== RSVP ====== */
.rsvp-step { display: none; margin-top: 2.5rem; text-align: center; }
.rsvp-step.active { display: block; animation: fadeUp .6s ease both; }
.rsvp-actions { margin-top: 1.5rem; }
@media (min-width: 600px) {
  .rsvp-actions { grid-template-columns: 1fr 1fr; }
}
.guest-control {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; margin: 1rem 0;
}
.circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(212,175,55,0.4);
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  transition: background .3s;
}
.circle:hover { background: rgba(212,175,55,0.1); }
.guest-num {
  font-size: 3.5rem; min-width: 80px; display: inline-block;
  font-variant-numeric: tabular-nums;
}
.big-mark { font-size: 3rem; margin-bottom: 1rem; }

/* ====== BUTTONS ====== */
.btn {
  position: relative;
  display: inline-block;
  padding: 1rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  border: none; border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: transform .4s, box-shadow .4s;
}
.btn.gold {
  background: linear-gradient(135deg, #A6852A 0%, #D4AF37 30%, #F1DB94 50%, #D4AF37 70%, #A6852A 100%);
  color: var(--onyx);
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(212,175,55,0.5);
  color: var(--ivory);
}
.btn.outline:hover { background: rgba(212,175,55,0.05); }
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px -5px rgba(212,175,55,0.5);
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-150%) skewX(-20deg);
}
.btn:hover::after { animation: shimmer 1s ease-out; }
@keyframes shimmer {
  0%   { transform: translateX(-150%) skewX(-20deg); }
  100% { transform: translateX(250%) skewX(-20deg); }
}

/* ====== LOCATION ====== */
.location-section { display: block; }
.location-section.show { display: block; }
.map-card { padding: 0; overflow: hidden; }
.map-card iframe {
  width: 100%; height: 420px; border: 0; display: block;
  filter: grayscale(40%) contrast(1.1) brightness(.9);
}
.map-actions {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  padding: 1.5rem;
}
@media (min-width: 600px) {
  .map-actions { grid-template-columns: 1fr 1fr; }
}

/* ====== FOOTER ====== */
.footer {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, var(--onyx) 60%, #000);
}
.big-quote { font-size: clamp(1.3rem, 2.5vw, 1.8rem); color: rgba(248,245,239,0.9); line-height: 1.7; }
.footer-fam { font-size: 1.3rem; margin-top: .25rem; }
.footer-couple {
  margin-top: 3rem;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .5rem 1rem;
  font-size: 11px; letter-spacing: .4em; text-transform: uppercase;
}
.footer-couple .sep { color: var(--gold); }

/* ====== REVEAL ON SCROLL ====== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ====== FADE IN UTILITIES ====== */
.fade-in { opacity: 0; animation: fadeUp 1s ease forwards; }
.delay-1 { animation-delay: .4s; }
.delay-2 { animation-delay: .9s; }
.delay-3 { animation-delay: 1.2s; }
.delay-4 { animation-delay: 1.6s; }
.delay-5 { animation-delay: 2.2s; }
.delay-6 { animation-delay: 2.6s; }
.delay-7 { animation-delay: 3.2s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}