/* ==========================================================================
   BUKET - ÖZEL DOĞUM GÜNÜ HEDİYESİ
   Zarif, Duygusal ve Romantik Pastel Tema Stilleri
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS DEĞİŞKENLERİ & PASTEL RENK PALETİ
   -------------------------------------------------------------------------- */
:root {
  --bg: #faf6f0;               /* Sıcak krem / porselen fildişi zemin */
  --bg-soft: #f4ece3;          /* Yumuşak pastel keten zemin */
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(255, 255, 255, 0.96);
  --bg-parchment: #fffdfa;     /* Mektup kâğıdı */
  
  --text: #3a2e30;             /* Derin sıcak espresso gül tonu (okunabilir ve asil) */
  --text-muted: #736163;       /* Yumuşak pastel gül kurusu gri */
  --text-dim: #998587;         /* İnce detay metinleri */
  
  --accent: #c27d88;           /* Sıcak pastel pudra gülü / rose gold */
  --accent-light: #faeef0;
  --accent-soft: rgba(194, 125, 136, 0.14);
  --accent-glow: rgba(194, 125, 136, 0.28);
  
  --border-subtle: rgba(194, 125, 136, 0.22);
  --border-hover: rgba(194, 125, 136, 0.52);
  
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* --------------------------------------------------------------------------
   2. TEMEL SIFIRLAMA & GENEL AYARLAR
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body.is-intro-active {
  overflow: hidden;
  height: 100vh;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

/* Fotoğraf yüklenemezse veya yoksa zarif pastel degrade rezerv alanı */
.img-fallback {
  background: linear-gradient(135deg, #fcedea 0%, #f4e2d8 50%, #f7eaeb 100%);
  position: relative;
  min-height: 240px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.img-fallback::after {
  content: '✦ Buket & Enes ✦';
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  opacity: 0.9;
  position: absolute;
}

/* --------------------------------------------------------------------------
   3. ARKA PLAN TUVALİ (UÇUŞAN KELEBEKLER) & ÖZEL İMLEÇ
   -------------------------------------------------------------------------- */
/* Arka Plan Sabit Sakura Ağacı */
.sakura-bg-fixed {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image: url('assets/sakura-tree.jpg');
  background-repeat: no-repeat;
  background-position: right -40px bottom -20px;
  background-size: min(1100px, 85vw) auto;
  opacity: 0.3;
  mix-blend-mode: multiply;
  filter: contrast(1.06) saturate(1.15);
  transition: opacity 0.8s ease;
}

@media (max-width: 768px) {
  .sakura-bg-fixed {
    background-size: 140vw auto;
    background-position: center bottom -10px;
    opacity: 0.22;
  }
}

/* İntro Ekranı Üst Sakura Dalı (Canopy) */
.intro-sakura-canopy {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 360px;
  background-image: url('assets/sakura-branch.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  opacity: 0.42;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* Custom Cursor (Sadece farenin kullanıldığı masaüstü ekranlarda aktif) */
.custom-cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: default;
  }
  
  .custom-cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
  }

  .cursor-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, opacity 0.2s ease;
  }

  .cursor-ring {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.55;
    transition: width 0.3s var(--ease-cinematic), 
                height 0.3s var(--ease-cinematic), 
                border-color 0.3s ease, 
                background-color 0.3s ease, 
                opacity 0.3s ease;
  }

  body.cursor-hover .cursor-ring {
    width: 52px;
    height: 52px;
    border-color: var(--accent);
    background-color: rgba(194, 125, 136, 0.1);
    opacity: 0.85;
  }

  body.cursor-hover .cursor-dot {
    transform: translate(-50%, -50%) scale(1.4);
  }
}

/* --------------------------------------------------------------------------
   4. MÜZİK KONTROLÜ WIDGET (Sağ Alt Köşe)
   -------------------------------------------------------------------------- */
.music-widget {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom) + 16px);
  right: max(24px, env(safe-area-inset-right) + 16px);
  z-index: 900;
}

.music-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-cinematic);
  box-shadow: 0 8px 24px rgba(180, 135, 140, 0.16);
}

.music-toggle:hover {
  border-color: var(--accent);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(194, 125, 136, 0.25);
}

/* Equalizer Barları */
.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  width: 14px;
}

.music-bars .bar {
  width: 2.5px;
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.3s ease;
}

.music-bars .bar-1 { height: 4px; }
.music-bars .bar-2 { height: 10px; }
.music-bars .bar-3 { height: 6px; }

/* Müzik Çalarken Barlar Dalgalanır */
.music-toggle.is-playing .bar-1 {
  animation: barBounce 0.9s ease-in-out infinite alternate;
}
.music-toggle.is-playing .bar-2 {
  animation: barBounce 0.7s ease-in-out infinite alternate 0.2s;
}
.music-toggle.is-playing .bar-3 {
  animation: barBounce 0.8s ease-in-out infinite alternate 0.4s;
}

@keyframes barBounce {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* --------------------------------------------------------------------------
   5. BÖLÜM 1: INTRO / AÇILIŞ SİNEMATİK EKRANI
   -------------------------------------------------------------------------- */
.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  background: radial-gradient(ellipse at 50% 35%, #fff8f5 0%, #faedf2 55%, #f4e8df 100%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  transition: opacity 1.2s var(--ease-cinematic), 
              transform 1.4s var(--ease-cinematic), 
              visibility 1.2s ease;
}

.intro-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.intro-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-monogram {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 20px;
  text-transform: uppercase;
  animation: fadeInDown 1.2s var(--ease-cinematic) forwards;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 5.8rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #443034 0%, #8c545e 55%, #c27d88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1.4s var(--ease-cinematic) 0.2s forwards;
  opacity: 0;
}

.intro-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3.5vw, 1.6rem);
  font-style: italic;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  animation: fadeInUp 1.4s var(--ease-cinematic) 0.5s forwards;
  opacity: 0;
}

/* Şifreli Giriş Ekranı (Lock Screen Gateway) */
.lock-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(254, 238, 242, 0.9));
  border: 1.5px solid rgba(212, 160, 90, 0.5);
  box-shadow: 0 10px 26px rgba(196, 87, 104, 0.18), 0 0 22px rgba(255, 225, 230, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  animation: fadeInDown 1.2s var(--ease-cinematic) forwards;
}

.lock-emoji {
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 2px 4px rgba(180, 100, 120, 0.25));
}

