/* ==========================================================================
   AJMAL & AAKHILA — BESPOKE ROMANTIC WEDDING INVITATION
   Palette & Aesthetic inspired by the couple's Champagne Ivory & Gold Attire
   ========================================================================== */

:root {
  /* Color Tokens */
  --bg-parchment: #faf6f0;
  --bg-parchment-deep: #f4ecdf;
  --bg-card: rgba(255, 253, 249, 0.92);
  --bg-card-hover: #ffffff;
  --ink-espresso: #251b14;
  --ink-soft: #423227;
  --ink-muted: #6e5e53;
  --ink-subtle: #98877d;
  
  /* Metallic Champagne Gold */
  --gold-primary: #b89248;
  --gold-light: #dfc894;
  --gold-shimmer: #f3e6c8;
  --gold-deep: #8f6c2c;
  --gold-border: rgba(184, 146, 72, 0.28);
  --gold-border-subtle: rgba(184, 146, 72, 0.16);
  --gold-glow: rgba(184, 146, 72, 0.18);
  
  /* Romantic Blush & Warm Accents */
  --blush-silk: #faefe8;
  --blush-tint: rgba(250, 239, 232, 0.65);
  --emerald-accent: #0f362a;

  /* Typography */
  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Pinyon Script", "Alex Brush", cursive;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-arabic: "Amiri", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-parchment);
  color: var(--ink-espresso);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

body.locked {
  overflow: hidden;
}

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

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink-espresso);
}

p {
  margin: 0;
}

/* ==========================================================================
   AMBIENT BACKGROUNDS & PARTICLES
   ========================================================================== */
canvas#fx {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(223, 200, 148, 0.15) 0%, transparent 65%);
  will-change: transform;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  z-index: 75;
  background: rgba(184, 146, 72, 0.1);
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light), var(--gold-primary));
}

/* ==========================================================================
   3D ROYAL WAX SEAL ENVELOPE
   ========================================================================== */
.envelope {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  background: radial-gradient(110% 85% at 50% 30%, #2e2118 0%, #1a120d 65%, #0d0906 100%);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.envelope.gone {
  opacity: 0;
  pointer-events: none;
}

.env-ring {
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(223, 200, 148, 0.16);
  border-radius: 50%;
  animation: spinSlow 32s linear infinite;
}

.env-frame {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(223, 200, 148, 0.14);
  border-radius: 18px;
  pointer-events: none;
}

.env-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.env-sparkles span {
  position: absolute;
  color: var(--gold-light);
  opacity: 0.35;
  font-size: 16px;
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

.env-sparkles span:nth-child(1) { top: 18%; left: 22%; animation-delay: 0.2s; }
.env-sparkles span:nth-child(2) { top: 25%; right: 20%; animation-delay: 1.2s; }
.env-sparkles span:nth-child(3) { bottom: 22%; left: 28%; animation-delay: 0.8s; }
.env-sparkles span:nth-child(4) { bottom: 26%; right: 25%; animation-delay: 1.8s; }

.env-topline {
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.env-arabic {
  font-family: var(--font-arabic);
  font-size: 18px;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.env-sub {
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 240, 230, 0.65);
}

.env-scene {
  position: relative;
  width: 320px;
  height: 220px;
  transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.env-back {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, #3d2c20, #241912);
  border: 1px solid rgba(223, 200, 148, 0.25);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.65);
}

.env-card {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  top: 30px;
  background:
    repeating-linear-gradient(105deg, rgba(0, 0, 0, 0.015) 0 1px, transparent 1px 3px),
    #fffcf7;
  border-radius: 4px;
  display: grid;
  place-items: center;
  padding: 0 16px;
  text-align: center;
  border: 1px solid rgba(184, 146, 72, 0.2);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.env-tag {
  font-family: var(--font-script);
  font-size: 20px;
  color: var(--gold-primary);
  display: block;
}

.env-names {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  color: var(--ink-espresso);
  margin: 3px 0 6px;
  letter-spacing: -0.5px;
}

.env-names em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-primary);
  font-size: 0.8em;
}

.env-date {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 124px;
  background: linear-gradient(175deg, #443225, #241912);
  border-top: 1px solid rgba(223, 200, 148, 0.3);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 3;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}

.env-seal {
  position: absolute;
  left: 50%;
  top: 106px;
  width: 105px;
  height: 105px;
  transform: translate(-50%, -50%) rotate(-3deg);
  z-index: 4;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.6));
  transition: transform 0.6s ease, opacity 0.5s ease;
}

.env-seal img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.env-cta {
  position: absolute;
  bottom: 42px;
  left: 0;
  right: 0;
  text-align: center;
  animation: floatDrift 3s ease-in-out infinite;
}

.env-cta small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(250, 240, 230, 0.65);
}

