/* ═══════════════════════════════════════════════════════════════
   WEDDING INVITATION – Farsana & Haseeb
   Color Palette:
     Royal Blue  → #1a3a6b / #1e4d8c / #2460b0
     Deep Navy   → #0d2240
     Cream/Beige → #faf5eb / #f5ede0 / #ede0c8
     Gold Accent → #D4AF37 / #c9a227
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --blue-deep: #0d2240;
  --blue-royal: #1a3a6b;
  --blue-mid: #1e4d8c;
  --blue-light: #2460b0;
  --cream: #faf5eb;
  --cream-mid: #f5ede0;
  --cream-dark: #ede0c8;
  --gold: #D4AF37;
  --gold-dark: #c9a227;
  --text-dark: #1a1a2e;
  --text-mid: #3a3a5c;
  --white: #ffffff;
  --shadow-blue: rgba(26, 58, 107, 0.18);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-caps: 'Cinzel', serif;
  --font-body: 'Lato', sans-serif;
  --radius: 16px;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--text-dark);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--cream-mid);
}

::-webkit-scrollbar-thumb {
  background: var(--blue-royal);
  border-radius: 3px;
}

/* ─── PARTICLES ─── */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(1.5) rotate(360deg);
  }
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("farsana copy.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  text-align: center;
  padding: 40px 20px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 34, 64, 0.65);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

.bismillah {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold);
  font-family: 'Scheherazade New', 'Amiri', serif;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
  letter-spacing: 2px;
}

.bismillah-tr {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.divider-ornament span {
  display: block;
  height: 1px;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.divider-ornament span:last-child {
  background: linear-gradient(to left, transparent, var(--gold));
}

.divider-ornament svg {
  width: 24px;
  height: 14px;
}

.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 16px 0 12px;
}

.bride-name,
.groom-name {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--cream);
  text-shadow: 0 2px 20px rgba(212, 175, 55, 0.3);
  line-height: 1.1;
  animation: shimmer 3s ease-in-out infinite alternate;
}

@keyframes shimmer {
  from {
    text-shadow: 0 2px 20px rgba(212, 175, 55, 0.3);
  }

  to {
    text-shadow: 0 4px 30px rgba(212, 175, 55, 0.6), 0 0 60px rgba(212, 175, 55, 0.2);
  }
}

.ampersand {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--gold);
  display: block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
  margin: 8px 0 18px;
}

.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0;
}

.date-num {
  font-family: var(--font-caps);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 4px;
}

.date-sep {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.4rem;
}

.hero-venue {
  font-family: var(--font-caps);
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-venue-icon {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
}

.scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding: 12px 28px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 50px;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-caps);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  background: rgba(212, 175, 55, 0.08);
}

.scroll-btn:hover {
  background: var(--gold);
  color: var(--blue-deep);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.scroll-btn svg {
  animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

/* ═══════════════════════════════════
   SECTION COMMON
═══════════════════════════════════ */
.section-header {
  text-align: center;
  padding: 60px 20px 40px;
}

.section-header.light .section-tag {
  color: rgba(255, 255, 255, 0.65);
}

.section-header.light .section-title {
  color: var(--cream);
}

.section-header.light .divider-line span {
  background: rgba(212, 175, 55, 0.6);
}

.section-tag {
  font-family: var(--font-caps);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--blue-deep);
  margin-bottom: 16px;
  line-height: 1.2;
}

.divider-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px auto;
}

.divider-line span {
  display: block;
  height: 1px;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.divider-line span:last-child {
  background: linear-gradient(to left, transparent, var(--gold));
}

.divider-line.small span {
  width: 50px;
}

.diamond {
  color: var(--gold);
  font-size: 0.7rem;
}

/* ═══════════════════════════════════
   COUNTDOWN
═══════════════════════════════════ */
.countdown-section {
  background: var(--cream);
  padding: 20px 20px 70px;
  position: relative;
  z-index: 1;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px auto 24px;
  max-width: 700px;
}

.count-box {
  background: var(--blue-royal);
  border-radius: 16px;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26, 58, 107, 0.3);
  transition: var(--transition);
}

.count-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
}

