/* ============================================================
   SEVGİLİME HEDİYE — Haute Romantique Premium Edition
   Midnight Velvet & Champagne Gold — Zero-Lag GPU Optimized
   ============================================================ */

:root {
  --bg-deep: #090307;
  --bg-velvet: #170711;
  --surface: rgba(255, 244, 248, 0.042);
  --surface-elevated: rgba(255, 244, 248, 0.072);
  --border-soft: rgba(253, 198, 218, 0.14);
  --border-gold: rgba(242, 211, 152, 0.34);
  --border-gold-strong: rgba(245, 218, 166, 0.58);

  --text-main: #fdf5f8;
  --text-muted: #d9c3cd;
  --text-dim: #9e8491;

  --rose: #fb7185;
  --rose-deep: #be123c;
  --blush: #fda4af;
  --gold: #f3d5a0;
  --gold-bright: #fce8bd;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Dancing Script", cursive;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-lg: 30px;
  --radius-md: 20px;
  --inset-specular: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(243, 213, 160, 0.08);
  --shadow-luxury: 0 28px 80px rgba(0, 0, 0, 0.62), 0 0 42px rgba(225, 29, 72, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.72;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

body.locked {
  overflow: hidden;
  touch-action: none;
}

/* iPhone & Android'de 0 titremeli sabit arka plan katmanı */
.bg-base-layer {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(ellipse 95% 62% at 50% 0%, #270b1c 0%, #12050d 44%, var(--bg-deep) 100%);
}

/* ---------- GPU-Hızlandırmalı Altın İlerleme Çubuğu ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  z-index: 150;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
  background: linear-gradient(90deg, #e11d48 0%, #fb7185 45%, #f5d7a0 100%);
  box-shadow: 0 0 12px rgba(245, 215, 160, 0.65);
}

/* ---------- İpeksi Mouse Işık Halesi (Zero-Jank) ---------- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(
    circle,
    rgba(251, 113, 133, 0.11) 0%,
    rgba(243, 213, 160, 0.055) 36%,
    transparent 68%
  );
  transform: translate3d(-500px, -500px, 0);
  will-change: transform;
}

@media (hover: none), (max-width: 768px) {
  .cursor-glow {
    display: none;
  }
}

/* ---------- Ambient Arka Plan (Sıfır Filter-Blur -> Ultra Hızlı) ---------- */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  animation: orbFloat 22s ease-in-out infinite alternate;
}

.orb-1 {
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(190, 18, 60, 0.22) 0%, rgba(190, 18, 60, 0.06) 42%, transparent 70%);
  top: -220px;
  left: -180px;
}

.orb-2 {
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(243, 213, 160, 0.11) 0%, rgba(245, 158, 11, 0.03) 42%, transparent 70%);
  top: 32%;
  right: -200px;
  animation-delay: -7s;
}

.orb-3 {
  width: 820px;
  height: 820px;
  background: radial-gradient(circle, rgba(157, 23, 77, 0.2) 0%, rgba(157, 23, 77, 0.05) 45%, transparent 70%);
  bottom: -260px;
  left: 18%;
  animation-delay: -13s;
}

@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(32px, -28px, 0) scale(1.06); }
}

/* İnce Sinematik Kenar Derinliği (Vignette) */
.luxury-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(4, 1, 3, 0.68) 100%);
}

/* ---------- Kalp, Yıldız Tozu & Havai Fişek Canvas ---------- */
#hearts-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 45;
}

/* ---------- Açılış Perdesi (Büyük Botanik Beyaz Lale) ---------- */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 18px calc(18px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(circle at 50% 40%, rgba(44, 13, 29, 0.97), rgba(8, 3, 6, 0.995));
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Perde kapandığında içindeki tüm animasyonları durdur -> Sıfır arka plan yükü */
.intro-overlay.is-hidden * {
  animation: none !important;
}

.intro-card {
  position: relative;
  max-width: 530px;
  width: 100%;
  text-align: center;
  padding: 34px 36px 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 246, 250, 0.085), rgba(255, 240, 246, 0.018));
  border: 1px solid var(--border-gold);
  box-shadow: var(--inset-specular), var(--shadow-luxury);
}

.intro-tulip-stage {
  position: relative;
  width: 245px;
  height: 280px;
  margin: -10px auto 10px;
  display: grid;
  place-items: center;
}

.tulip-halo {
  position: absolute;
  width: 235px;
  height: 235px;
  top: 2px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(243, 213, 160, 0.18) 34%,
    rgba(251, 113, 133, 0.06) 58%,
    transparent 74%
  );
  animation: tulipHaloPulse 3.8s ease-in-out infinite alternate;
}