.env-cta strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  color: var(--gold-shimmer);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.envelope.opening .env-flap { transform: rotateX(178deg); }
.envelope.opening .env-card { transform: translateY(-30%); }
.envelope.opening .env-scene { transform: scale(0.88) translateY(24px); }
.envelope.opening .env-seal { transform: translate(-50%, -50%) scale(1.35) rotate(10deg); opacity: 0; }

/* ==========================================================================
   TOPBAR NAVIGATION
   ========================================================================== */
.topbar {
  height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6%;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s ease;
}

.monogram {
  display: flex;
  align-items: center;
}

.mono-initials {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1.5px;
  color: var(--ink-espresso);
  font-weight: 500;
}

.mono-amp {
  font-family: var(--font-script);
  font-size: 28px;
  color: var(--gold-primary);
  margin: 0 4px;
}

.toplinks {
  display: flex;
  gap: 32px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.toplinks a {
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.toplinks a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-primary);
  transition: width 0.25s ease;
}

.toplinks a:hover {
  color: var(--gold-deep);
}

.toplinks a:hover:after {
  width: 100%;
}

.music-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink-espresso);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(184, 146, 72, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.music-pill:hover {
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.music-bars {
  display: flex;
  align-items: center;
  gap: 2.5px;
}

.music-bars i {
  display: block;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: var(--gold-primary);
  animation: eqWave 0.7s ease-in-out infinite;
  animation-play-state: paused;
}

.music-bars i:nth-child(2) { animation-delay: 0.18s; }
.music-bars i:nth-child(3) { animation-delay: 0.36s; }
.music-bars i:nth-child(4) { animation-delay: 0.54s; }
.music-pill.on .music-bars i { animation-play-state: running; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold-primary) 50%, #cfa85c 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(143, 108, 44, 0.28);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(143, 108, 44, 0.38);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-espresso);
  border: 1px solid var(--gold-border);
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  background: #ffffff;
}

.btn-gcal {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  color: var(--ink-espresso);
  padding: 15px 28px;
  font-size: 11.5px;
  box-shadow: 0 8px 24px rgba(184, 146, 72, 0.1);
}

.btn-gcal:hover {
  border-color: var(--gold-primary);
  background: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 6% 50px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-bg-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: radial-gradient(rgba(184, 146, 72, 0.25) 0.6px, transparent 0.6px);
  background-size: 26px 26px;
}

.hero-inner, .hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.arabic-bismillah {
  font-family: var(--font-arabic);
  font-size: 24px;
  color: var(--gold-primary);
  line-height: 1.4;
  margin: 0 auto 8px;
  width: 100%;
  text-align: center;
  display: block;
}

.script-eyebrow {
  font-family: var(--font-script);
  font-size: 26px;
  color: var(--gold-deep);
  line-height: 1.2;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.reception-kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin: 0 auto 10px;
  width: 100%;
  text-align: center;
  display: block;
}

.couple-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  margin: 4px auto 16px;
  color: var(--ink-espresso);
}

.name-groom, .name-bride {
  display: block;
  text-align: center;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 auto;
}

.name-amp {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 260px;
  margin: 6px auto;
  gap: 14px;
}

.amp-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary));
  opacity: 0.55;
}

.name-amp .amp-line:last-child {
  background: linear-gradient(90deg, var(--gold-primary), transparent);
}