.lock-icon-wrap.is-unlocked {
  background: linear-gradient(135deg, #fff8ee, #ffe8d4);
  border-color: #d4a05a;
  box-shadow: 0 12px 35px rgba(212, 160, 90, 0.45), 0 0 35px rgba(255, 215, 140, 0.6);
  transform: scale(1.15) rotate(-6deg);
}

.lock-card {
  position: relative;
  max-width: 440px;
  width: 100%;
  padding: 26px 28px 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(224, 164, 177, 0.45);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(180, 100, 120, 0.16), 0 0 40px rgba(255, 235, 240, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeInUp 1.4s var(--ease-cinematic) 0.6s forwards;
  opacity: 0;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.lock-card.shake {
  animation: lockShake 0.48s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  border-color: rgba(220, 75, 95, 0.65);
  box-shadow: 0 16px 45px rgba(220, 75, 95, 0.25);
}

@keyframes lockShake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.lock-card.unlocked-success {
  border-color: rgba(212, 160, 90, 0.85);
  box-shadow: 0 20px 60px rgba(212, 160, 90, 0.35), 0 0 40px rgba(247, 211, 153, 0.5);
}

.lock-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(196, 87, 104, 0.09);
  border: 1px solid rgba(196, 87, 104, 0.22);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.lock-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: lockPulseDot 2s ease-in-out infinite;
}

@keyframes lockPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.lock-hint {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.06rem;
  color: #5c474b;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.lock-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lock-input-group {
  width: 100%;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(212, 160, 90, 0.48);
  border-radius: var(--radius-pill);
  padding: 5px 6px 5px 16px;
  box-shadow: 0 4px 18px rgba(180, 100, 120, 0.1);
  transition: all 0.35s ease;
}

.lock-input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(196, 87, 104, 0.24), 0 0 16px rgba(247, 211, 153, 0.35);
  transform: translateY(-1px);
}

.lock-input-icon {
  font-size: 1.15rem;
  opacity: 0.75;
  margin-right: 8px;
  user-select: none;
}

.lock-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 500;
  color: #3e2d30;
  letter-spacing: 0.08em;
  min-width: 0;
}

.lock-input::placeholder {
  color: #a89498;
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.btn-unlock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #c45768 0%, #d48b70 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.35s var(--ease-cinematic);
  box-shadow: 0 4px 14px rgba(196, 87, 104, 0.32);
  white-space: nowrap;
}

.btn-unlock:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(196, 87, 104, 0.45);
  background: linear-gradient(135deg, #b84b5c 0%, #ca7b5e 100%);
}

.btn-unlock:active {
  transform: translateY(1px) scale(0.98);
}

.unlock-arrow {
  transition: transform 0.3s ease;
}

.btn-unlock:hover .unlock-arrow {
  transform: translateX(3px);
}

.lock-feedback {
  min-height: 22px;
  margin-top: 10px;
  font-size: 0.84rem;
  font-style: italic;
  opacity: 0;
  transition: opacity 0.3s ease;
  line-height: 1.4;
}

.lock-feedback.is-error {
  opacity: 1;
  color: #c44055;
}

.lock-feedback.is-success {
  opacity: 1;
  color: #2e7d32;
  font-weight: 500;
}

@media (max-width: 480px) {
  .lock-card {
    padding: 22px 18px 18px;
  }
  .lock-input {
    font-size: 0.9rem;
  }
  .btn-unlock {
    padding: 9px 16px;
    font-size: 0.82rem;
  }
  .lock-hint {
    font-size: 0.96rem;
  }
}

.intro-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1px solid rgba(194, 125, 136, 0.35);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.75;
}

.intro-scroll-hint .hint-dot {
  width: 3px;
  height: 7px;
  background-color: var(--accent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes btnGlowPulse {
  0%, 100% { border-color: rgba(194, 125, 136, 0.3); box-shadow: 0 6px 20px rgba(194, 125, 136, 0.15); }
  50% { border-color: rgba(194, 125, 136, 0.6); box-shadow: 0 10px 30px rgba(194, 125, 136, 0.28); }
}

@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 0; }
  40% { opacity: 1; }
  80% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   6. BÖLÜM 2: HERO SECTION (SİNEMATİK DEV BÖLÜM)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  overflow: hidden;
  z-index: 2;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* Yavaş ve büyüleyici Ken Burns efekti */
.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-focus, center 20%);
  animation: kenBurns 26s ease-in-out infinite alternate;
  transform-origin: var(--hero-focus, center 20%);
  filter: brightness(0.92) contrast(1.02);
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}

/* Sinematik pastel vinyet ve degrade */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(250, 246, 240, 0.25) 0%, rgba(250, 246, 240, 0.65) 65%, var(--bg) 100%),
              linear-gradient(to bottom, rgba(58, 46, 48, 0.15) 0%, transparent 40%, rgba(250, 246, 240, 0.85) 85%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  color: var(--text);
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.8);
}

.hero-name {
  font-weight: 400;
  font-style: italic;
  background: linear-gradient(135deg, #3a2e30 20%, #8c545e 60%, #c27d88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 16px 0 24px;
}

.hero-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3.2vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.hero-scroll-indicator {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.scroll-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   7. ORTAK BÖLÜM STİLLERİ
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 120px 24px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 80px 20px;
  }
}

.section-container {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  padding: 0 14px;
  font-weight: 500;
}

.section-badge::before,
.section-badge::after {
  content: '·';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.2rem;
}
.section-badge::before { left: 0; }
.section-badge::after { right: 0; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. BÖLÜM 3: BİZİM HİKÂYEMİZ (TIMELINE)
   -------------------------------------------------------------------------- */
.timeline-wrapper {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0;
}

/* İlerleyen Pastel Gül Çizgisi */
.timeline-track {
  position: absolute;
  top: 0;
  left: 20px;
  width: 2px;
  height: 100%;
  background: rgba(194, 125, 136, 0.2);
  transform: translateX(-50%);
}

.timeline-progress {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, #d99ca5, #fae2e5, #c27d88);
  box-shadow: 0 0 12px rgba(194, 125, 136, 0.5);
  transition: height 0.25s linear;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.timeline-card {
  position: relative;
  padding-left: 54px;
}

.timeline-marker {
  position: absolute;
  top: 26px;
  left: 20px;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.marker-dot {
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(194, 125, 136, 0.35);
  transition: all 0.4s var(--ease-cinematic);
}

.timeline-card.is-revealed .marker-dot {
  background-color: var(--accent);
  box-shadow: 0 0 16px rgba(194, 125, 136, 0.7);
  transform: scale(1.2);
}

.timeline-body {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 35px rgba(180, 135, 140, 0.12);
  transition: all 0.5s var(--ease-cinematic);
}

.timeline-body:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(180, 135, 140, 0.18), 0 0 25px rgba(194, 125, 136, 0.1);
}

.timeline-image-wrap {
  width: 100%;
  height: var(--timeline-img-height, 350px);
  overflow: hidden;
  position: relative;
  background-color: #f5ebe6;
}

@media (max-width: 600px) {
  .timeline-image-wrap {
    height: var(--timeline-img-height-mobile, 260px);
  }
}

.timeline-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-focus, center 20%);
  transform: scale(0.96);
  transition: transform 1.2s var(--ease-cinematic);
}

