/* ===================================================
   WEDDING INVITATION - ABDELRAHMAN & MARIAM
   Minimalist Luxury: Off-White & Refined Gold
   =================================================== */

@import url('gallery-map.css');

:root {
  /* Off-White & Ivory Palette */
  --bg-main: #FAF8F5;
  --bg-pure-white: #FFFFFF;
  --bg-warm-ivory: #F7F4EE;
  --bg-soft-cream: #F0EAE0;
  --bg-card-glass: rgba(255, 255, 255, 0.92);
  --bg-card-border: rgba(184, 144, 63, 0.25);

  /* Refined Gold Palette */
  --gold-primary: #B8903F;
  --gold-deep: #8E6C23;
  --gold-rich: #9A7629;
  --gold-light: #D4AF37;
  --gold-soft-bg: rgba(184, 144, 63, 0.08);
  --gold-gradient: linear-gradient(135deg, #8E6C23 0%, #C49A45 50%, #8E6C23 100%);
  --gold-glow: 0 4px 20px rgba(184, 144, 63, 0.18);

  /* Typography Colors */
  --text-main: #2C261E;
  --text-secondary: #5C5245;
  --text-muted: #8C8072;
  --text-gold: #9A7629;
  --text-dark: #2C261E;

  /* Fonts */
  --font-arabic-heading: 'Amiri', serif;
  --font-arabic-calligraphy: 'Aref Ruqaa', cursive;
  --font-arabic-ui: 'Cairo', sans-serif;
  --font-arabic-monogram: 'Reem Kufi', sans-serif;

  /* Envelope Dimensions & Minimalist Cream Colors */
  --envelope-width: 380px;
  --envelope-height: 250px;
  --envelope-color: #F8F4EC;
  --envelope-inner: #EFE8DC;
  --envelope-flap-color: #F4EFE5;
  --letter-paper: #FFFFFF;

  --shadow-lux: 0 15px 40px rgba(140, 120, 95, 0.12);
  --shadow-card: 0 8px 25px rgba(140, 120, 95, 0.06);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-arabic-ui);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% 0%, #FFFFFF 0%, #FAF8F5 50%, #F5F0E8 100%);
  color: var(--text-main);
  line-height: 1.8;
  direction: rtl;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Ambient Canvas for Soft Golden Dust */
#petalsCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* Floating Controls (Music + Share) */
.floating-controls {
  position: fixed;
  bottom: 25px;
  left: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-deep);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(184, 144, 63, 0.15);
  transition: var(--transition-smooth);
  position: relative;
}

.control-btn:hover {
  transform: translateY(-2px) scale(1.05);
  background: var(--gold-gradient);
  color: #fff;
  border-color: transparent;
}

.control-btn.playing {
  animation: pulseGold 2s infinite;
}

.music-wave {
  position: absolute;
  bottom: 8px;
  display: none;
  gap: 2px;
  align-items: flex-end;
  height: 10px;
}

.control-btn.playing .music-wave {
  display: flex;
}

.music-wave span {
  width: 2px;
  background-color: var(--gold-deep);
  animation: waveBar 1s infinite ease-in-out;
}

.music-wave span:nth-child(2) {
  animation-delay: 0.2s;
}

.music-wave span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes waveBar {
  0%, 100% { height: 3px; }
  50% { height: 10px; }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 10px rgba(184, 144, 63, 0.2); }
  50% { box-shadow: 0 0 20px rgba(184, 144, 63, 0.4); }
}

/* ===================================================
   1. ENVELOPE HERO SECTION
   =================================================== */
.envelope-hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  z-index: 10;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.2;
}