.amp-char {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--gold-primary);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-portrait {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 4px auto 18px;
}

.portrait-arch {
  position: relative;
  width: 100%;
  max-width: min(240px, 62vw);
  transition: transform 0.25s ease-out;
}

.arch-gold-border {
  position: absolute;
  inset: -7px;
  border: 1.5px solid var(--gold-border);
  border-radius: 140px 140px 16px 16px;
  pointer-events: none;
  z-index: 1;
}

.arch-inner {
  position: relative;
  width: 100%;
  border-radius: 130px 130px 12px 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(58, 42, 30, 0.16), 0 8px 18px rgba(184, 146, 72, 0.1);
  background: #f4ecdf;
  aspect-ratio: 1 / 1.18;
}

.arch-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.6s ease;
}

.arch-inner:hover img {
  transform: scale(1.03);
}

.arch-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(184, 146, 72, 0.04) 0%, transparent 60%, rgba(37, 27, 20, 0.25) 100%);
}

.portrait-tag {
  display: none;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(184, 146, 72, 0.08);
}

.badge-dot {
  color: var(--gold-primary);
  font-size: 10px;
}

.hero-tagline {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-muted);
  max-width: 520px;
  margin: 0 auto 20px;
  text-align: center;
}

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

.scroll-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 28px auto 0;
}

.scroll-line {
  width: 32px;
  height: 1px;
  background: var(--gold-border);
}

.tag-script {
  font-family: var(--font-script);
  font-size: 19px;
  color: var(--gold-deep);
  line-height: 1.1;
}

.tag-detail {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ==========================================================================
   ROMANTIC TICKER MARQUEE
   ========================================================================== */
.romantic-marquee {
  overflow: hidden;
  overflow-x: clip;
  contain: paint;
  padding: 14px 0;
  background: linear-gradient(90deg, #2b1f17 0%, #3d2c20 50%, #2b1f17 100%);
  border-top: 1px solid rgba(223, 200, 148, 0.25);
  border-bottom: 1px solid rgba(223, 200, 148, 0.25);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marqueeLoop 24s linear infinite;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold-shimmer);
}

.marquee-track span {
  padding: 0 18px;
}

.marquee-track i {
  font-style: normal;
  color: var(--gold-light);
  font-size: 14px;
}

.marquee-track .arabic-sub {
  font-family: var(--font-arabic);
  font-size: 20px;
  color: #ffffff;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
  padding: 95px 6%;
  position: relative;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.section-badge {
  font-family: var(--font-script);
  font-size: 30px;
  color: var(--gold-deep);
  margin-bottom: 4px;
  line-height: 1.1;
}

.section-title {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.1;
  color: var(--ink-espresso);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

/* ==========================================================================
   COUNTDOWN SECTION
   ========================================================================== */
.countdown-section {
  background: linear-gradient(180deg, var(--bg-parchment) 0%, #f6eee2 100%);
  border-top: 1px solid var(--gold-border-subtle);
  border-bottom: 1px solid var(--gold-border-subtle);
}

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 3vw, 36px);
  max-width: 800px;
  margin: 0 auto;
}

.countdown-card {
  padding: 24px 20px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  box-shadow: 0 14px 34px rgba(184, 146, 72, 0.08);
  min-width: 90px;
  flex: 1;
  max-width: 140px;
  transition: transform 0.25s ease;
}

.countdown-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
}

.count-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
  font-weight: 400;
  color: var(--ink-espresso);
}

.count-label {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 8px;
  font-weight: 600;
}

.countdown-divider {
  font-size: 18px;
  color: var(--gold-light);
}

/* ==========================================================================
   CALENDAR SECTION
   ========================================================================== */
.calendar-section {
  background: var(--bg-parchment);
}

.cal-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  text-align: left;
}

.cal-intro {
  display: flex;
  flex-direction: column;
}

.cal-intro .section-badge {
  text-align: left;
}

.cal-intro .section-title {
  text-align: left;
}

.cal-intro .section-subtitle {
  text-align: left;
  margin: 0 0 26px 0;
}