.timeline-card.is-revealed .timeline-image-wrap img {
  transform: scale(1);
}

.timeline-body:hover .timeline-image-wrap img {
  transform: scale(1.04);
}

.photo-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.45) 0%, transparent 40%);
  pointer-events: none;
}

.timeline-details {
  padding: 30px;
}

@media (max-width: 600px) {
  .timeline-details {
    padding: 22px;
  }
}

.timeline-date {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}

.timeline-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}

.timeline-text {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   9. BÖLÜM 4: SENDE SEVDİĞİM ŞEYLER (3D FLIP CARDS)
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.flip-card-wrapper {
  perspective: 1200px;
  min-height: 320px;
}

.flip-card {
  width: 100%;
  height: 100%;
  min-height: 320px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-cinematic);
  cursor: pointer;
  border-radius: var(--radius-md);
  outline: none;
}

.flip-card:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}

.flip-card.is-flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(180, 135, 140, 0.1);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.flip-card:hover .card-face {
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px rgba(180, 135, 140, 0.16);
}

/* Ön Yüz */
.card-front {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.card-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.card-front-icon {
  font-size: 2rem;
  opacity: 0.85;
  filter: drop-shadow(0 0 8px rgba(194, 125, 136, 0.25));
}

.card-touch-label {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(194, 125, 136, 0.3);
  padding: 6px 18px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.flip-card:hover .card-touch-label {
  border-color: var(--accent);
  color: #3a2e30;
  background: rgba(194, 125, 136, 0.12);
}

.card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.7;
}

/* Arka Yüz */
.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #ffffff 0%, #fff2f4 100%);
  border-color: var(--border-hover);
  text-align: left;
}

.card-back-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 500;
}

.card-back-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 12px;
}

.card-back-text {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

.card-flip-back-hint {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  opacity: 0.85;
  margin-top: 14px;
  display: block;
}

/* --------------------------------------------------------------------------
   10. BÖLÜM 5: FOTOĞRAF GALERİSİ (FULL-WIDTH HASIR İP & AHŞAP MANDALLAR)
   -------------------------------------------------------------------------- */
.gallery-section {
  position: relative;
  overflow-x: clip;
  overflow: clip;
}

@supports not (overflow: clip) {
  .gallery-section {
    overflow-x: hidden;
    overflow: hidden;
  }
}

.clothesline-container {
  display: flex;
  flex-direction: column;
  gap: 75px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.clothesline-row {
  position: relative;
  width: 100%;
  padding-top: 6px;
}

/* Full-Width Hasır İp Sarmalayıcı (Ekranı baştan başa kaplayan katener sarkma) */
.twine-rope-wrapper {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  height: 100px;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.twine-rope-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Masaüstü Düzeni (> 850px): 4 Kart Tek Hasır İpte Eğimli Sarkma Eğrisi ile Yan Yana */
@media (min-width: 851px) {
  .rope-desktop {
    display: block;
  }

  .rope-mobile {
    display: none;
  }

  .clothesline-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 0 10px;
    position: relative;
    z-index: 2;
  }

  .clothesline-pair {
    display: contents; /* Kartların doğrudan 4 sütunlu ızgaraya yerleşmesini sağlar */
  }

  /* Katener eğrisini takip eden dikey ofsetler */
  .polaroid-item.pos-outer {
    margin-top: 26px;
  }

  .polaroid-item.pos-inner {
    margin-top: 62px;
  }
}

/* Mobil & Tablet Düzeni (<= 850px): Her 2 Kart Kendi Full-Width Sarkık Hasır İpine Bağlı */
@media (max-width: 850px) {
  .rope-desktop {
    display: none;
  }

  .clothesline-container {
    gap: 46px;
  }

  .clothesline-cards {
    display: flex;
    flex-direction: column;
    gap: 44px;
    padding: 0 4px;
    position: relative;
    z-index: 2;
  }

  .clothesline-pair {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding-top: 14px;
  }

  .rope-mobile {
    display: block;
    top: -10px;
    height: 75px;
  }

  .polaroid-item.pos-outer,
  .polaroid-item.pos-inner {
    margin-top: 30px;
  }
}

@media (max-width: 520px) {
  .clothesline-container {
    gap: 38px;
  }

  .clothesline-cards {
    gap: 36px;
  }

  .clothesline-pair {
    gap: 12px;
    padding-top: 10px;
  }

  .rope-mobile {
    top: -8px;
    height: 68px;
  }

  .polaroid-item.pos-outer,
  .polaroid-item.pos-inner {
    margin-top: 26px;
  }
}

/* Her Bir Polaroid Kartı */
.polaroid-item {
  position: relative;
  cursor: pointer;
  transform-origin: top center;
  transform: rotate(var(--rotation, 0deg));
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  will-change: transform;
}

.polaroid-item:hover,
.polaroid-item:focus-visible {
  transform: rotate(0deg) translateY(-8px) scale(1.035);
  z-index: 10;
}

/* Gerçekçi Ahşap Mandal (Wooden Clothespin) */
.wooden-peg {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 40px;
  background: linear-gradient(to right, #ba9163 0%, #deb888 35%, #ecd0a6 50%, #cb9f6e 70%, #9e7445 100%);
  border-radius: 2px 2px 3px 3px;
  box-shadow: 2px 4px 10px rgba(70, 40, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 0.5px solid rgba(135, 90, 50, 0.45);
  z-index: 6;
  pointer-events: none;
}

/* Mandalın Ahşap Yarığı */
.wooden-peg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2.2px;
  height: 15px;
  background: rgba(70, 40, 18, 0.65);
}

/* Mandalın Metal Yayı */
.peg-spring {
  position: absolute;
  top: 14px;
  left: -2px;
  width: 18px;
  height: 6px;
  background: linear-gradient(to bottom, #777 0%, #ddd 45%, #555 100%);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  border: 0.5px solid rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
  .wooden-peg {
    width: 12px;
    height: 32px;
    top: -15px;
  }
  .wooden-peg::after {
    height: 12px;
  }
  .peg-spring {
    width: 14px;
    height: 5px;
    top: 11px;
    left: -1px;
  }
}

/* Nostaljik Polaroid Çerçeve */
.polaroid-card {
  background: #ffffff;
  padding: 12px 12px 26px 12px;
  border-radius: 3px;
  box-shadow: 0 12px 30px rgba(180, 135, 140, 0.16), 0 3px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(220, 195, 185, 0.5);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 600px) {
  .polaroid-card {
    padding: 8px 8px 18px 8px;
  }
}

.polaroid-item:hover .polaroid-card {
  box-shadow: 0 20px 42px rgba(180, 135, 140, 0.28), 0 0 24px rgba(194, 125, 136, 0.22);
  border-color: var(--accent);
}

/* Fotoğraf Alanı */
.polaroid-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f6eee9;
  position: relative;
  border-radius: 2px;
}

.polaroid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-cinematic);
}

.polaroid-item:hover .polaroid-img-wrap img {
  transform: scale(1.06);
}

/* Polaroid El Yazısı Başlık */
.polaroid-caption {
  margin-top: 13px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

@media (max-width: 600px) {
  .polaroid-caption {
    margin-top: 9px;
  }
}

.polaroid-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
  color: #3e2f31;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .polaroid-title {
    font-size: 0.92rem;
  }
}

