/* =============================================================
   Our Love Story — style.css
   Premium romantic design system
   Dark / deep-red glassmorphism aesthetic
============================================================= */

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Color palette */
  --clr-bg:           #090909;
  --clr-bg-2:         #111111;
  --clr-surface:      rgba(255,255,255,0.04);
  --clr-surface-hover:rgba(255,255,255,0.07);
  --clr-border:       rgba(255,255,255,0.08);
  --clr-border-glow:  rgba(185,28,28,0.35);

  --clr-red:          #b91c1c;
  --clr-red-bright:   #ef4444;
  --clr-red-dim:      #7f1d1d;
  --clr-red-glow:     rgba(185,28,28,0.18);

  --clr-gold:         #c8a96e;
  --clr-gold-dim:     rgba(200,169,110,0.15);

  --clr-text:         #f5f5f5;
  --clr-text-muted:   #a1a1aa;
  --clr-text-faint:   #52525b;

  /* Typography */
  --font-serif:       'Cormorant Garamond', Georgia, serif;
  --font-display:     'Playfair Display', Georgia, serif;
  --font-sans:        'Inter', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs:  .5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;

  /* Radii */
  --r-sm:  .5rem;
  --r-md:  1rem;
  --r-lg:  1.5rem;
  --r-xl:  2rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-card:  0 8px 40px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-glow:  0 0 30px rgba(185,28,28,0.15);
  --shadow-glow-strong: 0 0 60px rgba(185,28,28,0.3);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16,1,0.3,1);
  --ease-in-out:   cubic-bezier(0.4,0,0.2,1);
  --dur-fast:  200ms;
  --dur-med:   400ms;
  --dur-slow:  700ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }

/* ─── UTILITY ────────────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

/* ─── GLASS CARD ─────────────────────────────────────────────── */
.glass-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: var(--shadow-card);
  transition: border-color var(--dur-med) var(--ease-out-expo),
              transform var(--dur-med) var(--ease-out-expo),
              box-shadow var(--dur-med) var(--ease-out-expo);
}

.glass-card:hover {
  border-color: var(--clr-border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* ─── AURORA ─────────────────────────────────────────────────── */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: aurora-drift 18s ease-in-out infinite;
}

.aurora-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(185,28,28,0.35) 0%, transparent 70%);
  top: -200px; left: -100px;
  animation-delay: 0s;
}
.aurora-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(109,40,217,0.2) 0%, transparent 70%);
  top: 30%; right: -150px;
  animation-delay: -6s;
}
.aurora-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(185,28,28,0.2) 0%, transparent 70%);
  bottom: -100px; left: 40%;
  animation-delay: -12s;
}

@keyframes aurora-drift {
  0%,100% { opacity: .6; transform: translate(0,0) scale(1); }
  33%      { opacity: .9; transform: translate(60px,-40px) scale(1.1); }
  66%      { opacity: .5; transform: translate(-40px,60px) scale(0.95); }
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2.2rem;
  background: linear-gradient(135deg, var(--clr-red) 0%, #991b1b 100%);
  color: #fff;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 4px 24px rgba(185,28,28,0.45);
  transition: transform var(--dur-fast) var(--ease-out-expo),
              box-shadow var(--dur-fast) var(--ease-out-expo),
              background var(--dur-fast);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 36px rgba(185,28,28,0.65); }
.btn-primary:active { transform: scale(.98); }

.btn-ghost {
  display: inline-block;
  padding: .8rem 2rem;
  border: 1px solid var(--clr-border-glow);
  border-radius: var(--r-full);
  color: var(--clr-text-muted);
  font-size: .9rem;
  letter-spacing: .04em;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.btn-ghost:hover { border-color: var(--clr-red-bright); color: #fff; background: var(--clr-red-glow); }

.btn-arrow { width: 1rem; height: 1rem; transition: transform var(--dur-fast); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* ─── SECTION COMMON ─────────────────────────────────────────── */
section { position: relative; width: 100%; }

.section-header { text-align: center; margin-bottom: var(--space-lg); }

.section-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-red-bright);
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  background: linear-gradient(135deg, #fff 0%, var(--clr-text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  margin-top: 1rem;
  color: var(--clr-text-muted);
  font-size: .9rem;
}
.section-subtitle code {
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: .1em .35em;
  font-size: .85em;
  color: var(--clr-gold);
}

/* ─── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.reveal.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal.visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal.visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal.visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal.visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal.visible > *:nth-child(6) { transition-delay: 400ms; }

/* ─── FADE-IN ANIMATIONS (intro) ─────────────────────────────── */
.fade-in-up { opacity: 0; transform: translateY(30px); }

.delay-1 { animation: fadeInUp .9s var(--ease-out-expo) .3s forwards; }
.delay-2 { animation: fadeInUp 1s var(--ease-out-expo) .7s forwards; }
.delay-3 { animation: fadeInUp .9s var(--ease-out-expo) 1.1s forwards; }
.delay-4 { animation: fadeInUp .8s var(--ease-out-expo) 1.5s forwards; }
.delay-5 { animation: fadeInUp .8s var(--ease-out-expo) 2s forwards; }

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

/* ═══════════════════════════════════════════════════════════════
   INTRO SCREEN
═══════════════════════════════════════════════════════════════ */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--clr-bg);
  overflow: hidden;
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
}
.intro-screen.exiting {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.floating-hearts .fh {
  position: absolute;
  bottom: -60px;
  font-size: 1.4rem;
  opacity: 0;
  animation: floatHeart linear infinite;
  user-select: none;
}

@keyframes floatHeart {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg) scale(.8); }
  10%  { opacity: .7; }
  90%  { opacity: .4; }
  100% { opacity: 0; transform: translateY(-110vh) rotate(25deg) scale(1.2); }
}

/* Ambient Flickering Candles (Option 4) */
.ambient-candle {
  position: absolute;
  bottom: 0;
  width: 120px;
  height: 200px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  animation: candleEntrance 1.5s var(--ease-out-expo) forwards;
  opacity: 0;
}
.candle-left {
  left: 4%;
}
.candle-right {
  right: 4%;
}

/* Golden Sparks rising from the flame */
.candle-sparks {
  position: absolute;
  bottom: 120px; /* starts directly above wick/base flame */
  width: 30px;
  height: 120px;
  pointer-events: none;
  z-index: 3;
}
.candle-sparks span {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: 3px;
  background: var(--clr-gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--clr-gold), 0 0 10px var(--clr-red-bright);
  opacity: 0;
  animation: riseSpark 3s infinite linear;
}
.candle-sparks span:nth-child(1) {
  animation-duration: 2.6s;
  animation-delay: 0.2s;
  left: 45%;
  --drift: -8px;
  transform: scale(0.8);
}
.candle-sparks span:nth-child(2) {
  animation-duration: 3.2s;
  animation-delay: 1.1s;
  left: 55%;
  --drift: 12px;
  transform: scale(1.1);
}
.candle-sparks span:nth-child(3) {
  animation-duration: 2.2s;
  animation-delay: 1.8s;
  left: 48%;
  --drift: -3px;
  transform: scale(0.6);
}
.candle-sparks span:nth-child(4) {
  animation-duration: 3.6s;
  animation-delay: 2.5s;
  left: 42%;
  --drift: 9px;
  transform: scale(1);
}

