/* ============================================================
   AMIRA & ZAIM WEDDING WEBSITE — STYLE SHEET
   Design: Traditional Malay Wedding | Maroon & Gold Theme
   ============================================================ */

/* ── CSS CUSTOM PROPERTIES (Design Tokens) ── */
:root {
  /* Color Palette — inspired by the wedding card */
  --maroon-deep:    #3A0010;
  --maroon:         #5C001A;
  --maroon-mid:     #7A0020;
  --maroon-light:   #9B1A35;

  --gold:           #C9A84C;
  --gold-light:     #E2C97E;
  --gold-pale:      #F0DFA0;
  --gold-dim:       #8A6E2F;

  --cream:          #FDF6E3;
  --cream-dark:     #EDD8A0;
  --cream-mid:      #F5E8C0;

  --text-light:     #FDF6E3;
  --text-gold:      #E2C97E;
  --text-muted:     #C4A97D;

  --card-bg:        rgba(90, 0, 26, 0.6);
  --card-border:    rgba(201, 168, 76, 0.4);

  /* Typography */
  --font-script:   'Great Vibes', cursive;
  --font-display:  'Pinyon Script', cursive;
  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-body:     'Lato', 'Segoe UI', sans-serif;
  --font-arabic:   'Noto Nastaliq Urdu', serif;

  /* Spacing */
  --section-pad:   5rem 1.5rem;
  --container-max: 700px;

  /* Transitions */
  --transition:    0.35s ease;
}

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

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

body {
  background: var(--maroon-deep);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.hidden { display: none !important; }
.text-center { text-align: center; }

/* ── CONTAINER ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--maroon-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ============================================================
   GATE / SPLASH SCREEN
   ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--maroon-deep);
  overflow: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.gate.closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(201,168,76,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(201,168,76,0.10) 0%, transparent 60%),
    url('images/hero_bg.png') center/cover no-repeat;
  opacity: 0.35;
}

.gate-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2.5rem 2rem;
  width: min(440px, 90vw);
  animation: fadeInUp 1.2s ease forwards;
}

.gate-ornament {
  width: 100%;
  height: 6px;
  margin: 1rem 0;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  position: relative;
}

.gate-ornament::before {
  content: '❋';
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  color: var(--gold);
  background: var(--maroon-deep);
  padding: 0 0.5rem;
  font-size: 1rem;
}

.gate-bismillah {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.gate-monogram {
  width: 130px;
  height: 130px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 0 30px rgba(201,168,76,0.3), 0 0 60px rgba(201,168,76,0.1);
  animation: glowPulse 3s ease-in-out infinite;
}

.gate-monogram img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.3); }
  50% { box-shadow: 0 0 40px rgba(201,168,76,0.6), 0 0 80px rgba(201,168,76,0.2); }
}

.gate-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gold-pale);
  line-height: 1;
  text-shadow: 0 2px 20px rgba(201,168,76,0.5);
  margin-bottom: 0.25rem;
}

.gate-ampersand {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 0.7em;
  font-style: normal;
  vertical-align: middle;
  display: inline-block;
  margin: 0 0.1em;
  text-shadow: 0 2px 15px rgba(201,168,76,0.5);
}

.gate-subtitle {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.gate-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim));
}

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

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

.gate-date {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.gate-date-hijri {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.btn-open {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold), var(--gold-dim));
  background-size: 200% auto;
  color: var(--maroon-deep);
  border: none;
  padding: 0.85rem 2.5rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
  animation: shimmer 3s linear infinite;
}

.btn-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.6);
}

.btn-icon {
  font-size: 0.8em;
  opacity: 0.8;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  background: var(--maroon-deep);
  position: relative;
}

.main-content.visible {
  display: block;
  animation: fadeIn 0.8s ease;
}

/* ── MUSIC BUTTON ── */
.music-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 500;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  border: none;
  color: var(--maroon-deep);
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(201,168,76,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(201,168,76,0.6);
}

/* ── SECTION BORDERS ── */
.section-border-top,
.section-border-bottom,
.footer-border {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.section-border-top img,
.section-border-bottom img,
.footer-border img {
  width: 100%;
  height: 60px;
  object-fit: cover;
}

.section-border-bottom img {
  transform: scaleY(-1);
}

/* ── COMMON SECTION STYLES ── */
.section {
  padding: var(--section-pad);
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--gold-pale);
  text-shadow: 0 2px 10px rgba(201,168,76,0.3);
  white-space: nowrap;
}

.section-ornament {
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0.7;
}

/* ── GOLD DIVIDER ── */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.gold-divider .divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim));
}

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