.polaroid-tag {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .polaroid-tag {
    font-size: 0.6rem;
  }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-cinematic), visibility 0.4s ease;
}

.lightbox-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 36, 38, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: scale(0.95);
  transition: transform 0.4s var(--ease-cinematic);
}

.lightbox-modal.is-active .lightbox-img {
  transform: scale(1);
}

.lightbox-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.lightbox-counter {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: #fae2e5;
}

.lightbox-caption {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: #ffffff;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.lightbox-btn:hover {
  background: var(--accent);
  color: #ffffff;
  transform: scale(1.1);
}

.lightbox-close {
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  font-size: 1rem;
}

.lightbox-prev {
  top: 50%;
  left: -60px;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  font-size: 1.8rem;
}

.lightbox-next {
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  font-size: 1.8rem;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: -40px; right: 10px; }
}

/* --------------------------------------------------------------------------
   11. BÖLÜM 6: İNTERAKTİF MEKTUPLAR (ENVELOPES - PASTEL PUDRA & ALTIN)
   -------------------------------------------------------------------------- */
.envelopes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) and (min-width: 641px) {
  .envelopes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
}

@media (max-width: 640px) {
  .envelopes-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 290px;
    margin: 0 auto;
  }
}

.envelope-item {
  display: flex;
  justify-content: center;
  position: relative;
}

/* 5. Özel Mektubun Masaüstünde Ortalanması */
@media (min-width: 1025px) {
  .envelope-item-special {
    grid-column: 2 / span 2;
  }
}

@media (max-width: 1024px) and (min-width: 641px) {
  .envelope-item-special {
    grid-column: 1 / span 2;
    justify-content: center;
  }
}

.envelope-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  outline: none;
  width: 100%;
  max-width: 260px;
  position: relative;
}

/* Canlı Süzülme Animasyonları (Idle Floating) */
@keyframes envelopeFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.6deg);
  }
}

@keyframes envelopeFloatAlt {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-0.6deg);
  }
}

@keyframes envelopeFloatSpecial {
  0%, 100% {
    transform: translateY(0px) scale(1);
    box-shadow: 0 12px 28px rgba(180, 135, 140, 0.16), 0 0 16px rgba(212, 154, 117, 0.2);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(180, 135, 140, 0.24), 0 0 28px rgba(212, 154, 117, 0.45);
  }
}

.envelope-item:nth-child(1) .envelope-graphic {
  animation: envelopeFloat 5.2s ease-in-out infinite 0s;
}
.envelope-item:nth-child(2) .envelope-graphic {
  animation: envelopeFloatAlt 5.6s ease-in-out infinite 0.9s;
}
.envelope-item:nth-child(3) .envelope-graphic {
  animation: envelopeFloat 4.9s ease-in-out infinite 1.8s;
}
.envelope-item:nth-child(4) .envelope-graphic {
  animation: envelopeFloatAlt 5.4s ease-in-out infinite 2.7s;
}
.envelope-item-special .envelope-graphic {
  animation: envelopeFloatSpecial 4.6s ease-in-out infinite 0.6s;
}

.envelope-card:hover .envelope-graphic,
.envelope-card.is-opening .envelope-graphic {
  animation-play-state: paused;
}

/* 3D Zarf Gövdesi (Pastel Gül & Pudra) */
.envelope-graphic {
  position: relative;
  width: 100%;
  height: 160px;
  background: #f8e8ec;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(180, 135, 140, 0.18), 0 2px 8px rgba(0, 0, 0, 0.04);
  perspective: 900px;
  transform-style: preserve-3d;
  border: 1px solid rgba(210, 155, 165, 0.4);
  transition: transform 0.5s var(--ease-cinematic), box-shadow 0.5s ease, border-color 0.4s ease;
  overflow: visible;
}

.envelope-card:hover .envelope-graphic {
  transform: translateY(-12px) scale(1.025);
  border-color: var(--accent);
  box-shadow: 0 22px 48px rgba(180, 135, 140, 0.28), 0 0 25px rgba(214, 135, 150, 0.22);
}

/* Zarf Açılma Animasyonu Durumu (is-opening) */
.envelope-card.is-opening .envelope-graphic {
  transform: translateY(-16px) scale(1.04);
  border-color: var(--accent);
  box-shadow: 0 26px 55px rgba(180, 135, 140, 0.35), 0 0 35px rgba(214, 135, 150, 0.3);
}

/* Zarfın İç Arka Kısmı */
.envelope-back {
  position: absolute;
  inset: 0;
  background: #f4dce1;
  border-radius: var(--radius-sm);
}

/* Zarfın İçindeki Mektup Kağıdı (Letter Paper Preview) */
.envelope-paper-preview {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 125px;
  background: #fffcf8;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(160, 110, 120, 0.15);
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  gap: 8px;
  z-index: 2;
  border: 1px solid rgba(220, 195, 190, 0.45);
}

/* Kağıdın Üzerindeki Zarif Satır İpuçları */
.envelope-paper-preview::before {
  content: '';
  width: 45%;
  height: 4px;
  background: rgba(194, 125, 136, 0.35);
  border-radius: 2px;
}

.envelope-paper-preview::after {
  content: '';
  width: 85%;
  height: 3px;
  background: rgba(194, 125, 136, 0.2);
  border-radius: 2px;
  box-shadow: 0 7px 0 rgba(194, 125, 136, 0.18), 0 14px 0 rgba(194, 125, 136, 0.14);
}

/* Hover'da Kağıdın Hafifçe Dışarı Taşması */
.envelope-card:hover .envelope-paper-preview {
  transform: translateY(-20px);
}

/* Açılma Esnasında Kağıdın Zarfın İçinden Zarifçe Yukarı Kayması */
.envelope-card.is-opening .envelope-paper-preview {
  transform: translateY(-70px) scale(1.05);
  box-shadow: 0 14px 32px rgba(140, 85, 95, 0.3);
  z-index: 4;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.16s;
}

/* Kusursuz Kesişen Katlar (Flaps - Yüzdesel Clip-Path ile Sıfır Hata) */
.envelope-flaps {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  transform-style: preserve-3d;
}

.flap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flap-left {
  background: #edd2d7;
  clip-path: polygon(0 0, 0 100%, 50% 50%);
  z-index: 2;
  filter: drop-shadow(2px 0 3px rgba(150, 95, 105, 0.1));
}