@keyframes riseSpark {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-110px) translateX(var(--drift, 8px)) scale(0.2);
    opacity: 0;
  }
}


/* Flame Halo (Glow reflecting off environmental dark borders) */
.candle-halo {
  position: absolute;
  bottom: 80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.16) 0%, rgba(200, 169, 110, 0.06) 45%, transparent 70%);
  filter: blur(15px);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: candleGlowFlicker 3s infinite alternate ease-in-out;
}

/* Wax Candle Base */
.candle-holder {
  position: relative;
  width: 50px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.candle-wax {
  position: absolute;
  bottom: 0;
  width: 32px;
  height: 75px;
  background: linear-gradient(180deg, #d4af37 0%, #a88523 30%, #4a3b10 100%);
  border-radius: 6px 6px 3px 3px;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.7), 
    inset 0 4px 6px rgba(255, 255, 255, 0.15),
    0 0 10px rgba(212, 175, 55, 0.2);
}
.candle-wax::before {
  /* Melted wax drips */
  content: '';
  position: absolute;
  top: 10px;
  left: 6px;
  width: 4px;
  height: 20px;
  background: #a88523;
  border-radius: 2px;
  box-shadow: 16px 8px 0 -1px #a88523, 8px 15px 0 -1px #d4af37;
}

/* Wick */
.candle-wick {
  position: absolute;
  bottom: 74px;
  width: 2px;
  height: 12px;
  background: #111;
  border-radius: 1px;
}

/* Flickering Flame */
.candle-flame {
  position: absolute;
  bottom: 84px;
  width: 20px;
  height: 38px;
  transform-origin: center bottom;
  animation: flameFlicker 0.15s infinite alternate ease-in-out;
}
.flame-core {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 22px;
  background: linear-gradient(180deg, #fff 0%, #ffdb70 40%, #ff6b6b 90%, #3b82f6 100%);
  border-radius: 50% 50% 20% 20%;
  box-shadow: 0 0 10px rgba(255, 219, 112, 0.8);
}
.flame-outer {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 36px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.5) 0%, rgba(212, 175, 55, 0.2) 60%, transparent 100%);
  border-radius: 50% 50% 20% 20%;
  filter: blur(1px);
  mix-blend-mode: screen;
}

/* Ambient Candle Keyframes */
@keyframes candleEntrance {
  to { opacity: 1; }
}
@keyframes candleGlowFlicker {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.85;
  }
  25% {
    transform: scale(0.95) translate(-3px, 2px);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.05) translate(2px, -3px);
    opacity: 0.95;
  }
  75% {
    transform: scale(0.98) translate(-1px, -1px);
    opacity: 0.8;
  }
}
@keyframes flameFlicker {
  0% {
    transform: scaleX(1) scaleY(1) rotate(-1deg);
  }
  25% {
    transform: scaleX(0.96) scaleY(1.03) rotate(0.5deg);
  }
  50% {
    transform: scaleX(1.03) scaleY(0.95) rotate(-0.5deg);
  }
  75% {
    transform: scaleX(0.95) scaleY(1.04) rotate(1deg);
  }
  100% {
    transform: scaleX(1.02) scaleY(0.98) rotate(-0.8deg);
  }
}

/* Responsiveness for intro page details */
@media (max-width: 900px) {
  .ambient-candle {
    width: 90px;
    height: 150px;
  }
  .candle-left {
    left: 2%;
  }
  .candle-right {
    right: 2%;
  }
  .candle-wax {
    width: 24px;
    height: 55px;
  }
  .candle-wick {
    bottom: 54px;
  }
  .candle-flame {
    bottom: 62px;
    width: 16px;
    height: 30px;
  }
  .candle-halo {
    bottom: 50px;
    width: 180px;
    height: 180px;
  }
}
@media (max-width: 600px) {
  /* Hide candles on very small mobiles to avoid visual clutter near CTA button */
  .ambient-candle {
    display: none !important;
  }
}

.intro-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 700px;
  padding: var(--space-md);
}

.intro-eyebrow {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clr-red-bright);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.intro-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff 0%, #d1d5db 50%, var(--clr-red-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.intro-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--clr-text-muted);
  margin-bottom: 3rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--clr-red));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .3; transform: scaleY(1); }
  50%      { opacity: 1; transform: scaleY(1.2); }
}

/* ═══════════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════════ */
.glass-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(9,9,9,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--dur-med);
}
.glass-nav.scrolled { background: rgba(9,9,9,0.9); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}
.heart-icon { color: var(--clr-red-bright); animation: heartBeat 1.6s ease-in-out infinite; }

@keyframes heartBeat {
  0%,100% { transform: scale(1); }
  14%      { transform: scale(1.25); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.15); }
  70%      { transform: scale(1); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  position: relative;
  transition: color var(--dur-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--clr-red-bright);
  transition: width var(--dur-med) var(--ease-out-expo);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--clr-text-muted);
  border-radius: 2px;
  transition: transform var(--dur-med) var(--ease-out-expo), opacity var(--dur-fast);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════════════════════ */
.main-content { opacity: 0; transition: opacity .6s var(--ease-out-expo); }
.main-content.visible { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem var(--space-md) var(--space-lg);
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 40%, rgba(185,28,28,0.1) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(109,40,217,0.07) 0%, transparent 50%);
}
.hero-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(185,28,28,0.22) 0%, transparent 70%);
  top: -200px; right: -150px;
  opacity: .8;
  animation: aurora-drift 20s ease-in-out infinite;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(109,40,217,0.15) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  opacity: .6;
  animation: aurora-drift 25s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  text-align: center;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 2rem;
}
.hero-headline em {
  font-style: italic;
  background: linear-gradient(90deg, var(--clr-red-bright), var(--clr-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-message {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--clr-text-muted);
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.9;
}

/* ═══════════════════════════════════════════════════════════════
   COUNTER SECTION
═══════════════════════════════════════════════════════════════ */
.counter-section {
  padding: var(--space-xl) var(--space-md);
  background: linear-gradient(180deg, var(--clr-bg) 0%, var(--clr-bg-2) 100%);
}
.counter-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.counter-card {
  padding: 2rem 1rem;
  text-align: center;
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 0;
}
.counter-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--clr-red-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.counter-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--clr-text-faint);
}

/* ═══════════════════════════════════════════════════════════════
   GRID TIMELINE SECTION
═══════════════════════════════════════════════════════════════ */
.timeline-section {
  padding: var(--space-xl) var(--space-md);
  background: var(--clr-bg);
}

.timeline-grid-wrap {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 var(--space-md);
}

/* Grid of memories: 4 columns side-by-side on desktop, wraps automatically */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  z-index: 2;
  position: relative;
}

/* Individual Card Wrapper */
.timeline-grid-item {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s var(--ease-out-expo);
}

.timeline-grid-item:hover {
  transform: translateY(-5px);
}

/* Connecting bar at the top of each card for a glowing timeline flow */
.timeline-grid-connector {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-gold) 0%, var(--clr-red-bright) 100%);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
  border-radius: 2px;
  margin-bottom: 1rem;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.timeline-grid-item:hover .timeline-grid-connector {
  transform: scaleX(1.03);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
}