.glow-1 {
  background: radial-gradient(circle, #F7E5A9 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.glow-2 {
  background: radial-gradient(circle, #EBD5A0 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
}

.envelope-header-hint {
  text-align: center;
  margin-bottom: 25px;
  animation: fadeInDown 1s ease-out;
}

.sub-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 30px;
  background: rgba(184, 144, 63, 0.08);
  border: 1px solid rgba(184, 144, 63, 0.35);
  color: var(--gold-deep);
  font-size: 0.85rem;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-teaser-title {
  font-family: var(--font-arabic-heading);
  font-size: 2.7rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  font-weight: 700;
}

.envelope-instruction {
  color: var(--text-secondary);
  font-size: 1rem;
  opacity: 0.9;
  animation: bounceHint 2s infinite ease-in-out;
}

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

/* 3D Envelope Container */
.envelope-scene {
  perspective: 1200px;
  margin: 30px auto;
  position: relative;
  width: var(--envelope-width);
  height: var(--envelope-height);
  cursor: pointer;
  transition: transform 0.4s ease;
}

.envelope-box {
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--envelope-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lux), 0 0 25px rgba(184, 144, 63, 0.12);
  border: 1px solid rgba(184, 144, 63, 0.35);
  transition: transform 0.6s ease;
}

.envelope-scene:hover .envelope-box {
  transform: translateY(-4px);
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: var(--envelope-inner);
  border-radius: 12px;
  overflow: hidden;
}

.envelope-back::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(184, 144, 63, 0.1), transparent 70%);
}

/* Minimalist Card Slip inside Envelope (No large cut-off popup) */
.letter-card {
  position: absolute;
  width: 90%;
  left: 5%;
  bottom: 8px;
  height: calc(var(--envelope-height) - 20px);
  background: var(--letter-paper);
  border-radius: 10px;
  padding: 16px;
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(140, 120, 95, 0.12);
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  text-align: center;
  border: 1.5px dashed rgba(184, 144, 63, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.letter-card .bismillah-calligraphy {
  font-family: var(--font-arabic-heading);
  font-size: 1.15rem;
  color: var(--gold-deep);
  font-weight: 700;
}

.letter-card .letter-names-row {
  font-family: var(--font-arabic-calligraphy);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 4px 0;
}

.letter-card .letter-date-pill {
  font-size: 0.8rem;
  color: var(--gold-deep);
  font-weight: 600;
  margin: 0;
  padding: 4px 12px;
}

/* Envelope Pockets (The folds) */
.envelope-pocket-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: calc(var(--envelope-width) / 2) solid #F0EAE0;
  border-top: calc(var(--envelope-height) / 2) solid transparent;
  border-bottom: calc(var(--envelope-height) / 2) solid transparent;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(2px 0 3px rgba(140,120,95,0.08));
}

.envelope-pocket-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-right: calc(var(--envelope-width) / 2) solid #F0EAE0;
  border-top: calc(var(--envelope-height) / 2) solid transparent;
  border-bottom: calc(var(--envelope-height) / 2) solid transparent;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(-2px 0 3px rgba(140,120,95,0.08));
}

.envelope-pocket-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-bottom: calc(var(--envelope-height) * 0.58) solid #E8E0D2;
  border-left: calc(var(--envelope-width) / 2) solid transparent;
  border-right: calc(var(--envelope-width) / 2) solid transparent;
  z-index: 4;
  pointer-events: none;
  border-radius: 0 0 12px 12px;
}

/* Envelope Flap (Top Triangular Fold) */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: calc(var(--envelope-height) * 0.58) solid var(--envelope-flap-color);
  border-left: calc(var(--envelope-width) / 2) solid transparent;
  border-right: calc(var(--envelope-width) / 2) solid transparent;
  transform-origin: top center;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.3s;
  z-index: 5;
  filter: drop-shadow(0 3px 6px rgba(140, 120, 95, 0.15));
}