.date-chips {
  display: grid;
  gap: 12px;
}

.date-chip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border-subtle);
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.date-chip:hover {
  transform: translateX(6px);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 24px rgba(184, 146, 72, 0.1);
}

.chip-day {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ink-espresso), #443225);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  flex: none;
}

.chip-day.gold-day {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-primary));
}

.chip-info strong {
  display: block;
  font-size: 13px;
  color: var(--ink-espresso);
  font-weight: 600;
}

.chip-info small {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.chip-icon {
  color: var(--gold-primary);
  flex: none;
}

.cal-card {
  padding: 28px 28px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(184, 146, 72, 0.08);
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--gold-border-subtle);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.cal-month {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-espresso);
}

.cal-year {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.cal-weekdays, .cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-weekdays {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 8px;
}

.cal-days {
  font-size: 13.5px;
  color: var(--ink-muted);
}

.cal-days span {
  height: 40px;
  display: grid;
  place-items: center;
}

.cal-days b {
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cal-days b:hover {
  transform: scale(1.1);
}

.cal-days b.d22 {
  background: linear-gradient(135deg, #1b3d30, #2f5f4d);
  box-shadow: 0 6px 16px rgba(27, 61, 48, 0.35);
}

.cal-days b.d23 {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-primary));
  box-shadow: 0 6px 16px rgba(184, 146, 72, 0.35);
}

.cal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--gold-border-subtle);
  font-size: 11px;
  color: var(--ink-muted);
}

.dot-legend {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-nikah { background: #1b3d30; }
.dot-reception { background: var(--gold-primary); margin-left: 10px; }

/* ==========================================================================
   THE CELEBRATIONS SECTION (LUXURY ARCHED CARDS)
   ========================================================================== */
.events-section {
  background: linear-gradient(180deg, #f6eee2 0%, var(--bg-parchment) 100%);
  border-top: 1px solid var(--gold-border-subtle);
}

.carousel-nav,
.carousel-dots {
  display: none !important;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  max-width: 1040px;
  margin: 0 auto;
  text-align: left;
}

.event-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 28px;
  padding: 44px 36px 40px;
  box-shadow: 0 20px 45px rgba(58, 42, 30, 0.07);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: 0 28px 55px rgba(184, 146, 72, 0.14);
}

.card-ornament {
  position: absolute;
  top: 28px;
  right: 32px;
  font-size: 26px;
  color: var(--gold-light);
}

.card-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}

.card-title {
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.1;
  color: var(--ink-espresso);
  margin: 10px 0 16px;
}

.card-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(184, 146, 72, 0.08);
  border: 1px solid var(--gold-border-subtle);
  color: var(--gold-deep);
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ==========================================================================
   DESTINATION BADGES & BESPOKE VENUE ICONS
   ========================================================================== */
.card-venue-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--gold-border-subtle);
  border-bottom: 1px solid var(--gold-border-subtle);
  margin-bottom: 24px;
}

.destination-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  width: fit-content;
}

.destination-badge svg {
  flex: none;
}

.destination-badge-kodungallur {
  background: rgba(184, 146, 72, 0.12);
  border: 1px solid rgba(184, 146, 72, 0.32);
  color: var(--gold-deep);
}

.destination-badge-kalamassery {
  background: rgba(37, 27, 20, 0.06);
  border: 1px solid rgba(184, 146, 72, 0.28);
  color: var(--ink-espresso);
}

.venue-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 6px 16px rgba(184, 146, 72, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.venue-icon-kodungallur {
  background: linear-gradient(135deg, #fdf8ee 0%, #f4ecdf 100%);
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-deep);
}

.venue-icon-kalamassery {
  background: linear-gradient(135deg, #ffffff 0%, #faefe8 100%);
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-deep);
}

.event-card:hover .venue-icon-kodungallur {
  transform: translateY(-3px) scale(1.05) rotate(-3deg);
  box-shadow: 0 10px 22px rgba(184, 146, 72, 0.22);
}

.event-card:hover .venue-icon-kalamassery {
  transform: translateY(-3px) scale(1.05) rotate(3deg);
  box-shadow: 0 10px 22px rgba(184, 146, 72, 0.22);
}

.venue-details {
  flex: 1;
}

.venue-details h4 {
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink-espresso);
  margin-bottom: 4px;
}