/* Card Styling */
.timeline-grid-card {
  padding: 1.75rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* A glowing dot/icon inside each card header */
.timeline-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.timeline-grid-date {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--clr-gold);
  letter-spacing: 0.08em;
}

.timeline-grid-icon {
  font-size: 1.25rem;
  filter: drop-shadow(0 0 5px rgba(200, 169, 110, 0.3));
}

.timeline-grid-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.timeline-grid-body {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--clr-text-muted);
  margin: 0;
}

/* Tablet & Mobile responsive adjustments */
@media (max-width: 1024px) {
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .timeline-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY SECTION
═══════════════════════════════════════════════════════════════ */
.gallery-section {
  padding: var(--space-xl) var(--space-md);
  background: var(--clr-bg-2);
}
.masonry-gallery {
  column-count: 3;
  column-gap: 1.8rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  padding: 12px 12px 46px 12px; /* Vintage polaroid margins */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255,255,255,0.05);
  position: relative;
  cursor: pointer;
  transition: all var(--dur-med) var(--ease-out-expo);
  display: block;
  transform: rotate(var(--rot, 0deg));
  transform-origin: center;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
  pointer-events: none;
}

.polaroid-photo {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  background: #000;
}
.gallery-item img, .gallery-item video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out-expo), filter var(--dur-med);
  filter: brightness(0.82) saturate(1.05);
}

.gallery-item:hover {
  transform: scale(1.05) rotate(0deg) !important;
  z-index: 10;
  border-color: rgba(200, 169, 110, 0.35);
  box-shadow: 0 20px 50px rgba(185, 28, 28, 0.25), 0 10px 25px rgba(0, 0, 0, 0.6);
}

.gallery-item:hover img, .gallery-item:hover video {
  transform: scale(1.04);
  filter: brightness(1) saturate(1.2);
}

/* Cursive handwritten caption at bottom of polaroid */
.gallery-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  text-align: center;
  color: var(--clr-text-muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color var(--dur-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item:hover .gallery-caption {
  color: var(--clr-gold);
}

/* Empty gallery placeholder */
.gallery-placeholder {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--clr-text-faint);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

/* Birthday Gallery Grid - Side by Side equal and neat layout */
.birthday-gallery-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px dashed rgba(200, 169, 110, 0.2);
}
.birthday-gallery-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--clr-gold);
  text-align: center;
  margin-bottom: 2.2rem;
  letter-spacing: 0.06em;
}
.birthday-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .birthday-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
}
@media (max-width: 600px) {
  .birthday-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (max-width: 400px) {
  .birthday-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: lightboxIn .3s var(--ease-out-expo);
}
@keyframes lightboxIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox[hidden] { display: none !important; }

.lightbox-img-wrap {
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox-img, .lightbox-video {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 20px 80px rgba(0,0,0,0.7);
  outline: none;
}
.lightbox-caption {
  color: var(--clr-text-muted);
  font-style: italic;
  font-size: .9rem;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 1.5rem;
  color: var(--clr-text-muted);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.lightbox-close:hover { background: var(--clr-red); color: #fff; }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  font-size: 3rem;
  color: rgba(255,255,255,0.4);
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { color: #fff; background: rgba(185,28,28,0.4); }

/* ═══════════════════════════════════════════════════════════════
   LOVE NOTES SECTION
═══════════════════════════════════════════════════════════════ */
.notes-section {
  padding: var(--space-xl) var(--space-md);
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.note-card {
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.note-card::before {
  content: '"';
  position: absolute;
  top: -1rem; left: 1rem;
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--clr-red-glow);
  line-height: 1;
  pointer-events: none;
  transition: color var(--dur-med);
}
.note-card:hover::before { color: rgba(185,28,28,0.35); }

.note-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.note-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.note-body {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--clr-text-muted);
  line-height: 1.85;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   MUSIC SECTION
═══════════════════════════════════════════════════════════════ */
.music-section {
  padding: var(--space-xl) var(--space-md);
  background: var(--clr-bg-2);
  overflow: hidden;
}
.music-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(185,28,28,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.music-player {
  max-width: 480px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.album-art {
  position: relative;
  width: 180px; height: 180px;
}
.album-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #3d0000 0%, #1a0a0a 50%, #0d0d0d 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  box-shadow: 0 0 40px rgba(185,28,28,0.4), inset 0 0 30px rgba(0,0,0,0.5);
}

/* KK harfleri */
.kk-initials {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--clr-red-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
  line-height: 1;
}

/* Müzik dalgası */
.kk-waves {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}
.kk-waves span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--clr-red), var(--clr-red-bright));
  animation: kkWave 1.2s ease-in-out infinite;
  opacity: 0.7;
}
.kk-waves span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.kk-waves span:nth-child(2) { height: 16px; animation-delay: .15s; }
.kk-waves span:nth-child(3) { height: 22px; animation-delay: .3s; }
.kk-waves span:nth-child(4) { height: 14px; animation-delay: .45s; }
.kk-waves span:nth-child(5) { height: 8px;  animation-delay: .6s; }

@keyframes kkWave {
  0%,100% { transform: scaleY(1);   opacity: .5; }
  50%      { transform: scaleY(1.6); opacity: 1; }
}

/* Çalınca dalgalar hızlansın */
.album-art.playing .kk-waves span {
  animation-duration: .7s;
  opacity: 1;
}

.music-note { font-size: 4rem; animation: musicPulse 2s ease-in-out infinite; }
@keyframes musicPulse {
  0%,100% { transform: scale(1); opacity: .7; }
  50%      { transform: scale(1.1); opacity: 1; }
}

.track-info { text-align: center; }
.track-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: .25rem; }
.track-artist { color: var(--clr-text-muted); font-size: .9rem; }
.track-auto-label {
  margin-top: .4rem;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-red-bright);
  opacity: .7;
  font-weight: 500;
}

.album-vinyl {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #1a1a1a 0%, #0a0a0a 25%, #1a1a1a 50%, #0a0a0a 75%, #1a1a1a 100%);
  z-index: -1;
  animation: vinyl-spin 8s linear infinite paused;
}
.album-art.playing .album-vinyl { animation-play-state: running; }
.album-art.playing { animation: album-throb 3s ease-in-out infinite; }

@keyframes vinyl-spin { to { transform: rotate(360deg); } }
@keyframes album-throb {
  0%,100% { box-shadow: 0 0 30px rgba(185,28,28,0.3); }
  50%      { box-shadow: 0 0 70px rgba(185,28,28,0.7); }
}

.progress-wrap { width: 100%; }
.progress-bar {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: .5rem;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-red), var(--clr-red-bright));
  border-radius: 2px;
  width: 0%;
  transition: width .3s linear;
}
.progress-thumb {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  left: 0%;
  box-shadow: 0 0 6px rgba(185,28,28,0.5);
  transition: left .3s linear;
}
.time-labels {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--clr-text-faint);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.ctrl-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--clr-text-muted);
  transition: color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.ctrl-btn svg { width: 20px; height: 20px; }
