/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --gold-dark: #a07c1c;
  --maroon: #5c0a0a;
  --burgundy: #7b1e2e;
  --navy: #1a1a3e;
  --navy-light: #2a2a5e;
  --cream: #fdf8f0;
  --white: #ffffff;
  --text-dark: #2c1810;
  --text-muted: #6b5c4f;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Garamond, serif;

  --section-padding: 5rem 1.5rem;
}

/* ===== REVEAL OVERLAY ===== */
body.no-scroll {
  overflow: hidden;
}

#reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, var(--navy) 0%, var(--maroon) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#reveal-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.5) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 1.5s ease, opacity 1.5s ease;
  pointer-events: none;
}

#reveal-overlay.glow::after {
  transform: scale(4);
  opacity: 1;
}

#reveal-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.reveal-bismillah {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1;
  animation: revealFadeInUp 0.8s ease-out both;
}

.reveal-names {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  animation: revealFadeInUp 0.8s ease-out 0.2s both;
}

.reveal-names span {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  margin: 0 0.3rem;
}

.reveal-logo,
.reveal-monogram {
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
  animation: revealFadeInUp 0.8s ease-out 0.1s both;
  filter: drop-shadow(0 0 15px rgba(201, 168, 76, 0.4));
}
}

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

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

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

body {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ===== SECTION SHARED ===== */
.section {
  padding: var(--section-padding);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

/* ===== ORNAMENTAL DIVIDER ===== */
.ornamental-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}

.divider-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

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

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--maroon) 100%);
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

/* Subtle pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(201, 168, 76, 0.05) 0%, transparent 45%);
  pointer-events: none;
}

.ornate-frame {
  border: 2px solid var(--gold);
  padding: 3rem 2.5rem;
  position: relative;
  max-width: 700px;
  width: 100%;
  animation: fadeInUp 1.2s ease-out;
}

/* Corner accents */
.ornate-frame::before,
.ornate-frame::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--gold-light);
  border-style: solid;
}

.ornate-frame::before {
  top: -4px;
  left: -4px;
  border-width: 3px 0 0 3px;
}

.ornate-frame::after {
  bottom: -4px;
  right: -4px;
  border-width: 0 3px 3px 0;
}

.hero-content {
  text-align: center;
  color: var(--cream);
}

.bismillah {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.couple-names {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.couple-names .amp {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  display: inline-block;
  margin: 0 0.3rem;
}

.hero .ornamental-divider .divider-line {
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.hero .ornamental-divider .divider-diamond {
  color: var(--gold-light);
}

.hero-logo-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}

.hero-logo-divider .divider-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.hero-monogram {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.monogram-ring {
  width: 100%;
  height: 100%;
  border: 4px solid var(--gold);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.3), inset 0 0 10px rgba(201, 168, 76, 0.1);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08) 0%, transparent 100%);
}

.monogram-i,
.monogram-m {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  position: absolute;
}

.monogram-i {
  top: 18px;
  left: 24px;
}

.monogram-m {
  bottom: 18px;
  right: 20px;
}

.monogram-heart {
  font-size: 1.6rem;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-date {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(253, 248, 240, 0.85);
  max-width: 480px;
  margin: 0 auto;
}

/* ===== COUPLE SECTION ===== */
.couple {
  background-color: var(--cream);
}

.couple-intro > p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.families {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.family-card {
  flex: 1 1 280px;
  max-width: 360px;
  background: var(--white);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  position: relative;
}

.family-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  border-radius: 2px;
}

.family-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.family-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 0.5rem;
}

.family-parents {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ===== EVENT DETAILS SECTION ===== */
.details {
  background: var(--white);
}

/* ===== RECEPTION SECTION ===== */
.reception {
  background: var(--cream);
}

.event-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.event-card {
  flex: 1 1 280px;
  max-width: 380px;
  padding: 2rem 1.5rem;
  background: var(--cream);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 4px;
}

.event-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cal-icon {
  display: inline-flex;
  flex-direction: column;
  width: 60px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  text-align: center;
  line-height: 1;
}

.cal-month {
  display: block;
  background: var(--maroon);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 0;
}

.cal-day {
  display: block;
  background: #fff;
  color: var(--maroon);
  font-size: 1.6rem;
  font-weight: 700;
  padding: 4px 0 6px;
}

.event-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--maroon);
  margin-bottom: 0.5rem;
}

.event-value {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.event-detail {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.map-container {
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.map-container iframe {
  display: block;
}

/* ===== COUNTDOWN SECTION ===== */
.countdown {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--cream);
}

.countdown .section-title {
  color: var(--gold-light);
}

.countdown .ornamental-divider .divider-line {
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.countdown .ornamental-divider .divider-diamond {
  color: var(--gold-light);
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.countdown-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  margin-top: 0.4rem;
}

.countdown-separator {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1.2rem;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--maroon);
  color: var(--cream);
  padding: 3.5rem 1.5rem;
}

.footer .ornamental-divider .divider-line {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer .ornamental-divider .divider-diamond {
  color: var(--gold);
}

.footer-message {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 1rem;
}

.footer-contact {
  font-size: 1rem;
  color: rgba(253, 248, 240, 0.7);
  margin-bottom: 1.5rem;
}

.footer-names {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 1.25rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .ornate-frame {
    padding: 2rem 1.5rem;
  }

  .couple-names {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .bismillah {
    font-size: 2.4rem;
  }

  .countdown-number {
    font-size: 2.5rem;
  }

  .countdown-separator {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .countdown-unit {
    min-width: 60px;
  }

  .footer-message {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .couple-names {
    font-size: 2rem;
  }

  .ornate-frame {
    padding: 1.5rem 1rem;
  }

  .hero-date {
    font-size: 1.1rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .family-card {
    padding: 1.5rem 1rem;
  }

  .countdown-timer {
    gap: 0.5rem;
  }

  .countdown-number {
    font-size: 2rem;
  }

  .countdown-separator {
    font-size: 1.4rem;
  }

  .reveal-bismillah {
    font-size: 2rem;
  }

  .reveal-names {
    font-size: 2rem;
  }
}