.venue-details p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card-actions .btn {
  padding: 11px 20px;
  font-size: 10.5px;
}

.events-gcal-wrapper {
  margin-top: 45px;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   QURANIC BLESSING / QUOTE
   ========================================================================== */
.blessing-section {
  background: var(--bg-parchment);
  padding: 85px 6%;
}

.blessing-container {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.blessing-flourish {
  font-size: 26px;
  color: var(--gold-primary);
  margin-bottom: 18px;
}

.blessing-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(23px, 3.2vw, 34px);
  line-height: 1.8;
  color: var(--gold-deep);
  margin-bottom: 24px;
}

.blessing-english {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(21px, 2.8vw, 34px);
  line-height: 1.45;
  color: var(--ink-espresso);
  margin: 0 auto 16px;
  max-width: 760px;
}

.blessing-reference {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-weight: 700;
}

/* ==========================================================================
   ROYAL FOOTER
   ========================================================================== */
.royal-footer {
  background: linear-gradient(180deg, #241912 0%, #150e09 100%);
  color: #ffffff;
  padding: 75px 6% 85px;
  text-align: center;
  border-top: 1px solid rgba(223, 200, 148, 0.2);
}

.footer-container {
  max-width: 600px;
  margin: 0 auto;
}

.footer-monogram {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--gold-light);
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.footer-names {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-shimmer);
  margin-bottom: 8px;
}

.footer-dates {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 240, 230, 0.65);
  margin-bottom: 24px;
}

.footer-heart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-script);
  font-size: 24px;
  color: var(--gold-light);
}

.heart-pulse {
  color: var(--gold-primary);
  animation: pulseGlow 1.8s ease-in-out infinite;
}

/* ==========================================================================
   BACK TO TOP & MOBILE STICKY BAR
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 52;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  background: #ffffff;
  color: var(--gold-deep);
  font-size: 16px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(58, 42, 30, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top:hover {
  background: var(--gold-primary);
  color: #ffffff;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes marqueeLoop {
  to { transform: translateX(-50%); }
}

@keyframes eqWave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

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

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.6; }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET ADJUSTMENTS)
   ========================================================================== */