.ctrl-btn:hover { color: #fff; background: rgba(255,255,255,0.07); }
.ctrl-btn:active { transform: scale(.92); }

.ctrl-play {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--clr-red), #991b1b);
  color: #fff;
  box-shadow: 0 4px 20px rgba(185,28,28,0.4);
}
.ctrl-play svg { width: 24px; height: 24px; }
.ctrl-play:hover { background: linear-gradient(135deg, var(--clr-red-bright), var(--clr-red)); box-shadow: 0 6px 30px rgba(185,28,28,0.6); }

.volume-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
}
.vol-icon { width: 18px; height: 18px; color: var(--clr-text-faint); flex-shrink: 0; }
.volume-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  outline: none;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--clr-red-bright);
  cursor: pointer;
}
.music-hint {
  font-size: .75rem;
  color: var(--clr-text-faint);
  text-align: center;
  font-style: italic;
}
.music-hint code {
  background: rgba(255,255,255,0.06);
  padding: .1em .35em;
  border-radius: 3px;
  color: var(--clr-gold);
}

/* ─── PLAYLIST — 3 kart yan yana ─────────────────────────── */
.playlist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 0 var(--space-md);
}

.pl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: border-color var(--dur-med) var(--ease-out-expo),
              transform var(--dur-med) var(--ease-out-expo),
              box-shadow var(--dur-med) var(--ease-out-expo);
  overflow: hidden;
}
.pl-card:hover {
  transform: translateY(-6px);
  border-color: rgba(185,28,28,0.5);
  box-shadow: 0 16px 50px rgba(185,28,28,0.2), var(--shadow-card);
}
.pl-card:focus-visible { outline: 2px solid var(--clr-red-bright); outline-offset: 4px; }

/* Aktif kart */
.pl-card.pl-active {
  border-color: rgba(185,28,28,0.6) !important;
  background: rgba(185,28,28,0.08) !important;
  box-shadow: 0 0 40px rgba(185,28,28,0.2), var(--shadow-card) !important;
}
.pl-card.pl-active::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-red-bright), transparent);
}

/* Sanat */
.pl-art {
  position: relative;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3d0000 0%, #1a0a0a 60%, #0d0d0d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  box-shadow: 0 0 24px rgba(185,28,28,0.35), inset 0 0 16px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.pl-initials {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--clr-red-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
/* Dalgalar (sadece aktifken görünür) */
.pl-playing-anim {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  opacity: 0;
  transition: opacity .3s;
}
.pl-card.pl-active .pl-playing-anim { opacity: 1; }
.pl-playing-anim span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--clr-red-bright);
  animation: plWave 1s ease-in-out infinite;
}
.pl-playing-anim span:nth-child(1) { height: 6px;  animation-delay: 0s; }
.pl-playing-anim span:nth-child(2) { height: 12px; animation-delay: .18s; }
.pl-playing-anim span:nth-child(3) { height: 9px;  animation-delay: .36s; }
.pl-playing-anim span:nth-child(4) { height: 14px; animation-delay: .54s; }
@keyframes plWave {
  0%,100% { transform: scaleY(1);   opacity: .6; }
  50%      { transform: scaleY(1.8); opacity: 1; }
}
/* Çalan kart daha hızlı */
.pl-card.pl-active .pl-playing-anim span { animation-duration: .65s; }

.pl-info { flex: 1; }
.pl-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .2rem;
  line-height: 1.3;
}
.pl-artist {
  font-size: .78rem;
  color: var(--clr-text-muted);
}
.pl-badge {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-red-bright);
  border: 1px solid rgba(185,28,28,0.4);
  border-radius: var(--r-full);
  padding: .2rem .6rem;
}
.pl-play-icon {
  font-size: .85rem;
  color: var(--clr-text-faint);
  transition: color var(--dur-fast), transform var(--dur-fast);
}
.pl-card:hover .pl-play-icon { color: var(--clr-red-bright); transform: scale(1.3); }

/* ─── MÜZİK ÇUBUĞU (altta) ──────────────────────────────── */
.music-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1.75rem;
  flex-wrap: wrap;
}

.bar-art {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3d0000 0%, #1a0a0a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(185,28,28,0.4);
}
.bar-initials {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--clr-red-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bar-waves {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 10px;
}
.bar-waves span {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: var(--clr-red-bright);
  animation: plWave .8s ease-in-out infinite;
  opacity: .8;
}
.bar-waves span:nth-child(1) { height: 4px;  animation-delay: 0s; }
.bar-waves span:nth-child(2) { height: 8px;  animation-delay: .12s; }
.bar-waves span:nth-child(3) { height: 10px; animation-delay: .24s; }
.bar-waves span:nth-child(4) { height: 7px;  animation-delay: .36s; }
.bar-waves span:nth-child(5) { height: 4px;  animation-delay: .48s; }

.bar-info { min-width: 0; flex: 0 0 auto; }
.bar-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.bar-artist { font-size: .75rem; color: var(--clr-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }

.bar-controls {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.bar-progress-wrap { flex: 1; min-width: 120px; }
.bar-vol { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; min-width: 100px; }

/* Responsive */
@media (max-width: 700px) {
  .playlist { grid-template-columns: 1fr; }
  .music-bar { flex-direction: column; align-items: stretch; }
  .bar-title, .bar-artist { max-width: none; }
}
@media (max-width: 900px) and (min-width: 701px) {
  .playlist { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .pl-card { padding: 1.25rem .75rem; }
}

/* ═══════════════════════════════════════════════════════════════
   FAVORITE SONG SECTION
═══════════════════════════════════════════════════════════════ */
.fav-song-section {
  padding: var(--space-xl) var(--space-md);
  position: relative;
  overflow: hidden;
}
.fav-song-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(185,28,28,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.fav-song-container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem;
  align-items: center;
}
.fav-song-video-wrap {
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--clr-border);
  background: #000;
  aspect-ratio: 16 / 9;
}
.fav-song-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fav-song-info {
  display: flex;
  flex-direction: column;
}
.fav-song-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, var(--clr-red-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .25rem;
}
.fav-song-artist {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}
.fav-song-divider {
  width: 60px;
  height: 2px;
  background: var(--clr-red-bright);
  margin: 1.5rem 0;
}
.fav-song-description {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--clr-text-muted);
  line-height: 1.85;
}

@media (max-width: 900px) {
  .fav-song-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
  .fav-song-title {
    font-size: 1.8rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   OUR SKY SECTION (YILDIZ HARİTASI)
═══════════════════════════════════════════════════════════════ */
.our-sky-section {
  padding: var(--space-xl) var(--space-md);
  position: relative;
  overflow: hidden;
  background: var(--clr-bg);
}
.sky-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(185, 28, 28, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.sky-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
  align-items: center;
}
.sky-map-wrap {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle, #0c0812 0%, #030206 100%);
  border: 1px solid rgba(200, 169, 110, 0.25);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 30px rgba(200, 169, 110, 0.08);
  padding: 1.5rem;
  aspect-ratio: 1 / 1;
}
.sky-map-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.star {
  transform-origin: center;
  animation: twinkle 3s ease-in-out infinite;
}
.twinkle-fast { animation-duration: 1.6s; }
.twinkle-slow { animation-duration: 4.5s; }
.twinkle-normal { animation-duration: 2.8s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); filter: drop-shadow(0 0 1px rgba(255,255,255,0.4)); }
  50% { opacity: 1; transform: scale(1.25); filter: drop-shadow(0 0 6px rgba(255,255,255,1)); }
}

.sky-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sky-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-style: italic;
  line-height: 1.8;
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
  position: relative;
}
.sky-quote::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(200, 169, 110, 0.15);
  position: absolute;
  top: -2.5rem; left: -1.5rem;
}
.sky-coordinates {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.sky-coord-item {
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-gold);
  background: var(--clr-gold-dim);
  border: 1px solid rgba(200, 169, 110, 0.2);
  padding: .5rem 1.25rem;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: fit-content;
}

