/* ══════════════════════════════════════════════════════
   TOKENS
══════════════════════════════════════════════════════ */
:root {
  --rose:        #f4a0b0;
  --rose-deep:   #c9607a;
  --rose-glow:   #e8556a;
  --purple:      #9b59b6;
  --purple-soft: #c39bd3;
  --dark:        #0d0610;
  --dark2:       #1a0a14;
  --dark3:       #2a1020;
  --cream:       rgba(255,248,240,0.92);
  --glass:       rgba(255,255,255,0.06);
  --glass-b:     rgba(255,255,255,0.12);
  --serif:       'Cormorant Garamond', Georgia, serif;
  --script:      'Dancing Script', cursive;
  --sans:        'Inter', sans-serif;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }

body {
  background: var(--dark);
  font-family: var(--sans);
  color: #f0e0e8;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-y;
}

/* Particle canvas */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════
   SCREENS — ekranlar arası geçiş
══════════════════════════════════════════════════════ */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s var(--ease);
  z-index: 10;
}
.screen.active {
  opacity: 1;
  pointer-events: all;
}
.screen.exit {
  opacity: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   EKRAN 1 — AÇILIŞ
══════════════════════════════════════════════════════ */
#intro {
  background: radial-gradient(ellipse 120% 120% at 50% 60%,
    #3d0f25 0%, #1a0a14 45%, #0d0610 100%);
  flex-direction: column;
  z-index: 20;
}

.intro-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 45%,
    rgba(201,96,122,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  gap: 0;
  animation: introFade 1.2s 0.3s both;
}
@keyframes introFade {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intro-from {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(244,160,176,0.65);
  margin-bottom: 2rem;
}

/* Kalp animasyonu */
.intro-heart-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
}
.heart-pulse {
  font-size: 3.2rem;
  color: var(--rose-deep);
  animation: heartbeat 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(201,96,122,0.7));
  position: relative;
  z-index: 2;
}
@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  14%     { transform: scale(1.2); }
  28%     { transform: scale(1); }
  42%     { transform: scale(1.15); }
  70%     { transform: scale(1); }
}

.heart-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,96,122,0.3);
  animation: ringPulse 2s ease-out infinite;
}
.r1 { width: 64px;  height: 64px;  animation-delay: 0s; }
.r2 { width: 90px;  height: 90px;  animation-delay: 0.4s; }
.r3 { width: 116px; height: 116px; animation-delay: 0.8s; }
@keyframes ringPulse {
  0%   { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}

.intro-name {
  font-family: var(--script);
  font-size: clamp(3.5rem, 16vw, 5.5rem);
  color: #fff;
  line-height: 1;
  letter-spacing: 0.03em;
  text-shadow: 0 0 40px rgba(244,160,176,0.4);
  margin-bottom: 0.2rem;
}
.intro-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 5vw, 1.5rem);
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.6rem;
  letter-spacing: 0.08em;
}

.intro-date {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(244,160,176,0.9);
  margin-bottom: 2.6rem;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.35rem 1.1rem;
  border: 1px solid rgba(244,160,176,0.25);
  border-radius: 40px;
  background: rgba(244,160,176,0.07);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 14px rgba(244,160,176,0.12);
}

.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2.8rem;
  background: linear-gradient(135deg, var(--rose-deep) 0%, var(--purple) 100%);
  border: none;
  border-radius: 60px;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 12px 40px rgba(201,96,122,0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.start-btn svg { width: 18px; height: 18px; }
.start-btn:active { transform: scale(0.96); }

.intro-hint {
  margin-top: 1.4rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════════════════════
   EKRAN 2 — SLİDESHOW
══════════════════════════════════════════════════════ */
#slideshow {
  background: var(--dark);
  z-index: 10;
}

/* Fotoğraf katmanları */
.slides-wrap {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease), transform 8s linear;
}
.slide.current {
  opacity: 1;
  transform: scale(1.12); /* Ken Burns */
}
.slide.prev {
  opacity: 0;
  transform: scale(1.14);
}