/* Luxury Gold Wax Seal */
.wax-seal {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F7E5A9 0%, #D4AF37 45%, #9A7629 100%);
  box-shadow: 0 4px 15px rgba(140, 120, 95, 0.3), 0 0 15px rgba(184, 144, 63, 0.25), inset 0 2px 3px rgba(255, 255, 255, 0.6);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.4s ease, opacity 0.5s ease;
  border: 1.5px solid #FFF3C4;
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.wax-seal-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.2px dashed rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-initials {
  font-family: var(--font-arabic-calligraphy);
  font-size: 1.1rem;
  font-weight: 700;
  color: #4A330B;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.wax-seal-ripple {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(184, 144, 63, 0.5);
  animation: rippleGlow 2.2s infinite ease-out;
  pointer-events: none;
}

@keyframes rippleGlow {
  0% { transform: scale(0.92); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* =========================================
   OPENED STATE ANIMATIONS
   ========================================= */
.envelope-box.is-opened {
  cursor: default;
}

.envelope-box.is-opened .wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
  pointer-events: none;
}

.envelope-box.is-opened .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.envelope-box.is-opened .letter-card {
  transform: translateY(-40px);
  z-index: 5;
  box-shadow: 0 8px 25px rgba(140, 120, 95, 0.2);
}

/* Action button under envelope */
.open-action-bar {
  margin-top: 25px;
  z-index: 20;
}

.btn-open-envelope {
  background: var(--gold-gradient);
  color: #FFFFFF;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-family: var(--font-arabic-ui);
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(184, 144, 63, 0.25);
  transition: var(--transition-smooth);
}

.btn-open-envelope:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(184, 144, 63, 0.35);
}

.scroll-down-indicator {
  position: absolute;
  bottom: 18px;
  color: var(--gold-deep);
  font-size: 1.25rem;
  opacity: 0.7;
  animation: bounceDown 1.8s infinite;
  text-decoration: none;
  padding: 10px;
}

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

/* ===================================================
   2. MAIN WEDDING DETAILS SECTION (MINIMALIST)
   =================================================== */
.wedding-details-section {
  position: relative;
  z-index: 10;
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 30px 0 50px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 144, 63, 0.3), transparent);
}

.divider-flower {
  color: var(--gold-primary);
  font-size: 1.15rem;
  letter-spacing: 4px;
}

/* Minimalist Glass Card Style */
.card-glass {
  background: var(--bg-card-glass);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 35px 25px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

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

/* Couple Hero */
.couple-hero {
  text-align: center;
  margin-bottom: 50px;
}

.welcome-tag {
  display: inline-block;
  color: var(--gold-deep);
  font-size: 1rem;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.main-wedding-title {
  font-family: var(--font-arabic-heading);
  font-size: 2.6rem;
  color: var(--gold-deep);
  margin-bottom: 25px;
}

.couple-names-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.person-box {
  background: #FFFFFF;
  border: 1px solid rgba(184, 144, 63, 0.25);
  padding: 22px 30px;
  border-radius: 16px;
  text-align: center;
  min-width: 250px;
  flex: 1;
  box-shadow: 0 4px 15px rgba(140, 120, 95, 0.06);
}

.role-badge {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--gold-deep);
  border-bottom: 1px solid rgba(184, 144, 63, 0.25);
  padding-bottom: 4px;
  margin-bottom: 8px;
  font-weight: 600;
}

.person-name {
  font-family: var(--font-arabic-calligraphy);
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.4;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.heart-symbol-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.heart-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-warm-ivory);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C2410C;
  font-size: 1.1rem;
  animation: heartPulse 1.8s infinite ease-in-out;
}

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

.heart-arabic {
  font-family: var(--font-arabic-heading);
  font-size: 1.3rem;
  color: var(--gold-deep);
}

.couple-quote {
  max-width: 650px;
  margin: 22px auto 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-family: var(--font-arabic-heading);
}

/* ===================================================
   COUNTDOWN TIMER (MINIMALIST)
   =================================================== */
.countdown-card-wrapper {
  margin-bottom: 45px;
}

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