.flap-right {
  background: #e6c5cb;
  clip-path: polygon(100% 0, 100% 100%, 50% 50%);
  z-index: 2;
  filter: drop-shadow(-2px 0 3px rgba(150, 95, 105, 0.1));
}

.flap-bottom {
  background: #deafb7;
  clip-path: polygon(0 100%, 100% 100%, 50% 48%);
  z-index: 3;
  filter: drop-shadow(0 -2px 4px rgba(150, 95, 105, 0.14));
}

.flap-top {
  background: linear-gradient(180deg, #d39fa8 0%, #caa4ac 100%);
  clip-path: polygon(0 0, 100% 0, 50% 54%);
  transform-origin: top center;
  z-index: 5;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 3px 5px rgba(140, 80, 90, 0.18));
  backface-visibility: visible;
}

/* Hover Esnasında Kapağın Hafifçe Yukarı Aralanması */
.envelope-card:hover .flap-top {
  transform: rotateX(42deg);
}

/* Açılma Esnasında Kapağın 180 Derece Arkaya Katlanması */
.envelope-card.is-opening .flap-top {
  transform: rotateX(180deg);
  z-index: 1;
  filter: drop-shadow(0 -3px 5px rgba(140, 80, 90, 0.15));
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

/* 3D Kabartmalı Balmumu Mühür (Wax Seal) */
.envelope-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: radial-gradient(circle at 35% 35%, #cb4b5f 0%, #a02c3e 65%, #761827 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff9f9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow: 0 4px 12px rgba(110, 25, 40, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.45), inset 0 -2px 3px rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  z-index: 6;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease, box-shadow 0.4s ease;
}

.seal-gold {
  background: radial-gradient(circle at 35% 35%, #e8ab74 0%, #b87b43 65%, #885122 100%);
  color: #fffdf5;
  box-shadow: 0 4px 14px rgba(160, 100, 45, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.5), inset 0 -2px 3px rgba(0, 0, 0, 0.4);
}

.envelope-card:hover .envelope-seal {
  transform: translate(-50%, -46%) scale(1.1);
  box-shadow: 0 6px 18px rgba(148, 50, 66, 0.55), 0 0 14px rgba(212, 100, 120, 0.4);
}

.envelope-card:hover .seal-gold {
  box-shadow: 0 6px 18px rgba(184, 123, 67, 0.6), 0 0 16px rgba(232, 171, 116, 0.5);
}

/* Açılma Esnasında Mührün Ayrılması ve Parlayarak Kaybolması */
.envelope-card.is-opening .envelope-seal {
  transform: translate(-50%, -46px) scale(1.3) rotate(20deg);
  opacity: 0;
  box-shadow: 0 0 28px rgba(220, 100, 120, 0.9);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, box-shadow 0.35s ease;
}

/* Özel 5. Mektup (Altın Şampanya Rengi) */
.envelope-special {
  background: #fcf1e5;
  border-color: rgba(212, 154, 117, 0.5);
}

.envelope-special .envelope-back {
  background: #f6e4d4;
}

.envelope-special .flap-left {
  background: #edd5c0;
}

.envelope-special .flap-right {
  background: #e6cbb2;
}

.envelope-special .flap-bottom {
  background: #debfa3;
}

.envelope-special .flap-top {
  background: linear-gradient(180deg, #d3b190 0%, #caa683 100%);
}

/* Mektup Başlığı ve Etiketi */
.envelope-label {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  transition: all 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.envelope-label::before {
  content: '💌';
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-6px) scale(0.7);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

.envelope-card:hover .envelope-label {
  color: var(--accent);
  letter-spacing: 0.03em;
}

.envelope-card:hover .envelope-label::before {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.label-gold {
  color: #b87a54;
  font-weight: 500;
}

.label-gold::before {
  content: '✨';
}

.envelope-card:hover .label-gold {
  color: #9c6039;
}

/* Mektup Okuyucu Modalı (Letter Reader) */
.letter-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-cinematic), visibility 0.5s ease;
  padding: 24px;
}

.letter-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.letter-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 36, 38, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.letter-paper-wrap {
  position: relative;
  z-index: 2;
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  perspective: 1000px;
}

.letter-close-btn {
  align-self: flex-end;
  margin-bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-subtle);
  color: #3a2e30;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.letter-close-btn:hover {
  background: var(--accent);
  color: #ffffff;
  transform: rotate(90deg);
}

.letter-paper {
  background: #fffdfa;
  border: 1px solid rgba(212, 160, 168, 0.4);
  border-radius: var(--radius-md);
  padding: 46px 40px;
  box-shadow: 0 28px 65px rgba(120, 75, 80, 0.22), 0 0 40px rgba(194, 125, 136, 0.15);
  overflow-y: auto;
  transform: translateY(35px) scale(0.92) rotateX(8deg);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

@media (max-width: 600px) {
  .letter-paper {
    padding: 30px 22px;
  }
}

.letter-modal.is-active .letter-paper {
  transform: translateY(0) scale(1) rotateX(0deg);
  opacity: 1;
}

.letter-header {
  text-align: center;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(194, 125, 136, 0.2);
  padding-bottom: 20px;
}

.letter-monogram {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.letter-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
}

.letter-ornament {
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 8px;
  opacity: 0.85;
}

.letter-body {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.9;
  color: #4a3a3c;
  font-style: italic;
  font-weight: 300;
  white-space: pre-line;
}

.letter-footer {
  margin-top: 36px;
  text-align: right;
  border-top: 1px solid rgba(194, 125, 136, 0.2);
  padding-top: 20px;
}

.letter-sign {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--accent);
  font-style: italic;
  line-height: 1.4;
  display: block;
}

/* ==========================================================================
   HARRY POTTER STYLE MAGICAL FLYING LETTERS (5. ÖZEL MEKTUP İÇİN)
   ========================================================================== */

/* Tam Ekran Sihirli Uçuş Sahnesi */
.potter-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2600;
  pointer-events: none;
  overflow: hidden;
  perspective: 1200px;
  background: radial-gradient(circle at 50% 45%, rgba(255, 238, 205, 0.25) 0%, rgba(38, 24, 28, 0.6) 85%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.potter-stage.is-active {
  opacity: 1;
}

/* Havada Uçuşan Hogwarts Tarzı Küçük Mektuplar (Flock of Letters) */
.potter-flock-envelope {
  position: absolute;
  width: 52px;
  height: 35px;
  background: #fbf3e6;
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(60, 30, 20, 0.38);
  transform-style: preserve-3d;
  pointer-events: none;
  will-change: transform, opacity;
  border: 0.5px solid rgba(212, 160, 110, 0.5);
  transition: transform 2.2s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 0.6s ease;
}

/* Uçuşan Mektubun Kanat Gibi Çırpınan Üst Kapağı */
.potter-mini-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 50% 55%);
  background: linear-gradient(to bottom, #ecd3b8, #dfbe9b);
  transform-origin: top center;
  animation: potterWingFlap 0.26s ease-in-out infinite alternate;
}

.potter-flock-envelope::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #c44052 0%, #7d1c28 100%);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

@keyframes potterWingFlap {
  0% {
    transform: rotateX(25deg);
  }
  100% {
    transform: rotateX(155deg);
  }
}

/* Ana Kahraman Uçan Zarf (Hero Levitation Envelope) */
.potter-hero-envelope {
  position: fixed;
  width: 260px;
  height: 160px;
  background: #fcf1e5;
  border-radius: 6px;
  box-shadow: 0 25px 65px rgba(120, 60, 30, 0.5), 0 0 55px rgba(232, 171, 116, 0.75);
  border: 1.5px solid rgba(220, 165, 110, 0.7);
  transform-style: preserve-3d;
  perspective: 1000px;
  z-index: 2750;
  transition: all 1.25s cubic-bezier(0.2, 0.9, 0.25, 1);
  overflow: visible;
  will-change: transform, left, top;
}

@media (max-width: 600px) {
  .potter-hero-envelope {
    width: 220px;
    height: 140px;
  }
}

/* Ana Zarfın Havada Dalgalanışı */
.potter-hero-envelope.hovering {
  animation: potterHeroHover 2.4s ease-in-out infinite;
}

@keyframes potterHeroHover {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1.3) rotateX(12deg) rotateY(0deg) rotateZ(-1deg);
    box-shadow: 0 25px 60px rgba(120, 60, 30, 0.45), 0 0 45px rgba(232, 171, 116, 0.65);
  }
  50% {
    transform: translate(-50%, -54%) scale(1.34) rotateX(8deg) rotateY(2deg) rotateZ(1.5deg);
    box-shadow: 0 32px 75px rgba(120, 60, 30, 0.5), 0 0 65px rgba(245, 195, 135, 0.85);
  }
}