.tulip-ring {
  position: absolute;
  width: 210px;
  height: 210px;
  top: 14px;
  border-radius: 50%;
  border: 1px solid rgba(243, 213, 160, 0.22);
  box-shadow: 0 0 30px rgba(243, 213, 160, 0.08);
  animation: ringBreathe 5s ease-in-out infinite alternate;
}

@keyframes tulipHaloPulse {
  0% { transform: scale(0.92); opacity: 0.72; }
  100% { transform: scale(1.08); opacity: 1; }
}

@keyframes ringBreathe {
  0% { transform: scale(0.96); opacity: 0.4; }
  100% { transform: scale(1.04); opacity: 0.85; }
}

.white-tulip-svg {
  position: relative;
  z-index: 2;
  width: 235px;
  height: 280px;
  overflow: visible;
  transform-origin: 50% 94%;
  will-change: transform;
  animation: tulipEntrance 1.45s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    tulipSway 5.8s ease-in-out 1.45s infinite;
}

@keyframes tulipEntrance {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.76);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tulipSway {
  0%, 100% { transform: rotate(-1.8deg); }
  50% { transform: rotate(2.1deg); }
}

.white-tulip-svg .petal-left {
  transform-origin: 140px 192px;
  animation: bloomLeft 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.white-tulip-svg .petal-right {
  transform-origin: 140px 192px;
  animation: bloomRight 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.white-tulip-svg .petal-center {
  transform-origin: 140px 194px;
  animation: bloomCenter 1.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bloomLeft {
  0% { transform: rotate(17deg) scale(0.84); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes bloomRight {
  0% { transform: rotate(-17deg) scale(0.84); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes bloomCenter {
  0% { transform: scaleY(0.84); }
  100% { transform: scaleY(1); }
}

.tulip-sparkles {
  animation: sparkleTwinkle 2.8s ease-in-out infinite alternate;
}

@keyframes sparkleTwinkle {
  0% { opacity: 0.42; }
  100% { opacity: 1; }
}

.intro-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: clamp(2.45rem, 6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: 12px;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

.intro-subtitle {
  color: var(--text-muted);
  font-size: 0.96rem;
  font-weight: 300;
  max-width: 400px;
  margin: 0 auto 28px;
}

/* ---------- Premium Butonlar ---------- */
.btn-primary,
.btn-outline,
.btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease;
}

.btn-primary {
  padding: 14px 36px;
  border: 1px solid rgba(252, 232, 189, 0.45);
  background: linear-gradient(135deg, #be123c 0%, #f43f5e 48%, #d97706 145%);
  color: #fff;
  font-size: 0.94rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 32px rgba(190, 18, 60, 0.42);
}

.btn-primary.small {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 18px 42px rgba(244, 63, 94, 0.52);
}

.btn-primary:active {
  transform: translateY(0) scale(0.985);
}

.btn-outline {
  padding: 13px 28px;
  border: 1px solid var(--border-gold);
  background: rgba(255, 244, 248, 0.045);
  color: var(--gold-bright);
  font-size: 0.92rem;
  box-shadow: var(--inset-specular);
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(243, 213, 160, 0.12);
  border-color: var(--border-gold-strong);
  box-shadow: var(--inset-specular), 0 12px 30px rgba(243, 213, 160, 0.14);
}

.btn-ghost {
  margin-top: 28px;
  padding: 9px 22px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--border-gold);
}

/* ---------- Üst Navigasyon (Premium Pill Header + iOS Safe Area) ---------- */
.site-header {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 920px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(16, 6, 12, 0.72);
  border: 1px solid rgba(243, 213, 160, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 36px rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(13, 4, 10, 0.86);
  border-color: var(--border-gold);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand-heart {
  color: var(--rose);
  font-size: 1.02rem;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.site-nav a:hover {
  color: var(--gold-bright);
}

/* ---------- Ortak Bölüm Stilleri ---------- */
.container {
  width: min(92%, 1160px);
  margin: 0 auto;
}

.section {
  padding: 112px 0;
  position: relative;
}

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

.section-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--text-main);
}

.section-subtitle {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(122px + env(safe-area-inset-top, 0px)) 20px 84px;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.script-accent {
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  color: var(--gold);
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(243, 213, 160, 0.24);
}

.script-accent.small {
  font-size: 2.05rem;
  margin-bottom: 0;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8.6vw, 6.1rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.hero-title span {
  display: block;
}

.gradient-text {
  background: linear-gradient(120deg, #fff6f8 0%, #fda4af 45%, #f3d5a0 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 590px;
  margin: 0 auto 44px;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 2vw, 1.1rem);
  font-weight: 300;
}

/* ---------- Birliktelik Sayacı ---------- */
.counter-wrapper {
  margin: 0 auto 40px;
}

.counter-label {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 18px;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(78px, 132px));
  justify-content: center;
  gap: 14px;
}

.counter-box {
  position: relative;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, rgba(255, 245, 249, 0.085), rgba(255, 240, 246, 0.018));
  border: 1px solid var(--border-gold);
  box-shadow: var(--inset-specular), 0 14px 34px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.counter-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(252, 232, 189, 0.75), transparent);
}

.counter-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.6vw, 2.85rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.counter-unit {
  display: block;
  margin-top: 5px;
  font-size: 0.71rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.73rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.scroll-cue:hover { color: var(--gold); }

.scroll-cue svg {
  width: 20px;
  height: 20px;
  animation: bounceCue 2.2s ease-in-out infinite;
}

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

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.1); }
  28% { transform: scale(1); }
  42% { transform: scale(1.07); }
  70% { transform: scale(1); }
}

/* ---------- 3D AÇILAN MÜHÜRLÜ AŞK ZARFI ---------- */
.envelope-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.envelope-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  outline: none;
  perspective: 1100px;
  transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.65s ease;
  max-height: 460px;
}

.envelope-3d {
  position: relative;
  width: min(88vw, 420px);
  height: 270px;
  border-radius: 18px;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.66), 0 0 46px rgba(225, 29, 72, 0.16);
}

.envelope-wrapper:hover .envelope-3d {
  transform: translateY(-8px) rotateX(4deg);
  box-shadow: 0 36px 78px rgba(0, 0, 0, 0.72), 0 0 60px rgba(243, 213, 160, 0.24);
}

.envelope-back {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(145deg, #3f1229, #1f0815);
  border: 1px solid var(--border-gold);
}

.envelope-letter-peek {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  height: 214px;
  border-radius: 12px;
  background: linear-gradient(160deg, #fff9fb, #f9e8ef);
  border: 1px solid rgba(243, 213, 160, 0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 26px;
  color: #5b1833;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.28);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.peek-heart { color: #e11d48; font-size: 1.35rem; }

.peek-text {
  font-family: var(--font-script);
  font-size: 1.95rem;
  color: #6b1a39;
  margin-top: 4px;
}

.envelope-pocket {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  z-index: 3;
  background: linear-gradient(155deg, #4f1633, #270a1a);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  border: 1px solid var(--border-gold);
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 62%;
  z-index: 4;
  transform-origin: top center;
  background: linear-gradient(180deg, #681c42 0%, #3b0f26 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.42));
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.wax-seal {
  position: absolute;
  top: 58%;
  left: 50%;
  margin-left: -33px;
  margin-top: -33px;
  z-index: 5;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #fb7185, #be123c 62%, #7f1030 100%);
  border: 2px solid rgba(243, 213, 160, 0.78);
  color: #fff6de;
  font-size: 1.55rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.52), 0 0 22px rgba(251, 113, 133, 0.5);
  transition: transform 0.5s ease, opacity 0.45s ease;
  animation: heartbeat 2.4s ease-in-out infinite;
}

.envelope-prompt {
  margin-top: 24px;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.92;
}

.envelope-stage.is-opening .envelope-flap {
  transform: rotateX(175deg);
  z-index: 1;
}

.envelope-stage.is-opening .wax-seal {
  animation: none;
  transform: scale(1.45);
  opacity: 0;
}

.envelope-stage.is-opening .envelope-letter-peek {
  transform: translateY(-95px);
}

.envelope-stage.is-opened .envelope-wrapper {
  opacity: 0;
  transform: scale(0.92);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.letter-card {
  position: relative;
  max-width: 790px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 68px);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(255, 245, 249, 0.08), rgba(255, 240, 246, 0.018));
  border: 1px solid var(--border-gold);
  box-shadow: var(--inset-specular), var(--shadow-luxury);
  text-align: center;
  display: none;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
}

.envelope-stage.is-opened .letter-card {
  display: block;
  animation: letterReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes letterReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.letter-corner {
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: rgba(243, 213, 160, 0.52);
  border-style: solid;
  pointer-events: none;
}

.letter-corner.top-left {
  top: 18px;
  left: 18px;
  border-width: 1.5px 0 0 1.5px;
  border-top-left-radius: 10px;
}

.letter-corner.bottom-right {
  bottom: 18px;
  right: 18px;
  border-width: 0 1.5px 1.5px 0;
  border-bottom-right-radius: 10px;
}

.divider-heart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 32px;
  color: var(--rose);
}

.divider-heart::before,
.divider-heart::after {
  content: "";
  width: 78px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 213, 160, 0.55), transparent);
}

.letter-body {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #f6e9ef;
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.88;
}

.letter-footer {
  margin-top: 38px;
  text-align: right;
}

.letter-sign-text {
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.script-signature {
  font-family: var(--font-script);
  font-size: 2.45rem;
  color: var(--gold);
  line-height: 1.2;
  margin-top: 4px;
}

.script-signature.large {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

/* ---------- HİKAYEMİZ ZAMAN ÇİZELGESİ ---------- */
.timeline-list {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 0;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(243, 213, 160, 0.55) 12%,
    rgba(251, 113, 133, 0.55) 88%,
    transparent
  );
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 42px 46px 0;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 46px 42px;
}

.timeline-dot {
  position: absolute;
  top: 24px;
  right: -13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, #fb7185, #be123c);
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  color: #fff;
  box-shadow: 0 0 18px rgba(251, 113, 133, 0.58);
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -13px;
}

.timeline-card {
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(255, 244, 248, 0.068), rgba(255, 240, 246, 0.018));
  border: 1px solid var(--border-soft);
  box-shadow: var(--inset-specular), 0 18px 46px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.timeline-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--inset-specular), 0 24px 54px rgba(0, 0, 0, 0.5), 0 0 26px rgba(243, 213, 160, 0.14);
}

.timeline-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
}

.timeline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-card:hover .timeline-thumb img {
  transform: scale(1.05);
}

.timeline-body {
  padding: 22px 24px 26px;
}

.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.timeline-date {
  font-size: 0.73rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.timeline-badge {
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(251, 113, 133, 0.15);
  border: 1px solid rgba(251, 113, 133, 0.34);
  color: var(--blush);
}

.timeline-body h3 {
  font-family: var(--font-serif);
  font-size: 1.68rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.timeline-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ---------- SİNEMATİK AKAN FİLM ŞERİDİ (GPU PAUSE DESTEKLİ) ---------- */
.showcase-section {
  padding-left: 0;
  padding-right: 0;
}

.marquee-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  position: relative;
}

/* Kenar solması: mask-image yerine sabit gradyan katmanı (her karede yeniden boyama yok) */
.marquee-shell::before,
.marquee-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 9%;
  z-index: 4;
  pointer-events: none;
}

.marquee-shell::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-deep), rgba(9, 3, 7, 0));
}

.marquee-shell::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-deep), rgba(9, 3, 7, 0));
}