.countdown-header i {
  font-size: 1.5rem;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

.countdown-header h3 {
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.countdown-target-date {
  color: var(--gold-deep);
  font-size: 0.95rem;
  margin-bottom: 22px;
  font-weight: 600;
}

.timer-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 25px;
}

.time-block {
  background: #FFFFFF;
  border: 1px solid rgba(184, 144, 63, 0.3);
  border-radius: 12px;
  min-width: 75px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(140, 120, 95, 0.05);
}

.time-number {
  display: block;
  font-family: var(--font-arabic-ui);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 6px;
}

.time-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.time-separator {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 18px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.countdown-footer-actions {
  display: flex;
  justify-content: center;
}

/* ===================================================
   DETAILS CARDS GRID (Date & Venue)
   =================================================== */
.details-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.detail-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-icon-bubble {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg-warm-ivory);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold-deep);
  margin-bottom: 16px;
}

.card-icon-bubble.emerald-accent {
  background: #FAF6ED;
  border-color: var(--gold-primary);
  color: var(--gold-deep);
}

.card-title {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.highlight-info {
  font-family: var(--font-arabic-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

.sub-info {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.hall-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-warm-ivory);
  border: 1px solid rgba(184, 144, 63, 0.4);
  color: var(--gold-deep);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-warm-ivory);
  border: 1px solid rgba(184, 144, 63, 0.4);
  color: var(--gold-deep);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.card-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: auto;
}

.venue-actions {
  margin-top: 15px;
  width: 100%;
}

/* Action Buttons (Refined Gold) */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-arabic-ui);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  width: 100%;
}

.btn-gold-solid {
  background: var(--gold-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(184, 144, 63, 0.25);
}

.btn-gold-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(184, 144, 63, 0.35);
}

.btn-calendar {
  background: #FFFFFF;
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-deep);
  width: auto;
  padding: 10px 24px;
}

.btn-calendar:hover {
  background: var(--gold-gradient);
  color: #FFFFFF;
  border-color: transparent;
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #1EB757;
  transform: translateY(-2px);
}

/* ===================================================
   MAP SECTION
   =================================================== */
.map-section {
  margin-bottom: 45px;
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.map-heading {
  font-size: 1.3rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-heading i {
  color: var(--gold-deep);
}

.map-subheading {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.btn-directions-quick {
  background: #FFFFFF;
  border: 1px solid var(--gold-primary);
  color: var(--gold-deep);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-directions-quick:hover {
  background: var(--gold-gradient);
  color: #FFFFFF;
}

/* ===================================================
   WEDDING TIMELINE
   =================================================== */
.timeline-section {
  margin-bottom: 50px;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 35px;
}

.section-title-wrapper .sub-title {
  color: var(--gold-deep);
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.section-heading {
  font-family: var(--font-arabic-heading);
  font-size: 2.2rem;
  color: var(--gold-deep);
}

.timeline-container {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
  padding-right: 30px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-primary) 0%, rgba(184, 144, 63, 0.2) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
}

.timeline-dot {
  position: absolute;
  top: 6px;
  right: -24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 0 8px rgba(184, 144, 63, 0.4);
}

.timeline-time {
  display: inline-block;
  background: var(--bg-warm-ivory);
  color: var(--gold-deep);
  border: 1px solid rgba(184, 144, 63, 0.3);
  padding: 3px 12px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-content {
  background: #FFFFFF;
  border: 1px solid rgba(184, 144, 63, 0.2);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(140, 120, 95, 0.05);
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  border-color: var(--gold-primary);
  transform: translateX(-4px);
}

.timeline-content h4 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===================================================
   RSVP SECTION
   =================================================== */
.rsvp-section {
  margin-bottom: 50px;
}

.rsvp-intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 6px auto 0;
}

.rsvp-form {
  margin-top: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 8px;
  font-weight: 600;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  right: 14px;
  color: var(--gold-deep);
  font-size: 1.05rem;
  pointer-events: none;
}

.input-with-icon input,
.input-with-icon select,
.input-with-icon textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(184, 144, 63, 0.3);
  color: var(--text-main);
  font-family: var(--font-arabic-ui);
  font-size: 0.95rem;
  padding: 12px 42px 12px 14px;
  border-radius: 10px;
  outline: none;
  transition: var(--transition-smooth);
}

.input-with-icon select option {
  background: #FFFFFF;
  color: var(--text-main);
}

.input-with-icon textarea {
  resize: vertical;
  min-height: 80px;
}

.input-with-icon input:focus,
.input-with-icon select:focus,
.input-with-icon textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(184, 144, 63, 0.25);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 10px;
}

/* ===================================================
   GUESTBOOK WISHES
   =================================================== */
.guestbook-section {
  margin-bottom: 50px;
}

.wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.wish-card {
  background: #FFFFFF;
  border: 1px solid rgba(184, 144, 63, 0.22);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(140, 120, 95, 0.05);
  position: relative;
  transition: var(--transition-smooth);
  animation: fadeIn 0.6s ease-out;
}

.wish-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 20px rgba(184, 144, 63, 0.12);
}

.wish-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wish-author {
  font-weight: 700;
  color: var(--gold-deep);
  font-size: 0.95rem;
}

.wish-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.wish-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================================================
   NOTES & FOOTER
   =================================================== */
.notes-section {
  margin-bottom: 40px;
}

.note-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.note-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  color: var(--gold-deep);
}