@media (max-width: 600px) {
  @keyframes potterHeroHover {
    0%, 100% {
      transform: translate(-50%, -50%) scale(1.15) rotateX(8deg);
    }
    50% {
      transform: translate(-50%, -54%) scale(1.18) rotateX(6deg);
    }
  }
}

/* Ana Zarf Katları */
.potter-hero-back {
  position: absolute;
  inset: 0;
  background: #f6e4d4;
  border-radius: 6px;
}

.potter-hero-paper {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 125px;
  background: #fffcf6;
  border-radius: 4px;
  border: 1px solid rgba(212, 160, 110, 0.5);
  box-shadow: 0 4px 14px rgba(160, 100, 50, 0.18);
  transition: transform 0.9s cubic-bezier(0.2, 0.85, 0.25, 1), box-shadow 0.6s ease;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  gap: 8px;
}

.potter-hero-paper::before {
  content: '';
  width: 45%;
  height: 4px;
  background: rgba(184, 123, 67, 0.45);
  border-radius: 2px;
}

.potter-hero-paper::after {
  content: '';
  width: 85%;
  height: 3px;
  background: rgba(184, 123, 67, 0.25);
  border-radius: 2px;
  box-shadow: 0 8px 0 rgba(184, 123, 67, 0.2), 0 16px 0 rgba(184, 123, 67, 0.15);
}

.potter-hero-flaps {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  transform-style: preserve-3d;
}

.potter-flap-l {
  position: absolute;
  inset: 0;
  background: #edd5c0;
  clip-path: polygon(0 0, 0 100%, 50% 50%);
  z-index: 2;
}

.potter-flap-r {
  position: absolute;
  inset: 0;
  background: #e6cbb2;
  clip-path: polygon(100% 0, 100% 100%, 50% 50%);
  z-index: 2;
}

.potter-flap-b {
  position: absolute;
  inset: 0;
  background: #debfa3;
  clip-path: polygon(0 100%, 100% 100%, 50% 48%);
  z-index: 3;
}

.potter-flap-t {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #d3b190 0%, #caa683 100%);
  clip-path: polygon(0 0, 100% 0, 50% 54%);
  transform-origin: top center;
  z-index: 5;
  transition: transform 0.75s cubic-bezier(0.2, 0.9, 0.25, 1);
  backface-visibility: visible;
}

/* Ana Altın Mühür */
.potter-hero-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: radial-gradient(circle at 35% 35%, #f6bf84 0%, #c4874c 65%, #8f5422 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #fffdf5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 16px rgba(160, 100, 45, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.6), inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.45);
  z-index: 6;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, box-shadow 0.4s ease;
}

/* Mühür Patlama / Ayrılma */
.potter-hero-envelope.open-seal .potter-hero-seal {
  transform: translate(-50%, -55px) scale(1.45) rotate(35deg);
  opacity: 0;
  box-shadow: 0 0 35px rgba(255, 215, 130, 0.95);
}

/* Kapak Açılma */
.potter-hero-envelope.open-flap .potter-flap-t {
  transform: rotateX(180deg);
  z-index: 1;
}

/* Mektup Kağıdı Havalanışı */
.potter-hero-envelope.extract-paper .potter-hero-paper {
  transform: translateY(-90px) scale(1.15) rotate(-2deg);
  box-shadow: 0 20px 45px rgba(120, 60, 20, 0.4), 0 0 35px rgba(255, 210, 130, 0.6);
  z-index: 6;
}

/* Uçuşan Sihirli Işıltılar (Potter Golden Stardust) */
.potter-sparkle {
  position: fixed;
  pointer-events: none;
  font-size: 1.15rem;
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.9), 0 0 20px rgba(255, 180, 50, 0.6);
  z-index: 2800;
  transform: translate(-50%, -50%);
  animation: potterSparkleFade 1.2s ease-out forwards;
}

@keyframes potterSparkleFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2) rotate(90deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(180deg);
  }
}

/* Büyülü Parşömen Mektup Teması (Enchantment Modal) */
.letter-modal.potter-letter-theme .letter-backdrop {
  background: radial-gradient(circle at 50% 45%, rgba(45, 28, 22, 0.85) 0%, rgba(20, 12, 14, 0.92) 100%);
}

.letter-modal.potter-letter-theme .letter-paper {
  background: #fdf8f0;
  border: 2px solid rgba(212, 160, 90, 0.8);
  box-shadow: 0 32px 85px rgba(80, 40, 20, 0.4), 0 0 70px rgba(224, 168, 102, 0.3);
  position: relative;
}

.letter-modal.potter-letter-theme .letter-monogram {
  color: #b87a42;
  font-weight: 600;
  letter-spacing: 0.35em;
}

.letter-modal.potter-letter-theme .letter-title {
  color: #3f2a1d;
  text-shadow: 0 1px 2px rgba(184, 122, 66, 0.18);
}

