/* ═══════════════════════════════════════════════════════
   DÜĞÜN DAVETİYESİ — STYLESHEET
   Light Cream + Deep Burgundy — Elegant Wedding Theme
   Mobile-first responsive design
   ═══════════════════════════════════════════════════════ */

/* ─── Google Fonts Import ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* ─── Custom Properties ──────────────────────────────── */
:root {
  /* Colors — Light Cream + Burgundy from invitation */
  --bg-primary: #FAF7F2;
  --bg-secondary: #F5EDE3;
  --bg-warm: #F0E8DC;
  --bg-burgundy: #6B1D3A;
  --bg-burgundy-deep: #4A1029;

  /* Text Colors */
  --text-primary: #3A0C22;
  --text-secondary: rgba(58, 12, 34, 0.65);
  --text-burgundy: #6B1D3A;
  --text-burgundy-light: #8B2252;
  --text-cream: #FAF7F2;

  /* Accent Colors */
  --accent-burgundy: #8B2252;
  --accent-rose: #A03060;
  --accent-burgundy-soft: rgba(107, 29, 58, 0.12);

  /* Border */
  --border-burgundy: #8B2252;
  --border-burgundy-light: rgba(107, 29, 58, 0.25);
  --border-burgundy-strong: rgba(107, 29, 58, 0.5);

  /* Fonts */
  --font-script: 'Great Vibes', cursive;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', 'Scheherazade New', serif;

  /* Spacing */
  --section-padding: clamp(3rem, 8vw, 6rem);
  --content-max-width: 900px;

  /* Transitions */
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-secondary);
  transition: background-color 0.4s ease;
}

section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  transition: background-color 0.4s ease;
  overflow-x: hidden;
}

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

a {
  color: var(--text-burgundy);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:hover {
  color: var(--accent-rose);
}

/* ─── Scroll Animations ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }


/* ═══════════════════════════════════════════════════════
   SECTION 1: HERO — Names, Families, Date
   ═══════════════════════════════════════════════════════ */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: clamp(2.5rem, 5vh, 4rem) 2rem calc(80px + env(safe-area-inset-bottom));
  background: var(--bg-secondary);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Thin burgundy border frame — matching invitation */
.hero-frame {
  position: absolute;
  inset: clamp(16px, 2.5vw, 32px);
  border: 1.5px solid var(--border-burgundy);
  pointer-events: none;
  z-index: 1;
}

/* Flower decoration — bottom left like invitation */
.hero-flower-left {
  position: absolute;
  bottom: -2%;
  left: -3%;
  width: clamp(180px, 30vw, 380px);
  opacity: 0.92;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.08));
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  margin: auto 0;
  padding-top: clamp(0.8rem, 2vh, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── Names ──────────────────────────────────────────── */
.hero-names {
  margin-bottom: clamp(1.2rem, 3vh, 2.2rem);
}

.hero-bride-name,
.hero-groom-name {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  font-weight: 400;
  color: var(--text-burgundy);
  line-height: 1.05;
  text-shadow: 0 2px 20px rgba(107, 29, 58, 0.08);
}

.hero-ampersand {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--accent-burgundy);
  line-height: 1;
  margin: 0.1em 0;
  padding-top: 0.3em;
}

/* ─── Families ───────────────────────────────────────── */
.hero-families {
  display: flex;
  justify-content: center;
  gap: clamp(2.5rem, 8vw, 6rem);
  margin-bottom: clamp(1rem, 2.5vh, 1.6rem);
  flex-wrap: wrap;
}

.hero-family {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.family-parents {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.family-surname {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-burgundy);
}

/* ─── Date Block ───────────────────────────────────────── */
.hero-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.hero-date-top-row {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}

.hero-date-big {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-burgundy);
}

.hero-date-year {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-burgundy);
}

.hero-date-day {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--text-secondary);
}

.hero-date-time {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--text-primary);
}

/* Scroll indicator */
.scroll-indicator {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  margin-top: clamp(0.2rem, 0.8vh, 0.5rem);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: opacity var(--transition-smooth);
}

.scroll-indicator:hover {
  opacity: 0.7;
}

.scroll-indicator-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: lowercase;
}

.scroll-indicator-line {
  width: 1px;
  height: clamp(20px, 3vh, 32px);
  background: linear-gradient(to bottom, var(--accent-burgundy), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}


/* ═══════════════════════════════════════════════════════
   SECTION 2: VERSE / AYAH
   ═══════════════════════════════════════════════════════ */

.verse-section {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(2rem, 5vh, 4rem) 2rem;
  background: var(--bg-primary);
  text-align: center;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Decorative circle */
.verse-section::before {
  content: '';
  position: absolute;
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  border-radius: 50%;
  border: 1px dashed var(--border-burgundy-light);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.verse-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.verse-bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-burgundy);
  margin-bottom: 0.8rem;
  line-height: 1.6;
  direction: rtl;
  letter-spacing: 0;
  text-shadow: 0 2px 15px rgba(107, 29, 58, 0.08);
}

.verse-ornament {
  font-size: 1.8rem;
  color: var(--accent-burgundy);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.verse-text {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.9;
  letter-spacing: 0.03em;
  border: none;
  padding: 0 1rem;
  margin: 0 0 1rem;
}

.verse-reference {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.15em;
  color: var(--accent-burgundy);
  margin-bottom: 2.5rem;
}

.verse-message {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1.6;
}



/* ═══════════════════════════════════════════════════════
   SECTION 4: DETAILS (Date, Time, Location)
   ═══════════════════════════════════════════════════════ */

.details-section {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vh, 3rem) 2rem calc(clamp(1.5rem, 3vh, 3rem) + 60px + env(safe-area-inset-bottom));
  background: var(--bg-secondary);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Flower decoration */
.details-flower {
  position: absolute;
  bottom: -2%;
  left: -3%;
  width: clamp(150px, 25vw, 320px);
  opacity: 0.85;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.08));
}