.count-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26, 58, 107, 0.4);
}

.count-num {
  font-family: var(--font-caps);
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
}

.count-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

.countdown-note {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-mid);
  font-size: 1.05rem;
}

/* ═══════════════════════════════════
   INVITATION CARD
═══════════════════════════════════ */
.invitation-section {
  background: linear-gradient(160deg, var(--cream-mid) 0%, var(--cream) 100%);
  padding: 60px 20px;
  position: relative;
}

.invitation-section::before {
  content: '';
  position: absolute;
  inset: 0;
  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='%231a3a6b' fill-opacity='0.03'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.inv-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(26, 58, 107, 0.12), 0 4px 20px rgba(212, 175, 55, 0.1);
  animation: cardFloat 4s ease-in-out infinite;
}

@keyframes cardFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* Corner decorations */
.inv-corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: var(--gold);
  border-style: solid;
}

.inv-corner-tl {
  top: 12px;
  left: 12px;
  border-width: 2px 0 0 2px;
}

.inv-corner-tr {
  top: 12px;
  right: 12px;
  border-width: 2px 2px 0 0;
}

.inv-corner-bl {
  bottom: 12px;
  left: 12px;
  border-width: 0 0 2px 2px;
}

.inv-corner-br {
  bottom: 12px;
  right: 12px;
  border-width: 0 2px 2px 0;
}

.inv-from-label {
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 10px;
}

.inv-family {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--blue-deep);
  margin-bottom: 4px;
}

.inv-address {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 18px;
  line-height: 1.7;
}

.inv-cordially {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 20px;
  line-height: 1.8;
}

.inv-bride {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  color: var(--blue-royal);
  margin: 10px 0 4px;
}

.inv-with {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-dark);
  font-size: 1rem;
  margin: 4px 0;
}

.inv-groom {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  color: var(--blue-royal);
  margin: 4px 0 14px;
}

.inv-son {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.7;
}

.sharing-text {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--blue-mid);
  font-size: 1.05rem;
  margin-top: 10px;
}

/* ═══════════════════════════════════
   BRIDE & GROOM
═══════════════════════════════════ */
.couple-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-mid) 100%);
  padding: 60px 20px 80px;
}

.couple-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.person-card {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 30px;
  text-align: center;
  width: 300px;
  box-shadow: 0 12px 40px rgba(26, 58, 107, 0.12);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.person-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;

}

.person-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(26, 58, 107, 0.2);
  border-color: rgba(212, 175, 55, 0.4);
}

.person-photo-ring {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid), var(--blue-light));
  animation: ringRotate 6s linear infinite;
}

@keyframes ringRotate {
  from {
    background: linear-gradient(0deg, var(--blue-deep), var(--blue-mid), var(--blue-light));
  }

  to {
    background: linear-gradient(360deg, var(--blue-deep), var(--blue-mid), var(--blue-light));
  }
}

.person-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.photo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.photo-fallback svg {
  width: 80%;
  height: 80%;
}

.person-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--blue-deep);
  margin-bottom: 4px;
}

.person-role {
  font-family: var(--font-caps);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.person-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 12px auto;
}

.person-parents {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-mid);
  font-size: 0.92rem;
  margin-bottom: 6px;
  line-height: 1.6;
}

.person-address {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.couple-amp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-family: var(--font-script);
  font-size: 3.5rem;
  color: var(--blue-royal);
}

.amp-rings {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid var(--gold);
  transition: var(--transition);
}

.ring.r1 {
  transform: translateX(5px);
}

.ring.r2 {
  transform: translateX(-5px);
}

.couple-amp:hover .r1 {
  transform: translateX(3px);
}

.couple-amp:hover .r2 {
  transform: translateX(-3px);
}

/* ═══════════════════════════════════
   EVENT DETAILS
═══════════════════════════════════ */
.event-section {
  background: linear-gradient(160deg, var(--blue-deep) 0%, var(--blue-royal) 50%, var(--blue-deep) 100%);
  padding: 20px 20px 80px;
  position: relative;
  overflow: hidden;
}