.letter-modal.potter-letter-theme .letter-ornament {
  color: #c9884e;
}

/* --------------------------------------------------------------------------
   12. BÖLÜM 7: HENÜZ YAZMADIĞIMIZ SAYFALAR (FUTURE)
   -------------------------------------------------------------------------- */
.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.future-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(180, 135, 140, 0.1);
  transition: all 0.5s var(--ease-cinematic);
}

.future-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, var(--accent-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.future-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 18px 42px rgba(180, 135, 140, 0.18);
}

.future-card:hover::before {
  opacity: 1;
}

.future-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(194, 125, 136, 0.12);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.future-card:hover .future-icon-wrap {
  background: rgba(194, 125, 136, 0.2);
  border-color: var(--accent);
  transform: scale(1.08);
}

.future-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
}

.future-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 22px;
}

.future-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(194, 125, 136, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   13. BÖLÜM 8: FİNAL BÖLÜMÜ (PASTEL SİNEMATİK SONUÇ)
   -------------------------------------------------------------------------- */
.final-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
  overflow: hidden;
  z-index: 2;
  background: radial-gradient(ellipse at center, #fff9f6 0%, #faedf2 55%, #f5e9df 100%);
}

.final-container {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.final-step {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s var(--ease-cinematic), transform 1.2s var(--ease-cinematic);
}

.final-step.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.final-cake-step {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 6px 0 16px;
}

.final-cake-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  font-style: italic;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.final-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.final-big-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.final-line {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.8vw, 2.4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
}

.final-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  color: #523e41;
  letter-spacing: 0.04em;
  margin-top: 10px;
}

.final-heart-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.final-heart {
  color: #c45768;
  filter: drop-shadow(0 0 16px rgba(196, 87, 104, 0.45));
  animation: heartPulse 2.4s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(196, 87, 104, 0.35)); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 24px rgba(196, 87, 104, 0.6)); }
}

.final-closing {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   14. KAYDIRMA VE GİRİŞ ANİMASYONLARI (REVEAL ON SCROLL)
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1s var(--ease-cinematic), transform 1s var(--ease-cinematic);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

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

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

/* ==========================================================================
   13. DOKUNDUKÇA AÇAN ÇİÇEKLER (TOUCH FLOWER TRAIL)
   ========================================================================== */
.flower-trail-petal {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  opacity: 1;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.1s ease-out;
  filter: drop-shadow(0 2px 5px rgba(220, 140, 160, 0.45));
}

/* ==========================================================================
   14. BUKET'İN GÖKYÜZÜ HARİTASI (STAR MAP)
   ========================================================================== */
.starmap-section {
  position: relative;
  overflow: hidden;
}

.starmap-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1050px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .starmap-wrapper {
    flex-direction: column;
    gap: 36px;
  }
}

.starmap-frame {
  position: relative;
  width: 440px;
  height: 440px;
  max-width: 88vw;
  max-height: 88vw;
  border-radius: 50%;
  padding: 18px;
  background: radial-gradient(circle, #1a162b 0%, #100d1c 85%, #080610 100%);
  box-shadow: 0 20px 50px rgba(20, 15, 35, 0.45), 0 0 35px rgba(212, 160, 90, 0.25), inset 0 0 30px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(220, 175, 120, 0.55);
}

.starmap-dome {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  cursor: crosshair;
}

#starmap-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.starmap-coords-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(220, 175, 120, 0.35);
  pointer-events: none;
}

.ring-coord {
  position: absolute;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  transform: translate(-50%, -50%);
}

.ring-n { top: 0; left: 50%; }
.ring-e { top: 50%; left: 100%; }
.ring-s { top: 100%; left: 50%; }
.ring-w { top: 50%; left: 0; }

.starmap-crosshair {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px dashed rgba(255, 220, 160, 0.7);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 10;
}

.starmap-tooltip {
  position: absolute;
  padding: 6px 14px;
  background: rgba(18, 14, 28, 0.92);
  border: 1px solid rgba(220, 175, 120, 0.7);
  border-radius: 20px;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: #fff9ed;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -120%);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  z-index: 12;
}

.starmap-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, -145%);
}

.starmap-info-card {
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 38px 32px;
  box-shadow: 0 16px 40px rgba(180, 135, 140, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.starmap-date-badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}

.starmap-location-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}

.starmap-coords {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.starmap-divider {
  width: 45px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 20px;
  border-radius: 1px;
}

.starmap-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #443538;
  margin-bottom: 24px;
}

.starmap-whisper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--accent);
  background: rgba(194, 125, 136, 0.08);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(194, 125, 136, 0.2);
}

/* ==========================================================================
   14.5. BİR DİLEK TUT & MUMU ÜFLE (CAKE & CANDLE BLOW)
   ========================================================================== */
.cake-section {
  position: relative;
  overflow: hidden;
}

.cake-interactive-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* İllüstrasyon Doğum Günü Pastası Sahnesi (Çerçevesiz, Sayfayla Tam Bütünleşik) */
.illustrated-cake-stage,
.illustrated-cake-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 0;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
}

/* Sayfa Zemininde Serbestçe Süzülen Narin Yıldızlar */
.cake-floating-stars {
  position: absolute;
  top: -30px;
  left: -40px;
  right: -40px;
  bottom: -20px;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.c-star {
  position: absolute;
  color: rgba(226, 148, 168, 0.45);
  filter: drop-shadow(0 0 6px rgba(255, 205, 218, 0.7));
  user-select: none;
  animation: floatStar 4s ease-in-out infinite alternate;
}

.c-star.star-1 { top: 8%; left: 4%; font-size: 2.0rem; animation-delay: 0s; }
.c-star.star-2 { top: 16%; right: 6%; font-size: 1.5rem; animation-delay: 0.7s; }
.c-star.star-3 { top: 38%; left: 0%; font-size: 1.7rem; animation-delay: 1.3s; }
.c-star.star-4 { top: 58%; right: 2%; font-size: 2.1rem; animation-delay: 1.9s; }
.c-star.star-5 { top: 78%; left: 6%; font-size: 1.8rem; animation-delay: 0.4s; }
.c-star.star-6 { top: 4%; right: 20%; font-size: 1.4rem; animation-delay: 1.6s; }
.c-star.star-7 { top: 35%; right: 0%; font-size: 1.7rem; animation-delay: 2.2s; }
.c-star.star-8 { bottom: 6%; right: 8%; font-size: 1.6rem; animation-delay: 0.9s; }
.c-star.star-9 { bottom: 20%; left: 2%; font-size: 1.5rem; animation-delay: 1.1s; }
.c-star.star-10 { top: 24%; left: 12%; font-size: 1.3rem; animation-delay: 2.5s; }

@keyframes floatStar {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.9);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-10px) rotate(18deg) scale(1.15);
    opacity: 0.85;
  }
}