.divider-ornament {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.3rem;
  white-space: nowrap;
}

/* ── ORNAMENT DIVIDER ── */
.ornament-divider {
  text-align: center;
  margin: 1.5rem 0;
}

.ornament-divider span {
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.7;
}

/* ── BUTTONS ── */
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold), var(--gold-dim));
  background-size: 200% auto;
  color: var(--maroon-deep);
  padding: 0.75rem 2.25rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  animation: shimmer 3s linear infinite;
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201,168,76,0.5);
}

/* ============================================================
   SECTION 1: HERO
   ============================================================ */
.hero-section {
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.15) 0%, transparent 70%),
    radial-gradient(ellipse at 0% 100%, rgba(201,168,76,0.08) 0%, transparent 60%),
    url('images/hero_bg.png') center/cover no-repeat;
  opacity: 0.25;
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
  z-index: 1;
}

.arabic-text {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.section-eyebrow {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Couple Names */
.couple-names {
  margin: 1rem 0;
}

.bride-name,
.groom-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.name-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7.5vw, 3.4rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--gold-pale);
  line-height: 1.2;
  text-shadow: 0 2px 15px rgba(201,168,76,0.4);
}

.name-suffix {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ampersand-wrap {
  margin: 0.75rem 0;
}

.big-ampersand {
  font-family: var(--font-script);
  font-size: clamp(2rem, 7vw, 3rem);
  color: var(--gold);
  text-shadow: 0 2px 15px rgba(201,168,76,0.5);
}

.hero-date {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem;
}

.hero-date-hijri {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ============================================================
   SECTION 2: INVITATION
   ============================================================ */
.invite-section {
  background: linear-gradient(180deg, var(--maroon-deep) 0%, rgba(90,0,26,0.5) 50%, var(--maroon-deep) 100%);
  position: relative;
}

.invite-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/hero_bg.png') center/cover;
  opacity: 0.05;
}

.invite-section > * { position: relative; z-index: 1; }

.invite-salam {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-light);
  font-style: italic;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.invite-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 2rem;
}

.parents-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  margin: 1.5rem 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.parents-card::before {
  content: '❋';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  background: var(--maroon-deep);
  padding: 0 0.75rem;
  font-size: 1rem;
}

.parents-names {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--cream-dark);
  line-height: 1.9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.parents-bersama {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.invite-present {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.invite-couple {
  margin: 1rem 0 2rem;
}

.invite-bride,
.invite-groom {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  color: var(--gold-pale);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.invite-amp {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--gold);
  margin: 0.25rem 0;
  text-shadow: 0 2px 10px rgba(201,168,76,0.4);
}

/* ============================================================
   SECTION 3: WEDDING DETAILS
   ============================================================ */
.details-section {
  background: linear-gradient(135deg, rgba(58,0,16,0.9), rgba(90,0,26,0.7));
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.detail-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.detail-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.detail-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.9rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 50%;
  padding: 12px;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.25));
}