@media (max-width: 959px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  main, header, section, footer {
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  .topbar {
    padding: 0 5%;
    max-width: 100%;
  }

  .toplinks {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 20px 4% 36px;
    gap: 0;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-inner, .hero-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  .arabic-bismillah {
    margin: 0 auto 6px;
    font-size: 20px;
    line-height: 1.3;
  }

  .reception-kicker {
    font-size: 9.5px;
    letter-spacing: 0.24em;
    color: var(--gold-deep);
    margin: 0 auto 8px;
    font-weight: 700;
  }

  .couple-names {
    font-size: clamp(25px, 6.5vw, 34px);
    line-height: 1.15;
    margin: 2px auto 14px;
    letter-spacing: -0.5px;
  }

  .name-groom, .name-bride {
    font-size: clamp(26px, 7vw, 36px);
    display: block;
    text-align: center;
  }

  .name-amp {
    max-width: 200px;
    margin: 4px auto;
    gap: 10px;
  }

  .amp-char {
    font-size: 22px;
  }

  /* COUPLE PORTRAIT: BEAUTIFULLY PROPORTIONED & UNCLUTTERED */
  .hero-portrait {
    max-width: 100%;
    padding: 0;
    margin: 2px auto 14px;
    display: flex;
    justify-content: center;
  }

  .portrait-arch {
    width: 100%;
    max-width: min(190px, 54vw);
  }

  .arch-inner {
    aspect-ratio: 1 / 1.18;
    border-radius: 115px 115px 14px 14px;
    box-shadow: 0 18px 36px rgba(58, 42, 30, 0.14);
  }

  .arch-inner img {
    object-position: center 22%;
  }

  .arch-gold-border {
    border-radius: 125px 125px 18px 18px;
  }

  .portrait-tag {
    display: none;
  }

  .date-badge {
    max-width: 95%;
    padding: 6px 14px;
    font-size: 9.5px;
    white-space: normal;
    text-align: center;
    line-height: 1.45;
    margin: 0 auto 12px;
  }

  .hero-tagline {
    font-size: 11.5px;
    line-height: 1.6;
    max-width: 330px;
    margin: 0 auto 16px;
    color: var(--ink-muted);
  }

  .hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 360px;
    gap: 10px;
    margin: 0 auto 14px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    padding: 12px 10px;
    font-size: 10.5px;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
  }

  .scroll-prompt {
    display: none !important;
  }

  /* Countdown Grid on Mobile (Zero sideways overflow) */
  .countdown-section {
    padding: 55px 4%;
  }

  .countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    max-width: 100%;
    width: 100%;
    padding: 0;
  }

  .countdown-divider {
    display: none;
  }

  .countdown-card {
    min-width: 0;
    max-width: none;
    padding: 14px 4px;
    border-radius: 12px;
  }

  .count-num {
    font-size: clamp(22px, 6.5vw, 30px);
  }

  .count-label {
    font-size: 8px;
    letter-spacing: 0.1em;
    margin-top: 4px;
  }

  /* Calendar on Mobile */
  .calendar-section {
    padding: 55px 4%;
  }

  .cal-wrapper {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 100%;
  }

  .cal-intro .section-badge,
  .cal-intro .section-title,
  .cal-intro .section-subtitle {
    text-align: center;
  }

  .cal-card {
    padding: 20px 12px;
    border-radius: 18px;
    max-width: 100%;
  }

  .cal-days span, .cal-days b {
    height: 36px;
  }

  /* Events on Mobile - Option 2: Side-by-Side Swipe Carousel */
  .carousel-nav {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 0 auto 20px;
    padding: 4px;
    background: rgba(184, 146, 72, 0.08);
    border: 1px solid var(--gold-border);
    border-radius: 999px;
    width: fit-content;
    max-width: 100%;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .carousel-pill {
    background: transparent;
    border: none;
    outline: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--gold-muted);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }

  .carousel-pill .pill-dot {
    font-size: 9px;
    opacity: 0.7;
    transition: transform 0.25s ease;
  }

  .carousel-pill.active {
    background: linear-gradient(135deg, var(--gold-primary) 0%, #98722a 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(184, 146, 72, 0.35);
  }

  .carousel-pill.active .pill-dot {
    opacity: 1;
    transform: scale(1.15);
  }

  .events-section {
    padding: 50px 4% 45px;
    overflow-x: clip;
  }

  .events-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    gap: 14px !important;
    padding: 10px 5% 18px !important;
    margin: 0 -4% !important;
    width: calc(100% + 8%) !important;
    scrollbar-width: none !important;
  }

  .events-grid::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .event-card {
    flex: 0 0 88% !important;
    width: 88% !important;
    max-width: 88% !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    margin: 0 !important;
    padding: 30px 18px !important;
    border-radius: 22px !important;
    box-sizing: border-box !important;
    box-shadow: 0 14px 35px rgba(58, 42, 30, 0.08) !important;
  }

  .carousel-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 4px auto 22px;
    padding: 0;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(184, 146, 72, 0.28);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
  }

  .carousel-dot.active {
    width: 26px;
    background: linear-gradient(135deg, var(--gold-primary), #98722a);
    box-shadow: 0 2px 8px rgba(184, 146, 72, 0.3);
  }

  .card-time-pill {
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
    font-size: 10px;
  }

  .btn-gcal {
    font-size: 10px;
    padding: 12px 16px;
    text-align: center;
    max-width: 100%;
  }

  /* Blessing Section on Mobile */
  .blessing-section {
    padding: 55px 4%;
  }

  .card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .card-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 11px 8px;
    font-size: 10px;
    white-space: nowrap;
  }

  .back-to-top {
    bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