@media (max-width: 800px) {
  .sky-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 1.75rem;
  }
  .sky-map-wrap {
    max-width: 320px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FUTURE DREAMS SECTION
═══════════════════════════════════════════════════════════════ */
.dreams-section {
  padding: var(--space-xl) var(--space-md);
}
.dreams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.dream-card {
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  cursor: default;
}
.dream-check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--clr-red-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  color: transparent;
  transition: border-color var(--dur-med), background var(--dur-med), color var(--dur-med);
  margin-top: .15rem;
}
.dream-card.done .dream-check {
  border-color: var(--clr-red-bright);
  background: var(--clr-red);
  color: #fff;
}
.dream-card:hover .dream-check:not(.done .dream-check) { border-color: var(--clr-red); }

.dream-icon { font-size: 1.5rem; }
.dream-body { flex: 1; }
.dream-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.dream-desc { color: var(--clr-text-muted); font-size: .9rem; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════════
   SECRET SECTION
═══════════════════════════════════════════════════════════════ */
.secret-section {
  padding: var(--space-xl) var(--space-md);
  background: var(--clr-bg-2);
  overflow: hidden;
}
.secret-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(185,28,28,0.1) 0%, transparent 65%);
}
.secret-lock {
  max-width: 460px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
}
.lock-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  transition: transform var(--dur-med) var(--ease-out-expo);
}
.secret-label {
  display: block;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
}
.secret-input-wrap {
  display: flex;
  gap: .75rem;
  justify-content: center;
}
.secret-input {
  flex: 1;
  max-width: 200px;
  padding: .75rem 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-full);
  color: var(--clr-text);
  font-size: .95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--dur-fast);
}
.secret-input:focus { border-color: var(--clr-red); }
.secret-input::placeholder { color: var(--clr-text-faint); }
.secret-error {
  margin-top: 1rem;
  color: var(--clr-red-bright);
  font-size: .85rem;
  min-height: 1.2em;
}
.secret-lock.shake { animation: shake .4s var(--ease-in-out); }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-6px); }
  80%      { transform: translateX(6px); }
}

/* Secret Letter */
.secret-letter {
  max-width: 640px;
  margin: 2rem auto 0;
  padding: 3.5rem 3rem;
  position: relative;
  animation: letterReveal .8s var(--ease-out-expo);
}
@keyframes letterReveal {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.letter-header { text-align: center; margin-bottom: 2rem; }
.letter-seal { font-size: 3rem; display: block; margin-bottom: 1rem; animation: sealBounce .6s var(--ease-out-expo); }
@keyframes sealBounce { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.letter-title { font-family: var(--font-display); font-size: 1.8rem; font-style: italic; }
.letter-body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 2;
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
}
.letter-body p { margin-bottom: 1.2em; }
.letter-footer { margin-bottom: 2rem; }
.letter-sign { color: var(--clr-text-muted); font-style: italic; margin-bottom: .25rem; }

/* Love Counter Section */
.love-counter-wrap {
  text-align: center;
  margin: 2.5rem 0 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}
.love-counter-divider {
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
  margin: 0 auto 1.5rem;
}
.love-counter-prompt {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  margin-bottom: 1.25rem;
}
.love-counter-btn {
  font-size: .85rem;
  padding: .7rem 1.8rem;
  margin-bottom: 1.5rem;
  z-index: 2;
  position: relative;
}
.love-counter-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: counterPop .4s var(--ease-out-expo);
}
@keyframes counterPop {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}
.love-counter-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--clr-red-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .25rem;
  font-variant-numeric: tabular-nums;
  display: block;
}
.love-counter-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-text-faint);
}

/* Bana Bir Not Bırak Section */
.user-notes-wrap {
  text-align: left;
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--r-md);
}
.user-notes-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--clr-text);
  text-align: center;
}
.user-notes-prompt {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--clr-text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}
.user-notes-input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.user-note-textarea {
  width: 100%;
  height: 90px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-sm);
  padding: .75rem 1rem;
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: .92rem;
  outline: none;
  resize: none;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.user-note-textarea:focus {
  border-color: var(--clr-red-bright);
  background: rgba(185, 28, 28, 0.03);
}
.user-note-textarea::placeholder {
  color: var(--clr-text-faint);
}
.user-note-submit {
  align-self: center;
  font-size: .85rem;
  padding: .65rem 1.6rem;
}
.user-notes-list-wrap {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
}
.user-notes-list-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-align: center;
  color: var(--clr-gold);
}
.user-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  max-height: 320px;
  overflow-y: auto;
  padding-right: .5rem;
}
/* Scrollbar styling */
.user-notes-grid::-webkit-scrollbar {
  width: 4px;
}
.user-notes-grid::-webkit-scrollbar-track {
  background: transparent;
}
.user-notes-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
.user-notes-grid::-webkit-scrollbar-thumb:hover {
  background: var(--clr-red-bright);
}

.user-note-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 2.5px solid var(--clr-red-bright);
  border-radius: var(--r-sm);
  animation: noteAppear .5s var(--ease-out-expo) forwards;
  position: relative;
}
@keyframes noteAppear {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.user-note-body {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--clr-text-muted);
  margin-bottom: .6rem;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.user-note-date {
  font-size: .72rem;
  color: var(--clr-text-faint);
  display: block;
  text-align: right;
  font-weight: 500;
}
.user-note-empty {
  grid-column: 1/-1;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--clr-text-faint);
  font-size: .95rem;
  padding: 2rem 0;
}

.lock-again { display: block; margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════════
   FINAL SECTION
═══════════════════════════════════════════════════════════════ */
.final-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  overflow: hidden;
}
.final-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.final-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.final-orb-1 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(185,28,28,0.18) 0%, transparent 70%);
  top: -200px; left: -200px;
  opacity: .8;
  animation: aurora-drift 22s ease-in-out infinite;
}
.final-orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(109,40,217,0.12) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  opacity: .7;
  animation: aurora-drift 28s ease-in-out infinite reverse;
}