.details-content {
  position: relative;
  z-index: 3;
  max-width: var(--content-max-width);
  margin: 0 auto;
  text-align: center;
}

/* Date block */
.details-date-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.details-date-top-row {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}

.details-date-big {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-burgundy);
}

.details-year {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-burgundy);
}

.details-day-name {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.details-time {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--text-primary);
  margin-top: 0.1rem;
}


/* Venue */
.details-venue-name {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-burgundy);
  margin-bottom: 0.3rem;
}

.details-venue-hall {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.details-venue-district {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Note */
.details-note {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  font-weight: 500;
  color: var(--accent-burgundy);
  font-style: italic;
  margin-top: 1.2rem;
  letter-spacing: 0.05em;
}

.details-note-secondary {
  margin-top: 0.3rem;
}

/* Action buttons */
.details-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--border-burgundy-strong);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-burgundy);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--accent-burgundy-soft);
  color: var(--accent-burgundy);
  border-color: var(--accent-burgundy);
  transform: translateY(-2px);
}

.btn-outline svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}


/* ═══════════════════════════════════════════════════════
   FLOATING YOL TARİFİ BUTTON
   ═══════════════════════════════════════════════════════ */

.nav-dock {
  position: fixed;
  bottom: calc(clamp(16px, 3vw, 28px) + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  background: var(--bg-burgundy);
  color: var(--text-cream);
  border: 1px solid rgba(139, 34, 82, 0.8);
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(107, 29, 58, 0.25), 0 0 15px rgba(107, 29, 58, 0.1);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-dock.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dock:hover {
  background: var(--bg-burgundy-deep);
  border-color: var(--accent-rose);
  color: var(--text-cream);
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 12px 36px rgba(107, 29, 58, 0.4), 0 0 25px rgba(107, 29, 58, 0.15);
}

.nav-dock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-dock-icon svg {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  display: block;
}

.nav-dock-text {
  line-height: 1;
}


/* ═══════════════════════════════════════════════════════
   SIDE NAVIGATION INDICATORS
   ═══════════════════════════════════════════════════════ */

.side-nav {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.side-nav.visible {
  opacity: 1;
}

.side-nav-dot {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--border-burgundy-light);
  transform: rotate(45deg);
  cursor: pointer;
  transition: all var(--transition-smooth);
  background: transparent;
}

.side-nav-dot.active {
  background: var(--accent-burgundy);
  border-color: var(--accent-burgundy);
  box-shadow: 0 0 10px rgba(107, 29, 58, 0.3);
}

.side-nav-dot:hover {
  border-color: var(--accent-burgundy);
  transform: rotate(45deg) scale(1.2);
}

.side-nav-label {
  position: absolute;
  right: 24px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-burgundy);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-smooth);
  pointer-events: none;
}

.side-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.side-nav-item:hover .side-nav-label {
  opacity: 1;
  transform: translateX(0);
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════ */

/* ─── Small Mobile (< 480px) ──────────────────────────── */
@media (max-width: 480px) {
  .hero-flower-left {
    width: 150px;
    bottom: -2%;
    left: -8%;
    opacity: 0.75;
  }

  .details-flower {
    width: 120px;
    opacity: 0.65;
  }

  .countdown-sub-row {
    gap: 1.5rem;
  }

  .hero-families {
    gap: 2rem;
  }

  .side-nav {
    display: none;
  }

  .details-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ─── Tablet (481px – 768px) ──────────────────────────── */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-flower-left {
    width: 220px;
  }

  .side-nav {
    display: none;
  }
}

/* ─── Large Desktop (> 1200px) ───────────────────────── */
@media (min-width: 1200px) {
  .hero-flower-left {
    width: 380px;
  }

  .details-flower {
    width: 320px;
  }
}


/* ═══════════════════════════════════════════════════════
   LOADING STATE
   ═══════════════════════════════════════════════════════ */

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-text {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--accent-burgundy);
  animation: loaderFade 1.5s ease-in-out infinite;
}

@keyframes loaderFade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}


/* ═══════════════════════════════════════════════════════
   UTILITY & ANIMATIONS
   ═══════════════════════════════════════════════════════ */

.text-accent {
  color: var(--accent-burgundy);
}

.text-script {
  font-family: var(--font-script);
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}


/* ─── Print Styles ───────────────────────────────────── */
@media print {
  .nav-dock,
  .side-nav,
  .scroll-indicator,
  .page-loader {
    display: none !important;
  }

  body {
    background: white;
    color: #333;
  }

  .hero,
  .verse-section,
  .countdown-section,
  .details-section {
    background: white;
    color: #333;
  }
}