.marquee-shell.is-offscreen .marquee-track {
  animation-play-state: paused !important;
}

.marquee-row {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
  animation: marqueeLeft 46s linear infinite;
}

.marquee-track.reverse {
  animation: marqueeRight 52s linear infinite;
}

.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes marqueeRight {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.marquee-card {
  position: relative;
  width: 248px;
  height: 186px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid var(--border-soft);
  background: #170711;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.marquee-card:hover {
  transform: scale(1.04);
  border-color: var(--border-gold);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 22px rgba(243, 213, 160, 0.22);
  z-index: 3;
}

.marquee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.marquee-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(9, 3, 7, 0.9), transparent);
  font-family: var(--font-serif);
  font-size: 1.06rem;
  color: var(--text-main);
}

/* ---------- MASONRY FOTOĞRAF GALERİSİ ---------- */
.gallery-toolbar {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.count-pill {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(243, 213, 160, 0.08);
  border: 1px solid var(--border-gold);
}

.masonry-grid {
  column-count: 3;
  column-gap: 22px;
}

.photo-card {
  break-inside: avoid;
  margin-bottom: 22px;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.38s ease;
}

.photo-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.52), 0 0 26px rgba(243, 213, 160, 0.16);
}

.photo-frame {
  position: relative;
  overflow: hidden;
  background: #170711;
}