/* Pasta SVG Taşıyıcı */
.cake-svg-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
}

.illustrated-cake-svg {
  width: 100%;
  max-width: 350px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 14px 24px rgba(190, 100, 120, 0.24));
  overflow: visible;
}

/* Doğum Günü Mumu */
.birthday-candle {
  cursor: pointer;
}

/* Dans Eden Mum Alevi */
.candle-flame {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: 50% 90%;
  animation: candleFlicker 1.8s ease-in-out infinite alternate;
  transition: opacity 0.4s ease, transform 0.4s ease;
  filter: drop-shadow(0 0 10px #ff9e00) drop-shadow(0 0 22px rgba(255, 140, 40, 0.75));
}

@keyframes candleFlicker {
  0% {
    transform: rotate(-1.5deg) scaleY(1) scaleX(0.96);
  }
  25% {
    transform: rotate(2deg) scaleY(1.05) scaleX(1);
  }
  50% {
    transform: rotate(-2deg) scaleY(0.95) scaleX(1.04);
  }
  75% {
    transform: rotate(1.5deg) scaleY(1.03) scaleX(0.98);
  }
  100% {
    transform: rotate(0deg) scaleY(1.01) scaleX(1.02);
  }
}

.candle-flame.is-blown {
  opacity: 0;
  transform: scale(0.12) translateY(-14px);
  pointer-events: none;
}

/* Mum Söndüğünde Yükselen Duman */
.candle-smoke {
  opacity: 0;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: 50% 90%;
}

.candle-smoke.active {
  animation: smokeRise 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes smokeRise {
  0% {
    opacity: 0.9;
    transform: scale(0.6) translateY(0);
  }
  45% {
    opacity: 0.65;
    transform: scale(1.6) translateY(-28px) translateX(6px);
  }
  100% {
    opacity: 0;
    transform: scale(2.8) translateY(-70px) translateX(-12px);
  }
}

/* Üfleme Butonları & İnteraktif Kontroller */
.blow-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  transition: opacity 0.4s ease, transform 0.4s ease;
  width: 100%;
}

.blow-controls.is-hidden {
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  display: none;
}

.blow-btn-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-blow-candle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  background: linear-gradient(135deg, #c45768 0%, #aa3d50 100%);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(196, 87, 104, 0.32), 0 0 20px rgba(247, 211, 153, 0.4);
  transition: all 0.35s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-blow-candle:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(196, 87, 104, 0.42), 0 0 28px rgba(247, 211, 153, 0.6);
}

.btn-blow-candle.is-blowing {
  background: linear-gradient(135deg, #8a4351 0%, #682c37 100%);
  transform: scale(0.97);
  box-shadow: 0 4px 14px rgba(196, 87, 104, 0.25);
  pointer-events: none;
}

.btn-mic-blow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: #554448;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.btn-mic-blow:hover {
  background: #ffffff;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(196, 87, 104, 0.18);
}

.btn-mic-blow.listening {
  background: #fff0f2;
  border-color: #e55368;
  color: #e55368;
  animation: pulseMic 1.2s infinite;
}

@keyframes pulseMic {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 83, 104, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(229, 83, 104, 0); }
}

/* Üfleme Geri Bildirim Çubuğu & İpuçları */
.blow-feedback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
}

.blow-meter-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 99px;
  overflow: hidden;
  opacity: 0;
  transform: scaleY(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.blow-meter-bar.active {
  opacity: 1;
  transform: scaleY(1);
}

.blow-meter-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f7d299, #c45768, #ff6b8b);
  border-radius: 99px;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 8px rgba(196, 87, 104, 0.6);
}

.blow-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  transition: color 0.3s ease;
}

/* Alev Üflenme Animasyonu */
.candle-flame.is-blowing {
  transform-origin: 50% 100%;
  animation: flameWindShake 0.1s ease-in-out infinite alternate !important;
  filter: drop-shadow(0 0 16px #ff7b00) drop-shadow(0 0 28px rgba(255, 80, 20, 0.9));
}

@keyframes flameWindShake {
  0% {
    transform: rotate(26deg) scaleX(0.65) scaleY(0.7) translateY(2px);
    opacity: 0.85;
  }
  100% {
    transform: rotate(38deg) scaleX(0.48) scaleY(0.52) translateY(4px);
    opacity: 0.55;
  }
}

/* Rüzgar Parçacığı Efekti */
.wind-gust-particle {
  position: fixed;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), rgba(247, 210, 153, 0.6), transparent);
  border-radius: 4px;
  pointer-events: none;
  z-index: 99;
  animation: windGustAnim 0.75s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes windGustAnim {
  0% {
    width: 20px;
    transform: translateX(0) translateY(0) scaleY(0.8);
    opacity: 0;
  }
  25% {
    opacity: 0.9;
  }
  70% {
    opacity: 0.7;
  }
  100% {
    width: 80px;
    transform: translateX(110px) translateY(-8px) scaleY(1.2);
    opacity: 0;
  }
}

/* Sürpriz Dilek Kartı Modalı (Havada Uçuşarak Açılan) */
.wish-reveal-card {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  pointer-events: none;
  padding: 24px;
  box-sizing: border-box;
}

.wish-reveal-card.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wish-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(35, 18, 24, 0.65) 0%, rgba(18, 10, 14, 0.85) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.wish-modal-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 44px 38px 36px;
  background: #fffcf7;
  border: 2px solid rgba(212, 160, 90, 0.75);
  border-radius: var(--radius-md);
  box-shadow: 0 32px 80px rgba(80, 30, 40, 0.48), 0 0 65px rgba(247, 211, 153, 0.55);
  max-width: 520px;
  width: 100%;
  margin: auto;
  opacity: 0;
  transform: scale(0.85) translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.wish-reveal-card.is-visible .wish-modal-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@media (max-width: 600px) {
  .wish-modal-content {
    padding: 32px 22px 26px;
  }
}

.wish-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 4px 8px;
}

.wish-close-btn:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.wish-stars {
  font-size: 1.4rem;
  color: #d49a55;
  margin-bottom: 12px;
}

.wish-title {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  color: #3e2d30;
  margin-bottom: 16px;
}

.wish-message {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #554448;
  margin-bottom: 26px;
}

.btn-relight-candle {
  padding: 10px 26px;
  background: linear-gradient(135deg, rgba(196, 87, 104, 0.12) 0%, rgba(212, 160, 90, 0.18) 100%);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.35s ease;
}

.btn-relight-candle:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196, 87, 104, 0.3);
}

/* Konfeti Yağmuru */
.cake-confetti-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 2px;
  will-change: transform, opacity;
}

/* --------------------------------------------------------------------------
   15. ERİŞİLEBİLİRLİK & PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-bg-image {
    animation: none !important;
  }
  
  .ambient-canvas {
    display: none;
  }
}