.note-body h4 {
  color: var(--gold-deep);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.note-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer (Minimal Off-White) */
.wedding-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(184, 144, 63, 0.2);
  background: var(--bg-warm-ivory);
  padding: 45px 20px 30px;
  text-align: center;
}

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

.footer-monogram {
  font-family: var(--font-arabic-monogram);
  font-size: 2.2rem;
  color: var(--gold-deep);
  margin-bottom: 4px;
}

.footer-names {
  font-family: var(--font-arabic-heading);
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.footer-date {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.footer-share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.btn-footer-share,
.btn-footer-copy {
  background: #FFFFFF;
  border: 1px solid rgba(184, 144, 63, 0.35);
  color: var(--gold-deep);
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--font-arabic-ui);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-footer-share:hover,
.btn-footer-copy:hover {
  background: var(--gold-gradient);
  color: #FFFFFF;
  border-color: transparent;
}

.footer-thanks {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(184, 144, 63, 0.15);
  padding-top: 20px;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #FFFFFF;
  border: 1.5px solid var(--gold-primary);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(140, 120, 95, 0.25);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   RESPONSIVE DESIGN (Mobile & Tablets)
   =================================================== */
@media (max-width: 600px) {
  :root {
    --envelope-width: 320px;
    --envelope-height: 220px;
  }

  .envelope-scene {
    margin: 80px auto 30px;
  }

  .envelope-scene.scene-opened {
    margin-top: 185px;
  }

  .hero-teaser-title {
    font-size: 2.1rem;
  }

  .person-name {
    font-size: 1.6rem;
  }

  .quran-verse {
    font-size: 0.96rem;
    line-height: 1.85;
  }

  .letter-names-row {
    font-size: 1.25rem;
    gap: 8px;
    flex-wrap: wrap;
  }

  .letter-card {
    padding: 14px 10px;
  }

  .letter-inner-border {
    padding: 12px 8px;
  }

  .envelope-box.is-opened .letter-card {
    transform: translateY(-210px) scale(1);
  }

  .time-block {
    min-width: 62px;
    padding: 10px 4px;
  }

  .time-number {
    font-size: 1.7rem;
  }

  .form-row-2,
  .form-buttons {
    grid-template-columns: 1fr;
  }

  .couple-names-display {
    flex-direction: column;
    gap: 15px;
  }

  .person-box {
    width: 100%;
  }

  .floating-controls {
    bottom: 15px;
    left: 15px;
  }
}