.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-card:hover .photo-frame img {
  transform: scale(1.055);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(9, 3, 7, 0.94) 0%,
    rgba(9, 3, 7, 0.32) 42%,
    transparent 74%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.photo-date {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}

.photo-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 5px;
}

.photo-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-more-wrap {
  margin-top: 38px;
  text-align: center;
}

/* ---------- Neden Seni Seviyorum Kartları ---------- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 22px;
}

.reason-card {
  padding: 36px 26px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255, 244, 248, 0.068), rgba(255, 240, 246, 0.015));
  border: 1px solid var(--border-soft);
  box-shadow: var(--inset-specular);
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.35s ease;
}

.reason-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-gold);
  background: linear-gradient(155deg, rgba(251, 113, 133, 0.12), rgba(243, 213, 160, 0.05));
  box-shadow: var(--inset-specular), 0 22px 48px rgba(0, 0, 0, 0.45);
}

.reason-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: inline-block;
}

.reason-card h3 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.reason-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ---------- FİNAL HAVAİ FİŞEK SÜRPRİZ BÖLÜMÜ ---------- */
.finale-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(42px, 6vw, 68px) 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(251, 113, 133, 0.14), rgba(255, 244, 248, 0.02));
  border: 1px solid var(--border-gold);
  box-shadow: var(--inset-specular), var(--shadow-luxury);
}