.final-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}
.final-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 2rem;
}
.final-headline em {
  font-style: italic;
  background: linear-gradient(90deg, var(--clr-red-bright), var(--clr-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.final-message {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--clr-text-muted);
  max-width: 620px;
  margin: 0 auto 3rem;
  line-height: 1.9;
}
.final-heart-icon {
  font-size: 3rem;
  color: var(--clr-red-bright);
  animation: heartBeat 1.6s ease-in-out infinite;
  display: inline-block;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--clr-border);
  color: var(--clr-text-faint);
  font-size: .85rem;
}
.heart-red { color: var(--clr-red-bright); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .counter-grid { grid-template-columns: repeat(3, 1fr); }

  .timeline::before { left: 28px; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
  }
  .timeline-item:nth-child(even) .timeline-card {
    margin-right: 0;
    margin-left: 1.5rem;
  }
  .timeline-card { max-width: calc(100% - 80px); }

  .masonry-gallery { column-count: 2; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root {
    --space-xl: 5rem;
    --space-lg: 2.5rem;
  }

  /* Nav */
  .nav-links {
    position: fixed;
    inset: 0; top: 60px;
    background: rgba(9,9,9,0.98);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-med);
  }
  .nav-links.open { opacity: 1; pointer-events: all; }
  .nav-link { font-size: 1.1rem; }
  .nav-toggle { display: flex; }

  /* Counter */
  .counter-grid { grid-template-columns: repeat(2, 1fr); }

  /* Timeline */
  .timeline::before { display: none; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline-dot { margin-bottom: 1rem; }
  .timeline-card { max-width: 100%; margin: 0 !important; }
  .timeline-item:nth-child(even) .timeline-card { margin-left: 0 !important; }

  /* Gallery */
  .masonry-gallery { column-count: 1; }

  /* Lightbox nav */
  .lightbox-prev { left: .25rem; }
  .lightbox-next { right: .25rem; }

  /* Player */
  .music-player { padding: 2rem 1.25rem; }

  /* Secret */
  .secret-input-wrap { flex-direction: column; align-items: center; }
  .secret-input { max-width: 100%; }
  .secret-letter { padding: 2.5rem 1.5rem; }
}

/* ─── ACCESSIBILITY: Reduce motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ŞİFRE MODALİ
═══════════════════════════════════════════════════════════════ */
.pw-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(9,9,9,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pwFadeIn .4s var(--ease-out-expo);
}

.pw-overlay[hidden] { display: none !important; }

@keyframes pwFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pw-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 1rem;
  padding: 3rem 2.5rem;
  text-align: center;
  animation: pwSlideUp .55s var(--ease-out-expo);
  border-color: rgba(185,28,28,0.25);
}

@keyframes pwSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Parlayan üst çizgi */
.pw-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-red-bright), transparent);
  border-radius: 1px;
}

.pw-lock-icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  display: block;
  animation: lockBounce 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(185,28,28,0.5));
}

@keyframes lockBounce {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.08); }
}

.pw-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.01em;
  background: linear-gradient(135deg, #fff 0%, var(--clr-red-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .6rem;
}

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

/* Playful Teasing Warning Alert Style */
.pw-tease-alert {
  margin: 0.5rem auto 1.8rem;
  padding: 0.9rem 1.25rem;
  background: rgba(239, 68, 68, 0.03);
  border: 1.5px dashed rgba(239, 68, 68, 0.15);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  max-width: 380px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: teasePulseBorder 3s infinite ease-in-out;
}

.tease-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
  display: inline-block;
  animation: teaseShake 4s infinite ease-in-out;
}

.tease-text {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0;
}

@keyframes teasePulseBorder {
  0%, 100% { border-color: rgba(239, 68, 68, 0.15); background: rgba(239, 68, 68, 0.03); }
  50% { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.06); }
}

@keyframes teaseShake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  10%, 30% { transform: rotate(-8deg) scale(1.08); }
  20%, 40% { transform: rotate(8deg) scale(1.08); }
  50% { transform: rotate(0deg) scale(1); }
}

.pw-input-wrap {
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: center;
}

.pw-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-full);
  padding: .75rem 1.25rem;
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: .95rem;
  letter-spacing: .08em;
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.pw-input:focus {
  border-color: var(--clr-red-bright);
  background: rgba(185,28,28,0.06);
  box-shadow: 0 0 0 3px rgba(185,28,28,0.15);
}
.pw-input::placeholder { color: var(--clr-text-faint); letter-spacing: .04em; }

.pw-submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.pw-error {
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--clr-red-bright);
  min-height: 1.2em;
  font-style: italic;
  animation: none;
}
.pw-error:not(:empty) {
  animation: pwErrorPop .3s var(--ease-out-expo);
}
@keyframes pwErrorPop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Yanlış şifre sallama efekti */
.pw-modal.shake {
  animation: pwShake .4s var(--ease-in-out);
}
@keyframes pwShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-10px); }
  40%      { transform: translateX(10px); }
  60%      { transform: translateX(-8px); }
  80%      { transform: translateX(8px); }
}

/* Doğru şifre - başarı animasyonu */
.pw-modal.success {
  border-color: rgba(34,197,94,0.4) !important;
  box-shadow: 0 0 60px rgba(34,197,94,0.15), var(--shadow-card) !important;
  animation: pwSuccess .4s var(--ease-out-expo);
}
@keyframes pwSuccess {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@media (max-width: 480px) {
  .pw-modal { padding: 2.5rem 1.5rem; }
  .pw-input-wrap { flex-direction: column; }
  .pw-input { width: 100%; }
  .pw-submit { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════
   WISH STAR & SHOOTING STAR INTERACTION
   (GÖKYÜZÜNE DİLEK FIRLATMA & SÜPER PARLAMA)
═══════════════════════════════════════════════════════════════ */

/* Shooting Star SVG Path */
.shooting-star-path {
  opacity: 0;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  pointer-events: none;
}

.shooting-star-path.animate-star {
  animation: shoot 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes shoot {
  0% {
    opacity: 0;
    stroke-dashoffset: 400;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: -400;
  }
}

/* Wish Star Interaction UI */
.sky-wish-wrap {
  margin-top: 2rem;
  text-align: left;
}

.sky-wish-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--r-full);
  cursor: pointer;
  z-index: 2;
  position: relative;
  transition: all var(--dur-med) var(--ease-out-expo);
}

.sky-wish-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(185, 28, 28, 0.4), 0 0 15px rgba(200, 169, 110, 0.2);
}

.sky-wish-btn:active {
  transform: translateY(1px);
}

.sky-wish-container {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(185, 28, 28, 0.05);
  border: 1px solid rgba(185, 28, 28, 0.15);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2), var(--shadow-card);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(10px);
}

.sky-wish-container:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

.sky-wish-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--clr-text-muted);
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  animation: wishPulse 3s ease-in-out infinite;
}

@keyframes wishPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(185, 28, 28, 0), 0 2px 4px rgba(0, 0, 0, 0.5); }
  50% { text-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.5); color: #fff; }
}

/* Super Twinkle Animation when wish is made */
.star.super-twinkle {
  animation: superTwinkle 0.4s ease-in-out infinite !important;
}

@keyframes superTwinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.7);
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.4));
  }
  50% {
    opacity: 1;
    transform: scale(1.8);
    filter: drop-shadow(0 0 12px rgba(255,255,255,1)) drop-shadow(0 0 6px rgba(200, 169, 110, 0.8));
  }
}