.event-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.3' opacity='0.1'%3E%3Cpolygon points='30,5 55,20 55,40 30,55 5,40 5,20'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.event-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.event-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  padding: 40px 36px;
  width: 420px;
  max-width: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cream), var(--gold));
}

.event-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.event-badge {
  display: inline-block;
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: var(--gold);
  font-family: var(--font-caps);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.event-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--cream);
  margin-bottom: 8px;
}

.event-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 22px;
}

.event-divider span {
  flex: 1;
  height: 1px;
  background: rgba(212, 175, 55, 0.35);
}

.diamond.small {
  font-size: 0.5rem;
}

.event-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.event-detail:last-of-type {
  border-bottom: none;
}

.event-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
}

.detail-label {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.7);
  margin-bottom: 4px;
}

.detail-val {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 2px;
}

.detail-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
}

.event-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: var(--transition);
  flex: 1;
  justify-content: center;
}

.primary-btn {
  background: var(--gold);
  color: var(--blue-deep);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.primary-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.secondary-btn {
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold);
  background: transparent;
}

.secondary-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════
   QUOTE SECTION
═══════════════════════════════════ */
.quote-section {
  background: var(--cream-mid);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.arabic-quote {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--blue-royal);
  margin-bottom: 16px;
  line-height: 1.8;
}

.quote-trans {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 10px;
}

.quote-ref {
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.petal {
  position: absolute;
  opacity: 0.15;
  animation: sway 6s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.petal svg {
  width: 28px;
  height: 28px;
  stroke: var(--blue-royal);
  fill: none;
}

.p1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.p2 {
  top: 20%;
  right: 8%;
  animation-delay: 1.2s;
}

.p3 {
  bottom: 15%;
  left: 10%;
  animation-delay: 2s;
}

.p4 {
  bottom: 10%;
  right: 5%;
  animation-delay: 0.8s;
}

.p5 {
  top: 50%;
  left: 50%;
  animation-delay: 3s;
}

@keyframes sway {

  0%,
  100% {
    transform: rotate(-10deg) scale(1);
  }

  50% {
    transform: rotate(10deg) scale(1.1);
  }
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.footer {
  background: linear-gradient(160deg, var(--blue-deep) 0%, var(--blue-royal) 100%);
  padding: 60px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.3' opacity='0.08'%3E%3Cpolygon points='30,5 55,20 55,40 30,55 5,40 5,20'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.footer-floral {
  position: absolute;
  bottom: 0;
  opacity: 0.6;
}

.footer-floral-l {
  left: 10px;
}

.footer-floral-r {
  right: 10px;
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-monogram {
  font-family: var(--font-caps);
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold);
  text-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  margin-bottom: 10px;
  animation: shimmer 3s ease-in-out infinite alternate;
}

.footer-names {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--cream);
  margin-bottom: 8px;
}

.footer-date {
  font-family: var(--font-caps);
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.footer-divider {
  margin: 16px auto;
}

.footer-bismillah {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
}

.footer-sharing {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.footer-contact {
  margin: 16px 0;
}

.footer-link {
  font-family: var(--font-caps);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 8px 22px;
  border-radius: 30px;
  transition: var(--transition);
  display: inline-block;
}

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

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 24px;
}

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 600px) {
  .count-box {
    width: 110px;
    height: 110px;
  }

  .count-num {
    font-size: 2.2rem;
  }

  .person-card {
    width: 100%;
    max-width: 340px;
  }

  .couple-amp {
    font-size: 2.5rem;
  }

  .event-btns {
    flex-direction: column;
  }

  .inv-card {
    padding: 40px 24px;
  }

  .hero-flowers {
    width: 120px;
    height: 200px;
  }
}

@media (max-width: 400px) {
  .hero-date {
    gap: 6px;
  }

  .count-box {
    width: 90px;
    height: 90px;
  }

  .count-num {
    font-size: 1.8rem;
  }
}

/* ─── MUSIC PLAYER ─── */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  background: var(--blue-royal);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(26, 58, 107, 0.4);
  transition: var(--transition);
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(26, 58, 107, 0.6);
}

.music-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
}

.music-toggle.playing svg {
  animation: rotateMusic 4s linear infinite;
}