.finale-btn {
  margin-top: 28px;
  padding: 16px 40px;
  font-size: 1rem;
}

.finale-secret {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(14px);
  transition: max-height 0.85s ease, opacity 0.85s ease, transform 0.85s ease, margin-top 0.65s ease;
}

.finale-secret.is-revealed {
  max-height: 320px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 34px;
}

.finale-secret p {
  max-width: 560px;
  margin: 10px auto 0;
  color: #f8eaf0;
  font-size: 1.05rem;
  font-weight: 300;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 58px 24px 132px;
  border-top: 1px solid rgba(243, 213, 160, 0.12);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-heart {
  color: var(--rose);
  font-size: 1.45rem;
  margin-bottom: 10px;
  animation: heartbeat 2.4s infinite;
}

.footer-names {
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--gold);
  margin-top: 8px;
}

/* ---------- LIGHTBOX & SİNEMATİK SLAYT GÖSTERİSİ ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 76px 28px 32px;
  background: rgba(7, 2, 5, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

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

.lightbox-topbar {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.lightbox-counter {
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 240, 246, 0.08);
  border: 1px solid var(--border-soft);
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lb-pill-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(251, 113, 133, 0.18);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.lb-pill-btn:hover {
  background: rgba(251, 113, 133, 0.36);
  transform: scale(1.03);
}

.lb-pill-btn.is-playing {
  background: linear-gradient(135deg, #be123c, #d97706);
}

.lightbox-content {
  max-width: 880px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lightbox-stage {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.75);
  max-height: 64vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #12060c;
}

.lightbox-stage img {
  max-height: 64vh;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.lightbox.slideshow-active .lightbox-stage img {
  animation: kenBurns 5s ease-in-out forwards;
}

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

.lightbox-meta {
  margin-top: 20px;
  max-width: 620px;
}

.lightbox-date {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 500;
  margin: 4px 0 6px;
}

.lightbox-caption {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.slideshow-progress-bar {
  margin-top: 18px;
  width: min(320px, 80%);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 240, 246, 0.14);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.slideshow-active .slideshow-progress-bar {
  opacity: 1;
}

.slideshow-progress-fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  background: linear-gradient(90deg, #fb7185, #f3d5a0);
}

.lightbox-close,
.lightbox-nav {
  background: rgba(255, 240, 246, 0.08);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.65rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(251, 113, 133, 0.28);
  border-color: var(--border-gold);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

/* ---------- GELİŞMİŞ YÜZEN MÜZİK ÇALAR ---------- */
.music-player {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  background: rgba(20, 7, 15, 0.86);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--inset-specular), 0 16px 44px rgba(0, 0, 0, 0.58);
}

.vinyl-disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #f43f5e 0 24%, #1f1018 25% 44%, #311726 46% 68%, #150910 70%);
  border: 1px solid rgba(243, 213, 160, 0.44);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  animation: spinDisc 7s linear infinite;
  animation-play-state: paused;
}

.vinyl-disc.is-playing { animation-play-state: running; }
.vinyl-center { font-size: 0.72rem; color: #fff; }

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

.music-info {
  max-width: 155px;
  overflow: hidden;
}

.music-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.music-title {
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-artist {
  font-size: 0.71rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  flex-shrink: 0;
}

.equalizer span {
  width: 2.5px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--rose), var(--gold));
  transform: scaleY(0.25);
  transform-origin: center bottom;
}

.equalizer.is-playing span {
  animation: eqBounce 0.9s ease-in-out infinite alternate;
}

.equalizer.is-playing span:nth-child(2) { animation-delay: 0.2s; animation-duration: 0.7s; }
.equalizer.is-playing span:nth-child(3) { animation-delay: 0.4s; animation-duration: 1.05s; }
.equalizer.is-playing span:nth-child(4) { animation-delay: 0.15s; animation-duration: 0.8s; }