/* ═══════════════════════════════════════════════════════════════
   PROPOSAL SECTION & OVERLAY MODAL STYLING
   (ÖZEL TEKLİF & KAÇAN BUTONLU MODAL)
═══════════════════════════════════════════════════════════════ */
.proposal-section {
  padding: var(--space-xl) var(--space-md);
  background: var(--clr-bg);
  position: relative;
  overflow: hidden;
}

.proposal-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(185, 28, 28, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.proposal-trigger-card {
  max-width: 580px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  transition: transform var(--dur-med) var(--ease-out-expo), border-color var(--dur-med);
}

.proposal-trigger-card:hover {
  transform: translateY(-5px);
  border-color: rgba(185, 28, 28, 0.4);
  box-shadow: 0 12px 40px rgba(185, 28, 28, 0.15), var(--shadow-card);
}

.trigger-envelope-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
  animation: floatEnvelope 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(185, 28, 28, 0.4));
}

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

.trigger-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
}

.proposal-open-btn {
  font-size: 0.95rem;
  padding: 0.8rem 2.2rem;
  border-radius: var(--r-full);
}

/* Modal Overlay backdrop */
.proposal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(8, 5, 8, 0.82);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.proposal-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: all;
}

/* Tam ekran parçacık tuvali */
#proposal-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Teklif Kartı */
.proposal-modal {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin: 1.5rem;
  padding: 3.5rem 2.5rem;
  text-align: center;
  border-color: rgba(185, 28, 28, 0.3);
  box-shadow: 0 20px 80px rgba(185, 28, 28, 0.25), var(--shadow-card);
  transform: translateY(40px) scale(0.96);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s;
}

.proposal-overlay:not(.hidden) .proposal-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.proposal-heart-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: heartPulseInfinite 2s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.6));
}

@keyframes heartPulseInfinite {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.proposal-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--clr-red-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.proposal-message {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--clr-text-muted);
  margin-bottom: 2.5rem;
}

/* Buton grubu */
.proposal-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
  min-height: 56px;
}

/* Evet Butonu */
.proposal-yes-btn {
  font-size: 1.05rem;
  padding: 0.9rem 2.8rem;
  border-radius: var(--r-full);
  z-index: 10;
  box-shadow: 0 0 20px rgba(185, 28, 28, 0.4), 0 4px 15px rgba(0, 0, 0, 0.4);
  animation: yesPulseGlow 1.8s infinite ease-in-out;
}

@keyframes yesPulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(185, 28, 28, 0.4), 0 4px 15px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 0 35px rgba(239, 68, 68, 0.8), 0 4px 15px rgba(0, 0, 0, 0.4); transform: scale(1.03); }
}

/* Kaçan Hayır Butonu */
.proposal-no-btn {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-faint);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1.6rem;
  border-radius: var(--r-full);
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s, border-color 0.3s, color 0.3s, left 0.3s cubic-bezier(0.19, 1, 0.22, 1), top 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.proposal-no-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--clr-text-muted);
}

/* Başarı Ekranı */
.proposal-title-success {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--clr-gold) 50%, var(--clr-red-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
  animation: titleSuccessAnim 1s ease-out forwards;
}

@keyframes titleSuccessAnim {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.proposal-message-success {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--clr-text);
  margin-bottom: 2.5rem;
  animation: successFadeIn 1.2s ease-out forwards;
}

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

.proposal-close-btn {
  padding: 0.8rem 2.2rem;
  border-radius: var(--r-full);
  animation: successCloseBtnPulse 2.5s infinite;
}

@keyframes successCloseBtnPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(200, 169, 110, 0.2); }
  50% { box-shadow: 0 0 25px rgba(200, 169, 110, 0.5); }
}

/* Mobil Uyumlu */
@media (max-width: 480px) {
  .proposal-trigger-card { padding: 2.5rem 1.5rem; }
  .proposal-modal { padding: 3rem 1.5rem; }
  .proposal-btn-group { flex-direction: column; gap: 1.25rem; }
  .proposal-yes-btn { width: 100%; text-align: center; }
  .proposal-no-btn { width: 100%; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   BÜYÜLÜ ALTIN FREKANS GÖRSELLEŞTİRİCİ
   (Akustik Dalgalar & Ritmik Altın Plak)
═══════════════════════════════════════════════════════════════ */
.music-visualizer-wrap {
  position: relative;
  max-width: 580px;
  height: 280px;
  margin: 0 auto 2.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-color: rgba(185, 28, 28, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(185, 28, 28, 0.1);
  background: radial-gradient(circle at center, rgba(185, 28, 28, 0.08) 0%, rgba(9, 9, 9, 0.4) 70%);
}

#visualizer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Plak Disk Yapısı */
.visualizer-disc {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(200, 169, 110, 0.2);
  transition: transform 0.1s ease-out; /* Super fast responsive scale beat */
}

/* Plak Animasyonu (Sadece çalarken JS ile class eklenerek dönecek) */
.visualizer-disc.playing .disc-vinyl {
  animation: spinVinyl 12s linear infinite;
}

.disc-vinyl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #181818 0%, #0d0d0d 25%, #181818 50%, #0d0d0d 75%, #181818 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Plak üzerindeki iz çizgileri (Concentric vinyl grooves) */
.disc-vinyl::before {
  content: '';
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.03);
}
.disc-vinyl::after {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

/* Merkez Kapak Fotoğrafı / Baş Harfleri */
.disc-art {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d0000 0%, #110505 100%);
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.disc-initials {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--clr-red-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
}

@keyframes spinVinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .music-visualizer-wrap {
    height: 240px;
    margin-bottom: 1.5rem;
  }
  .visualizer-disc {
    width: 100px;
    height: 100px;
  }
  .disc-art {
    width: 42px;
    height: 42px;
  }
  .disc-initials {
    font-size: 0.85rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DAILY LOVE CAPSULE (AŞK KAVANOZU)
═══════════════════════════════════════════════════════════════ */
.love-capsule-section {
  padding: var(--space-xl) var(--space-md);
  background: var(--clr-bg-2);
  position: relative;
  overflow: hidden;
}

.capsule-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(185, 28, 28, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.jar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 3.5rem auto 1.5rem;
  position: relative;
  max-width: 320px;
}

/* Glass Jar Styling */
.love-jar {
  width: 215px;
  height: 290px;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 90px 90px 45px 45px;
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.6), 
    inset 0 10px 25px rgba(255, 255, 255, 0.08), 
    inset -10px -10px 25px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(185, 28, 28, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  outline: none;
  animation: floatJar 4s ease-in-out infinite;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s;
  z-index: 2;
}

.love-jar:hover, .love-jar:focus {
  transform: scale(1.05) translateY(-5px);
  border-color: rgba(185, 28, 28, 0.4);
  box-shadow: 
    0 25px 55px rgba(185, 28, 28, 0.25), 
    inset 0 10px 25px rgba(255, 255, 255, 0.15), 
    inset -5px -5px 20px rgba(0, 0, 0, 0.3),
    0 0 45px rgba(185, 28, 28, 0.2);
}

.love-jar:active {
  transform: scale(0.98) translateY(0);
}

/* Lid & Neck */
.jar-lid {
  width: 125px;
  height: 28px;
  background: linear-gradient(90deg, #c8a96e 0%, #ecd7ac 50%, #c8a96e 100%);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  position: absolute;
  top: -27px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s var(--ease-out-expo);
  z-index: 3;
}

.love-jar:hover .jar-lid {
  transform: translateX(-50%) translateY(-6px) rotate(-4deg);
}

/* Open Lid State when already read */
.love-jar.jar-opened .jar-lid {
  transform: translateX(-50%) translateY(-10px) rotate(-8deg);
  background: linear-gradient(90deg, #ef4444 0%, #ff8585 50%, #ef4444 100%);
  box-shadow: 0 6px 15px rgba(239, 68, 68, 0.4);
}

.jar-neck {
  width: 108px;
  height: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  border-right: 2px solid rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Inner Glow */
.jar-glow {
  position: absolute;
  width: 140px;
  height: 165px;
  background: radial-gradient(circle, rgba(185, 28, 28, 0.3) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  transition: background 0.4s;
}

.love-jar:hover .jar-glow {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.45) 0%, transparent 70%);
}

.love-jar.jar-opened .jar-glow {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.5) 0%, transparent 65%);
}

/* Jar Label */
.jar-label {
  width: 110px;
  padding: .4rem .2rem;
  background: rgba(9, 9, 9, 0.65);
  border: 1px dashed rgba(200, 169, 110, 0.4);
  border-radius: 4px;
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.jar-label span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--clr-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
}

/* Floating Hearts inside Jar */
.jar-hearts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 90px 90px 45px 45px;
}

.jar-hearts span {
  position: absolute;
  font-size: var(--sz);
  left: var(--x);
  top: var(--y);
  filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.5));
  animation: floatHeartJar var(--d) ease-in-out infinite;
  animation-delay: calc(var(--idx) * -1s);
  opacity: 0.8;
  display: inline-block;
  user-select: none;
}

@keyframes floatHeartJar {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-15px) scale(1.15) rotate(10deg); opacity: 1; }
}