.detail-label {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.detail-value {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--cream);
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.detail-sub {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Map Buttons */
.map-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid;
  min-width: 150px;
  justify-content: center;
}

.btn-map.google {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-map.google:hover {
  background: var(--gold);
  color: var(--maroon-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

.btn-map.waze {
  background: rgba(255,183,77,0.1);
  border-color: #FFB74D;
  color: #FFB74D;
}

.btn-map.waze:hover {
  background: #FFB74D;
  color: var(--maroon-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,183,77,0.4);
}

/* Map Embed */
.map-embed {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  margin-top: 1rem;
}

/* ============================================================
   SECTION 4: COUNTDOWN
   ============================================================ */
.countdown-section {
  background: var(--maroon-deep);
  position: relative;
  overflow: hidden;
}

.countdown-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.12) 0%, transparent 70%);
}

.countdown-sub {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.count-box {
  background: var(--card-bg);
  border: 1px solid var(--gold-dim);
  border-radius: 12px;
  width: clamp(64px, 18vw, 90px);
  height: clamp(64px, 18vw, 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 700;
  color: var(--gold-pale);
  text-shadow: 0 2px 10px rgba(201,168,76,0.5);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(201,168,76,0.2);
  transition: all 0.5s ease;
}

.count-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.countdown-colon {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  color: var(--gold);
  margin-bottom: 1.5rem;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0.3; }
}

.countdown-event {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ============================================================
   SECTION 5: ATURCARA MAJLIS (PROGRAM TIMELINE)
   ============================================================ */
.program-section {
  background: linear-gradient(180deg, var(--maroon-deep), rgba(90,0,26,0.6), var(--maroon-deep));
}

.timeline {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item.last { margin-bottom: 0; }

.timeline-time {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-align: right;
  padding-top: 0.3rem;
  white-space: nowrap;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--maroon-deep);
  box-shadow: 0 0 0 1px var(--gold-dim), 0 0 10px rgba(201,168,76,0.4);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-top: 0.3rem;
}

.timeline-content {
  text-align: left;
}

.timeline-content h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold-pale);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.timeline-content p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   SECTION 6: DRESS CODE
   ============================================================ */
.dresscode-section {
  background: var(--maroon-deep);
}

.dresscode-theme {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--gold-pale);
  text-align: center;
  margin-bottom: 2rem;
}

.dresscode-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: start;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.dresscode-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.dresscode-illustration {
  margin-bottom: 1rem;
}

.dc-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 1px solid rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.06);
  color: var(--gold);
  padding: 14px;
}

.dc-icon svg { width: 100%; height: 100%; }

.dc-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-pale);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.dc-list li {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.dc-list li:last-child { border-bottom: none; }

.dresscode-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 2rem;
}

.dc-div-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, transparent, var(--gold-dim), transparent);
  min-height: 30px;
}

.dc-div-ornament {
  color: var(--gold);
  font-size: 1.1rem;
}

.dresscode-img-wrap {
  max-width: 400px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.dresscode-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ============================================================
   SECTION 7: GALLERY
   ============================================================ */
.gallery-section {
  background: linear-gradient(135deg, rgba(58,0,16,0.95), rgba(90,0,26,0.7));
}

.gallery-note {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  border: 1px solid var(--card-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(58,0,16,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-overlay span {
  color: var(--gold);
  font-size: 2rem;
  transform: scale(0.5);
  transition: transform var(--transition);
}

.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay span { transform: scale(1); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 8px;
  border: 1px solid var(--gold-dim);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(201,168,76,0.2);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ============================================================
   SECTION 8: RSVP
   ============================================================ */
.rsvp-section {
  background: var(--maroon-deep);
  position: relative;
  overflow: hidden;
}

.rsvp-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.07) 0%, transparent 70%);
}

.rsvp-sub {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.rsvp-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  position: relative;
}

.rsvp-card::before {
  content: '❋';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  background: var(--maroon-deep);
  padding: 0 1rem;
  font-size: 1.2rem;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  font-weight: 400;
}

.optional {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.form-input {
  background: rgba(58,0,16,0.6);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--cream);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder { color: var(--text-muted); opacity: 0.7; }

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Radio Group */
.radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  flex: 1;
  min-width: 130px;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold-dim);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition);
}

.radio-option input[type="radio"]:checked + .radio-custom {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201,168,76,0.4);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--maroon-deep);
  border-radius: 50%;
}

.radio-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--cream);
  background: rgba(58,0,16,0.5);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  flex: 1;
  transition: all var(--transition);
}

.radio-option input[type="radio"]:checked ~ .radio-label {
  border-color: var(--gold);
  color: var(--gold-pale);
  background: rgba(201,168,76,0.1);
}

/* Pax Control */
.pax-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 10px;
  overflow: hidden;
}

.pax-btn {
  width: 44px;
  height: 44px;
  background: rgba(201,168,76,0.15);
  border: none;
  color: var(--gold-light);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}

.pax-btn:hover { background: rgba(201,168,76,0.3); }

.pax-input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  text-align: center;
  font-size: 1.1rem !important;
  font-weight: 600;
  background: rgba(58,0,16,0.6) !important;
  box-shadow: none !important;
}

.pax-input:focus { box-shadow: none !important; }

/* Submit Button */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold), var(--gold-dim));
  background-size: 200% auto;
  color: var(--maroon-deep);
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition);
  animation: shimmer 3s linear infinite;
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
  margin-top: 0.5rem;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.5);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  animation: none;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(58,0,16,0.3);
  border-top-color: var(--maroon-deep);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Success / Error Messages */