/* height yerine transform: sürekli layout hesaplaması yok, sadece GPU */
@keyframes eqBounce {
  0% { transform: scaleY(0.25); }
  100% { transform: scaleY(1); }
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(251, 113, 133, 0.45);
  background: linear-gradient(135deg, #be123c, #fb7185);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.player-btn:hover { transform: scale(1.07); }
.player-btn svg { width: 17px; height: 17px; }

.player-btn.subtle {
  background: rgba(255, 240, 246, 0.08);
  border-color: var(--border-soft);
  color: var(--text-dim);
  font-size: 0.95rem;
}

.player-btn.mini {
  width: 30px;
  height: 30px;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.player-btn.subtle.active {
  color: var(--rose);
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.15);
}

.hidden { display: none !important; }

.hidden-media {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  top: -9999px;
}

/* ---------- ETRAFTA GEZEN, ENSESİNDEN TUTULABİLEN & KENDİNİ YALAYAN KEDİ ---------- */
.roaming-cat {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 75;
  width: 112px;
  height: 84px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  will-change: transform;
  transform: translate3d(120px, 420px, 0);
}

.roaming-cat.is-scruffed {
  cursor: grabbing;
  z-index: 95;
}

.cat-visual {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 10px;
  will-change: transform;
}

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

/* 3 Pozun Gösterim Kontrolü */
.cat-pose-scruff,
.cat-pose-groom {
  display: none;
}

.roaming-cat.is-scruffed .cat-pose-normal,
.roaming-cat.is-scruffed .cat-pose-groom {
  display: none;
}

.roaming-cat.is-scruffed .cat-pose-scruff {
  display: block;
  width: 104px;
  height: 124px;
  margin: -6px auto 0;
}

.roaming-cat.is-grooming .cat-pose-normal,
.roaming-cat.is-grooming .cat-pose-scruff {
  display: none;
}

.roaming-cat.is-grooming .cat-pose-groom {
  display: block;
}

.roaming-cat.facing-left .cat-pose-normal,
.roaming-cat.facing-left .cat-pose-groom {
  transform: scaleX(-1);
}

/* Normal Yürüyüş & Kuyruk Animasyonları */
.cat-tail {
  transform-origin: 35px 57px;
  animation: tailWag 2.6s ease-in-out infinite;
}

@keyframes tailWag {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(11deg); }
}

.cat-head {
  transform-origin: 90px 44px;
  animation: headNuzzle 4.2s ease-in-out infinite;
}

@keyframes headNuzzle {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(2.5deg); }
}

.roaming-cat.is-walking .cat-pose-normal {
  animation: catWalkBob 0.52s ease-in-out infinite;
}

.roaming-cat.facing-left.is-walking .cat-pose-normal {
  animation: catWalkBobLeft 0.52s ease-in-out infinite;
}

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

@keyframes catWalkBobLeft {
  0%, 100% { transform: scaleX(-1) translateY(0); }
  50% { transform: scaleX(-1) translateY(-2.4px); }
}

.cat-leg { transform-origin: center top; }

.roaming-cat.is-walking .leg-front-1,
.roaming-cat.is-walking .leg-back-2 {
  animation: legStepA 0.52s ease-in-out infinite;
}

.roaming-cat.is-walking .leg-front-2,
.roaming-cat.is-walking .leg-back-1 {
  animation: legStepB 0.52s ease-in-out infinite;
}

@keyframes legStepA {
  0%, 100% { transform: translateX(-2px) translateY(0); }
  50% { transform: translateX(3.5px) translateY(-3px); }
}

@keyframes legStepB {
  0%, 100% { transform: translateX(3.5px) translateY(-3px); }
  50% { transform: translateX(-2px) translateY(0); }
}

/* Ensesinden Tutulmuş Sarkık Yavru Kedi Patilerinin Sallanışı */
.scruff-arm-l { transform-origin: 45px 60px; animation: dangleSwingA 1.1s ease-in-out infinite alternate; }
.scruff-arm-r { transform-origin: 71px 60px; animation: dangleSwingB 1.1s ease-in-out infinite alternate; }
.scruff-leg-l { transform-origin: 48px 94px; animation: dangleSwingB 1.35s ease-in-out infinite alternate; }
.scruff-leg-r { transform-origin: 68px 94px; animation: dangleSwingA 1.35s ease-in-out infinite alternate; }
.scruff-tail  { transform-origin: 58px 102px; animation: dangleSwingA 1.5s ease-in-out infinite alternate; }

@keyframes dangleSwingA {
  0% { transform: rotate(-6deg); }
  100% { transform: rotate(7deg); }
}

@keyframes dangleSwingB {
  0% { transform: rotate(6deg); }
  100% { transform: rotate(-7deg); }
}