@keyframes rotateMusic {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Floating music note animations when playing */
.music-note {
  font-size: 14px;
  z-index: 999;
  pointer-events: none;
  animation: floatNote 2s ease-out forwards;
}

@keyframes floatNote {
  0% {
    transform: translate(0, 0) scale(0.5);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translate(-24px, -60px) scale(1.3) rotate(-15deg);
    opacity: 0;
  }
}

/* ─── SCROLL LOCK ─── */
body.scroll-locked {
  overflow: hidden;
  height: 100vh;
}

/* ─── PRELOADER (NAVY & GOLD) ─── */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-deep);
  transition: opacity 0.9s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.9s;
}
#preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-mark { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.preloader-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.preloader-ring circle {
  fill: none; stroke: var(--gold); stroke-width: 1.4;
  stroke-dasharray: 264; stroke-dashoffset: 264;
  animation: ringDraw 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards infinite;
}
@keyframes ringDraw {
  0% { stroke-dashoffset: 264; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -264; }
}
.preloader-initials {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--cream);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

/* ─── NIKAH ARCH REVEAL (ROYAL BLUE & GOLD) ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: var(--blue-deep);
  opacity: 1;
  transition: opacity 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.15s, background 1.1s;
  z-index: 1;
}
.hero.is-open .hero-overlay {
  opacity: 0.65;
  background: rgba(13, 34, 64, 0.65);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 800px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}
.hero.is-open .hero-content {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.arch-frame {
  position: absolute;
  width: min(78vw, 340px);
  height: min(78vw, 420px) ;
  max-height: 62vh;
  z-index: 3;
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero.is-open .arch-frame {
  pointer-events: none;
}

.arch-leaf {
  position: absolute; top: 0; width: 50%; height: 100%;
  fill: transparent;
  stroke: var(--gold);
  stroke-width: 1.4;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.35));
  transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1), opacity 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.2s;
}
.arch-leaf--left { left: 0; transform-origin: left center; fill: rgba(26, 58, 107, 0.98); }
.arch-leaf--right { right: 0; transform-origin: right center; fill: rgba(26, 58, 107, 0.98); }
.arch-leaf__inline { fill: none; stroke: var(--gold-dark); stroke-width: 0.8; opacity: 0.7; }

.garland {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: min(84vw, 380px);
  z-index: 4;
  opacity: 0.95;
  transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}
.garland__string { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.6; }
.garland__buds circle { fill: var(--cream); stroke: var(--gold); stroke-width: 0.6; }
.garland__buds circle:nth-child(odd) { fill: var(--cream-dark); }

.arch-cta {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--gold);
  background: none; border: none;
  cursor: pointer;
  transition: opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1), transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.arch-cta__ring {
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: pulseRing 2.6s ease-in-out infinite;
}
.arch-cta__ring::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
}
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.35); }
  50% { box-shadow: 0 0 0 12px rgba(212,175,55,0); }
}
.arch-cta__label {
  font-family: var(--font-caps);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  white-space: nowrap;
}

/* Opened state classes */
.arch-frame.is-open .arch-leaf--left { transform: translateX(-108%) rotateY(12deg); opacity: 0; }
.arch-frame.is-open .arch-leaf--right { transform: translateX(108%) rotateY(-12deg); opacity: 0; }
.arch-frame.is-open .arch-cta { opacity: 0; transform: translate(-50%, -50%) scale(0.7); pointer-events: none; }
.arch-frame.is-open .garland { transform: translateX(-50%) translateY(-30px); opacity: 0.25; }

/* ─── BURST PARTICLES ─── */
.ring-particles {
  position: absolute; inset: 0;
  z-index: 6;
  overflow: visible;
  pointer-events: none;
}
.ring-particle {
  position: absolute;
  bottom: 46%;
  transform: translate(-50%, 0) scale(0.6) rotate(0deg);
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(212,175,55,0.55));
  animation-name: ringBurst;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: forwards;
}
@keyframes ringBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.5) rotate(0deg);
  }
  14% {
    opacity: 0.9;
  }
  75% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift)), var(--rise)) scale(1.05) rotate(var(--rotate));
  }
}