.rsvp-success,
.rsvp-error {
  text-align: center;
  padding: 2rem 1rem;
}

.success-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1rem;
  animation: bounceIn 0.6s ease;
}

.rsvp-success h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: normal;
  font-weight: 400;
  color: var(--gold-pale);
  margin-bottom: 0.75rem;
}

.rsvp-success p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.success-dua {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-light) !important;
  font-size: 1rem !important;
  margin: 1.5rem 0 !important;
  line-height: 2 !important;
}

.rsvp-error {
  background: rgba(200,50,50,0.1);
  border: 1px solid rgba(200,50,50,0.3);
  border-radius: 12px;
}

.rsvp-error p {
  color: #F4A5A5;
  margin-bottom: 1rem;
}

/* Wishes Wall */
.wishes-section {
  margin-top: 3rem;
  position: relative;
}

.wishes-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-style: normal;
  font-weight: 400;
  color: var(--gold-pale);
  text-align: center;
  margin-bottom: 1.5rem;
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 0.25rem;
}

.wish-card {
  background: var(--card-bg);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 12px;
  padding: 1.25rem;
  animation: slideIn 0.4s ease;
}

.wish-text {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--cream-mid);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.wish-name {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* ============================================================
   SECTION 9: GIFT
   ============================================================ */
.gift-section {
  background: linear-gradient(135deg, rgba(58,0,16,0.95), rgba(90,0,26,0.7));
}

.gift-note {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.gift-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 420px;
  margin: 0 auto;
}

@media (min-width: 500px) {
  .gift-cards { grid-template-columns: repeat(2, 1fr); }
}

.gift-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.gift-bank-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 50%;
  padding: 12px;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.2));
}

.gift-bank-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-pale);
  margin-bottom: 1rem;
}

.gift-bank-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.gift-account-name {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--cream-mid);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.gift-account-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.gift-account-number {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  color: var(--gold-pale);
  letter-spacing: 0.1em;
}

.btn-copy {
  background: rgba(201,168,76,0.2);
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.btn-copy:hover {
  background: var(--gold);
  color: var(--maroon-deep);
}

.btn-copy.copied {
  background: #2ecc71;
  border-color: #2ecc71;
  color: white;
}

.gift-qr-placeholder {
  background: rgba(201,168,76,0.05);
  border: 2px dashed rgba(201,168,76,0.3);
  border-radius: 12px;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ============================================================
   SECTION 10: CONTACT
   ============================================================ */
.contact-section {
  background: var(--maroon-deep);
}

.contact-note {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 480px;
  margin: 0 auto;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.contact-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--maroon-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}

.contact-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-pale);
  margin-bottom: 1.25rem;
}

.contact-role {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--maroon-deep);
  padding: 4rem 1.5rem 3rem;
  position: relative;
  border-top: 1px solid rgba(201,168,76,0.15);
}

.footer-bismillah {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.footer-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 4rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--gold-pale);
  text-shadow: 0 2px 15px rgba(201,168,76,0.4);
  margin-bottom: 0.5rem;
}

.footer-subtitle {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-date {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-gold);
  margin-bottom: 1rem;
}

.footer-thankyou {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.footer-dua {
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 2rem;
  line-height: 2;
}

.footer-hashtag {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(201,168,76,0.3);
  letter-spacing: 0.05em;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Scroll-triggered animation */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --section-pad: 3.5rem 1rem;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before { left: 20px; transform: none; }

  .timeline-item {
    grid-template-columns: auto auto 1fr;
    gap: 0.75rem;
  }

  .timeline-time {
    font-size: 0.75rem;
    min-width: 65px;
  }

  .dresscode-grid {
    grid-template-columns: 1fr;
  }

  .dresscode-divider {
    flex-direction: row;
    padding-top: 0;
    padding: 0 1rem;
  }

  .dc-div-line {
    flex-direction: row;
    width: auto;
    height: 1px;
    flex: 1;
    min-height: auto;
    background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
  }

  .rsvp-card {
    padding: 1.75rem 1.25rem;
  }

  .radio-group {
    flex-direction: column;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    gap: 0.25rem;
  }

  .countdown-colon {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 700px) {
  :root {
    --container-max: 680px;
  }
}