/* Kendini Yalama & Temizleme (Grooming) Animasyonu */
.groom-paw {
  transform-origin: 82px 62px;
  animation: groomPawWash 0.88s ease-in-out infinite;
}

.groom-head {
  transform-origin: 68px 46px;
  animation: groomHeadNod 0.88s ease-in-out infinite;
}

.groom-tongue {
  transform-origin: 71.5px 41px;
  animation: groomTongueLick 0.88s ease-in-out infinite;
}

.groom-tail {
  transform-origin: 36px 80px;
  animation: tailWag 3.2s ease-in-out infinite;
}

@keyframes groomPawWash {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  45% { transform: translate(-7px, -9px) rotate(-18deg); }
  65% { transform: translate(-4px, -4px) rotate(-9deg); }
}

@keyframes groomHeadNod {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  45% { transform: rotate(5.5deg) translateY(2.5px); }
}

@keyframes groomTongueLick {
  0%, 15%, 100% { transform: scaleY(0.15); opacity: 0; }
  45%, 65% { transform: scaleY(1.1); opacity: 0.95; }
}

/* Bırakıldığında Yumuşak "Pıt!" İniş Animasyonu */
.roaming-cat.is-landing .cat-visual {
  animation: catSoftLand 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes catSoftLand {
  0% { transform: scaleY(1.12) scaleX(0.92) translateY(-8px); }
  48% { transform: scaleY(0.86) scaleX(1.1) translateY(3px); }
  100% { transform: scaleY(1) scaleX(1) translateY(0); }
}

/* Gözler (Normal vs Göz Kırpma & Mutlu) */
.cat-eyes-happy { opacity: 0; }

.roaming-cat.is-blinking .cat-eyes-open,
.roaming-cat.is-happy-jump .cat-eyes-open {
  opacity: 0;
}

.roaming-cat.is-blinking .cat-eyes-happy,
.roaming-cat.is-happy-jump .cat-eyes-happy {
  opacity: 1;
}

/* Tıklayınca Sevinçli Zıplama */
.roaming-cat.is-happy-jump .cat-pose-normal {
  animation: catJumpRight 0.62s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.roaming-cat.facing-left.is-happy-jump .cat-pose-normal {
  animation: catJumpLeft 0.62s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

@keyframes catJumpRight {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-24px) scale(1.07); }
  74% { transform: translateY(-3px) scale(0.97); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes catJumpLeft {
  0% { transform: scaleX(-1) translateY(0) scale(1); }
  40% { transform: scaleX(-1) translateY(-24px) scale(1.07); }
  74% { transform: scaleX(-1) translateY(-3px) scale(0.97); }
  100% { transform: scaleX(-1) translateY(0) scale(1); }
}

/* Konuşma Balonu */
.cat-bubble {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(6px) scale(0.9);
  white-space: nowrap;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(24, 8, 17, 0.94);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.cat-bubble.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* ---------- Scroll Reveal Animasyonu ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ---------- iPhone & Android Tam Mobil Uyumluluk ---------- */
@media (max-width: 960px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 76px 0;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .site-header,
  .site-header.is-scrolled {
    width: calc(100% - 20px);
    padding: 9px 14px 10px;
    border-radius: 22px;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    background: rgba(16, 5, 12, 0.84);
    border: 1px solid rgba(243, 213, 160, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .brand-mark {
    font-family: var(--font-script);
    font-size: 1.48rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--gold-bright);
    white-space: nowrap;
    gap: 7px;
    text-shadow: 0 2px 14px rgba(243, 213, 160, 0.28);
  }

  .brand-heart {
    font-size: 0.92rem;
    color: var(--rose);
  }

  .site-nav {
    width: 100%;
    padding-top: 7px;
    border-top: 1px solid rgba(243, 213, 160, 0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
  }

  .site-nav a {
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #f3e4eb;
    white-space: nowrap;
    padding: 4px 6px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .site-nav a:active,
  .site-nav a:hover {
    background: rgba(243, 213, 160, 0.12);
    color: var(--gold-bright);
  }

  .hero {
    padding: calc(128px + env(safe-area-inset-top, 0px)) 16px 68px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 34px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
  }

  .counter-grid {
    grid-template-columns: repeat(2, minmax(118px, 160px));
    gap: 11px;
  }

  .counter-box {
    padding: 15px 10px;
  }

  /* 3D Zarf mobilde ferah ve ortalı */
  .envelope-3d {
    width: min(88vw, 340px);
    height: 224px;
  }

  .envelope-letter-peek {
    height: 175px;
  }

  .letter-card {
    padding: 32px 22px;
  }

  /* Timeline tek sütun */
  .timeline-list::before {
    left: 14px;
    transform: none;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 28px 42px;
  }

  .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 1px;
    right: auto;
  }

  .masonry-grid {
    column-count: 1;
  }

  .marquee-card {
    width: 196px;
    height: 148px;
  }

  /* Müzik Çalar: iPhone Home Indicator (Safe Area) üstünde şık sabit bar */
  .music-player {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding: 8px 12px 8px 8px;
    gap: 9px;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .vinyl-disc {
    width: 38px;
    height: 38px;
  }

  .music-info {
    max-width: none;
    flex: 1;
    min-width: 0;
  }

  .player-btn {
    width: 38px;
    height: 38px;
  }

  .player-btn.mini {
    width: 32px;
    height: 32px;
  }

  /* Kedi mobil boyutu */
  .roaming-cat {
    width: 94px;
    height: 72px;
  }

  .roaming-cat.is-scruffed .cat-pose-scruff {
    width: 88px;
    height: 105px;
  }

  .cat-bubble {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  /* Açılış Lale Kartı (iPhone SE / küçük ekranlarda bile tek ekrana tam sığar) */
  .intro-card {
    padding: 24px 20px 30px;
  }

  .intro-tulip-stage {
    width: 185px;
    height: 215px;
    margin: -6px auto 6px;
  }

  .tulip-halo {
    width: 180px;
    height: 180px;
  }

  .tulip-ring {
    width: 162px;
    height: 162px;
  }

  .white-tulip-svg {
    width: 180px;
    height: 215px;
  }

  .intro-subtitle {
    font-size: 0.9rem;
    margin-bottom: 22px;
  }

  /* Lightbox mobilde parmakla kaydırmaya hazır */
  .lightbox {
    padding: calc(74px + env(safe-area-inset-top, 0px)) 14px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .lightbox-stage,
  .lightbox-stage img {
    max-height: 54vh;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    top: auto;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    transform: none;
  }

  .lightbox-nav.prev { left: 20px; }
  .lightbox-nav.next { right: 20px; }

  .site-footer {
    padding: 48px 18px calc(136px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 390px) {
  .brand-mark {
    font-size: 1.35rem;
  }

  .site-nav a {
    font-size: 0.69rem;
    padding: 4px 4px;
  }
}

/* ============================================================
   PERFORMANS KATMANI (v6) — Web / iOS / Android
   ============================================================ */

/* Kartlar kendi içinde boyansın, sayfanın geri kalanını yeniden çizdirmesin */
.photo-card,
.marquee-card,
.timeline-card,
.reason-card {
  contain: layout paint;
}

.photo-frame img {
  background: #170711;
}

/* Lightbox'ta fotoğraf geçişi: yumuşak çapraz solma */
.lightbox-stage img {
  transition: opacity 0.28s ease;
  will-change: opacity, transform;
}

.lightbox-stage img.is-swapping {
  opacity: 0;
}

/* Dokunmatik cihazlarda "yapışkan hover" efektlerini kapat (gereksiz yeniden çizim yok) */
@media (hover: none) {
  .photo-card:hover,
  .timeline-card:hover,
  .reason-card:hover,
  .marquee-card:hover,
  .envelope-wrapper:hover .envelope-3d {
    transform: none;
    box-shadow: none;
  }

  .photo-card:hover .photo-frame img,
  .timeline-card:hover .timeline-thumb img {
    transform: none;
  }
}

/* iOS & Android: canlı arka plan bulanıklığı (backdrop-filter) kaydırırken
   her karede yeniden hesaplanır ve kasmanın ana sebeplerindendir.
   Mobilde bunun yerine opak, şık bir cam görünümü kullanılır. */
@media (max-width: 720px), (hover: none) {
  .site-header,
  .site-header.is-scrolled,
  .music-player {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .site-header,
  .site-header.is-scrolled {
    background: rgba(18, 6, 13, 0.94);
  }

  .music-player {
    background: rgba(22, 7, 16, 0.96);
  }

  /* Büyük arka plan ışıklarını sabitle: 3 dev katmanın sürekli hareketi mobil GPU'yu yorar */
  .ambient-orb {
    animation: none;
    will-change: auto;
  }

  .tulip-ring {
    animation: none;
  }
}

/* Hareket azaltma tercihi olan cihazlar */
@media (prefers-reduced-motion: reduce) {
  .ambient-orb,
  .marquee-track,
  .tulip-halo,
  .tulip-ring,
  .tulip-sparkles,
  .footer-heart,
  .wax-seal {
    animation: none !important;
  }
}