.jar-shadow {
  width: 165px;
  height: 16px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  filter: blur(5px);
  margin-top: 20px;
  animation: shadowJar 4s ease-in-out infinite;
}

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

@keyframes shadowJar {
  0%, 100% { transform: scale(1); opacity: 0.8; filter: blur(5px); }
  50% { transform: scale(0.85); opacity: 0.5; filter: blur(7px); }
}

/* Jar Unfolding Letter Modal */
.jar-modal {
  position: fixed;
  inset: 0;
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.jar-modal[hidden] {
  display: none !important;
}

.jar-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 9, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.jar-letter-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  margin: 1.5rem;
  perspective: 1000px;
}

.jar-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
}

.jar-modal-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* Paper Letter Aesthetic */
.jar-letter-paper {
  background: rgba(12, 6, 8, 0.97); /* Translucent obsidian ruby-red glassmorphism */
  border-radius: 16px;
  padding: 3rem 2.5rem 2rem;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.85), 
    inset 0 0 35px rgba(185, 28, 28, 0.25), 
    0 0 40px rgba(239, 68, 68, 0.15);
  border: 1.5px solid rgba(239, 68, 68, 0.35); /* Glowing ruby-red borders */
  color: var(--clr-text);
  position: relative;
  overflow: hidden;
  max-height: 85vh;
  overflow-y: auto;
  transform-origin: center top;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  animation: unfoldLetter 0.75s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Scrollbar on letter */
.jar-letter-paper::-webkit-scrollbar {
  width: 4px;
}
.jar-letter-paper::-webkit-scrollbar-track {
  background: transparent;
}
.jar-letter-paper::-webkit-scrollbar-thumb {
  background: rgba(200, 169, 110, 0.25);
  border-radius: 2px;
}

@keyframes unfoldLetter {
  0% {
    opacity: 0;
    transform: rotateX(-45deg) translateY(50px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg) translateY(0) scale(1);
  }
}

/* Red wax rose seal */
.letter-top-seal {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 8px rgba(185, 28, 28, 0.6));
}

.letter-date {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--clr-gold);
  text-align: right;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(200, 169, 110, 0.15);
  padding-bottom: .5rem;
}

.letter-content {
  font-family: var(--font-sans); /* Clean, modern, extremely legible font ('Inter') */
  font-size: 1.12rem;
  line-height: 1.8;
  color: #f3f4f6; /* Premium soft off-white for perfect reading comfort */
  margin-bottom: 2.2rem;
  font-weight: 400;
  white-space: pre-line;
}

.letter-content p {
  margin-bottom: 1.2rem;
}

.letter-sign-wrap {
  text-align: right;
  margin-bottom: 2.5rem;
  border-top: 1px dashed rgba(200, 169, 110, 0.15);
  padding-top: 1.25rem;
}

.letter-sign-title {
  font-family: var(--font-sans); /* Highly readable Inter font */
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65); /* Soft white with excellent legibility */
  margin-bottom: .2rem;
}

.letter-sign-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-gold);
}

/* Countdown Badge on Daily Note */
.countdown-badge {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(200, 169, 110, 0.16);
  border-radius: var(--r-sm);
  padding: .9rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  max-width: 280px;
  margin: 0 auto;
}

.countdown-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55); /* Soft off-white for beautiful contrast */
  letter-spacing: 0.08em;
}

.countdown-time {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .jar-letter-paper {
    padding: 2.5rem 1.5rem 1.5rem;
  }
  .love-jar {
    width: 185px;
    height: 245px;
    border-radius: 75px 75px 40px 40px;
  }
  .jar-lid {
    width: 105px;
    top: -24px;
  }
}

/* Floating Polaroid Cards on Intro Screen */
.intro-floating-card {
  position: absolute;
  width: 140px;
  height: 190px;
  padding: 1.25rem 1rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.5s var(--ease-out-expo), border-color 0.5s, box-shadow 0.5s, margin 0.3s ease-out;
  z-index: 5;
  pointer-events: auto;
  user-select: none;
}

.intro-card-left {
  left: 8%;
  top: 25%;
  transform: rotate(-6deg);
  animation: floatCardLeft 6s ease-in-out infinite;
}

.intro-card-right {
  right: 8%;
  bottom: 25%;
  transform: rotate(6deg);
  animation: floatCardRight 7s ease-in-out infinite;
}

.intro-floating-card:hover {
  transform: translateY(-8px) scale(1.05) !important;
  border-color: rgba(185, 28, 28, 0.4);
  box-shadow: 
    0 25px 45px rgba(185, 28, 28, 0.25),
    inset 0 0 20px rgba(185, 28, 28, 0.1);
}

.polaroid-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(185, 28, 28, 0.1) 0%, transparent 80%);
  pointer-events: none;
  opacity: 0.8;
}

.card-emoji {
  font-size: 3rem;
  filter: drop-shadow(0 0 10px rgba(185, 28, 28, 0.4));
}

.card-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--clr-gold);
  letter-spacing: 0.02em;
  margin-top: auto;
}

@keyframes floatCardLeft {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-12px); }
}

@keyframes floatCardRight {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-14px); }
}

/* Hide on mobile screens to avoid overlapping the central text content */
@media (max-width: 900px) {
  .intro-floating-card {
    display: none !important;
  }
}