/* Karanlık katman */
.slide-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,  rgba(13,6,16,0.95) 0%, transparent 45%),
    linear-gradient(to bottom, rgba(13,6,16,0.6) 0%, transparent 25%);
  z-index: 2;
  pointer-events: none;
}

/* İlerleme çubuğu */
.progress-bar-wrap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 20;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--rose-deep), var(--purple-soft));
  width: 0%;
  transition: width linear;
  border-radius: 0 2px 2px 0;
}

/* Alt footer */
.slide-footer {
  position: absolute;
  bottom: 1.2rem;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  z-index: 20;
}
.footer-names {
  font-family: var(--script);
  font-size: 1rem;
  color: rgba(255,255,255,0.4);
}
.footer-date {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(244,160,176,0.5);
}

/* Dots */
.dots {
  position: absolute;
  bottom: 3.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.4s, transform 0.4s;
  cursor: pointer;
}
.dot.active {
  background: var(--rose);
  transform: scale(1.4);
}

/* Mesaj kutusu */
.msg-box {
  position: absolute;
  bottom: 6.5rem;
  left: 1.5rem;
  right: 1.5rem;
  text-align: center;
  z-index: 15;
  pointer-events: none;
}
.msg-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s 0.5s, transform 0.7s 0.5s;
}
.msg-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 5vw, 1.55rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s 0.7s, transform 0.8s 0.7s;
}
.msg-box.show .msg-eyebrow,
.msg-box.show .msg-text {
  opacity: 1;
  transform: translateY(0);
}

/* Ok düğmeleri */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 44px; height: 44px;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
}
.nav-arrow.left  { left: 1rem; }
.nav-arrow.right { right: 1rem; }
.nav-arrow:active { background: rgba(255,255,255,0.15); }

/* ══════════════════════════════════════════════════════
   EKRAN 3 — FİNAL
══════════════════════════════════════════════════════ */
#final {
  background: radial-gradient(ellipse 140% 120% at 50% 80%,
    #3d0f25 0%, #1a0a14 50%, #0d0610 100%);
  flex-direction: column;
  z-index: 20;
  overflow: hidden;
}

.hearts-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.fheart {
  position: absolute;
  bottom: -40px;
  color: var(--rose);
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(244,160,176,0.5));
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { opacity: 0;   transform: translateY(0) scale(1) rotate(0deg); }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.3; }
  100% { opacity: 0;   transform: translateY(-110vh) scale(0.6) rotate(20deg); }
}

.final-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: introFade 1.2s 0.3s both;
}

.final-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,160,176,0.6);
  margin-bottom: 1rem;
}
.final-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 10vw, 4rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.5rem;
}
.final-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--rose), var(--purple-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  font-size: 1.2em;
}
.final-msg {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.95rem, 4vw, 1.15rem);
  line-height: 2;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.8rem;
}
.final-divider {
  color: var(--rose);
  letter-spacing: 0.4em;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
.final-from {
  font-family: var(--script);
  font-size: clamp(1.3rem, 6vw, 1.9rem);
  color: #fff;
  letter-spacing: 0.05em;
}
.final-date {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(244,160,176,0.5);
  margin-top: 0.3rem;
  margin-bottom: 2rem;
}
.restart-btn {
  padding: 0.8rem 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 50px;
  color: rgba(255,255,255,0.6);
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.3s, color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.restart-btn:active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .intro-name   { font-size: 3rem; }
  .start-btn    { padding: 0.9rem 2rem; font-size: 0.82rem; }
  .msg-text     { font-size: 1.05rem; }
  .nav-arrow    { display: none; }
}

@media (min-width: 768px) {
  .msg-box    { left: 3rem; right: 3rem; }
  .msg-text   { font-size: 1.6rem; }
  .final-title { font-size: 3.5rem; }
}
