/* ══════════════════════════════════════════════════════
   SEVGİLİ DUYGU · CSS
   Dominant: Petrol Mavisi derinlikleri
   Accent:   Neon petrol, altın, beyaz
   ══════════════════════════════════════════════════════ */

:root {
  /* ── Petrol Paleti ── */
  --p0:  #020b10;   /* en koyu, neredeyse siyah */
  --p1:  #071820;   /* ana arka plan */
  --p2:  #0d2535;   /* yüzey */
  --p3:  #133045;   /* kart arka planı */
  --p4:  #1a4060;   /* border, orta ton */
  --p5:  #226080;   /* orta-açık */
  --p6:  #2e84a8;   /* canlı petrol */
  --p7:  #3da8d4;   /* açık petrol */
  --p8:  #5cc5f0;   /* parlak petrol */
  --p9:  #8dddf7;   /* neon petrol (parlama) */
  --pa:  #b8eeff;   /* çok açık, almost white */

  /* ── Accent ── */
  --gold:   #c8a96e;
  --gold2:  #e8c98e;
  --white:  rgba(240,248,255,0.92);
  --dim:    rgba(140,200,230,0.40);
  --dimmer: rgba(140,200,230,0.18);

  /* ── Glow ── */
  --glow-sm:  0 0 12px rgba(61,168,212,0.5);
  --glow-md:  0 0 30px rgba(61,168,212,0.35), 0 0 60px rgba(61,168,212,0.15);
  --glow-lg:  0 0 60px rgba(61,168,212,0.4), 0 0 120px rgba(61,168,212,0.15);
  --glow-gold: 0 0 20px rgba(200,169,110,0.4);

  /* ── Type ── */
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Cormorant', Georgia, serif;
  --ff-mono:    'DM Mono', monospace;

  /* ── Spacing ── */
  --section-pad: clamp(5rem, 12vw, 10rem);
}

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

body {
  background: var(--p0);
  color: var(--white);
  font-family: var(--ff-body);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
  line-height: 1.7;
}

canvas { display: block; }
button { background: none; border: none; cursor: none; }

/* ══════════════════════════════════════════════════════
   CURSOR
══════════════════════════════════════════════════════ */
#cur {
  position: fixed; width: 8px; height: 8px;
  background: var(--p9);
  border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  box-shadow: var(--glow-sm);
  transition: transform 0.08s, width 0.2s, height 0.2s, background 0.3s;
  mix-blend-mode: screen;
}
#cur2 {
  position: fixed; width: 32px; height: 32px;
  border: 1px solid rgba(93,197,240,0.35);
  border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
body.cur-hover #cur  { width: 6px; height: 6px; background: var(--gold); }
body.cur-hover #cur2 { width: 48px; height: 48px; border-color: rgba(200,169,110,0.4); }

/* ══════════════════════════════════════════════════════
   LOADER
══════════════════════════════════════════════════════ */
#loader {
  position: fixed; inset: 0; z-index: 7000;
  background: var(--p0);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1s ease;
}
#loader-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
#loader-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
}
#loader-flower {
  width: 60px; height: 60px;
  border: 1px solid var(--p7);
  border-radius: 50%;
  box-shadow: var(--glow-sm);
  animation: spin 2s linear infinite;
  position: relative;
}
#loader-flower::before {
  content: '';
  position: absolute; inset: 8px;
  border: 1px solid rgba(61,168,212,0.4);
  border-radius: 50%;
  animation: spin 1.5s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loader-text {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--dim);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

/* ══════════════════════════════════════════════════════
   OPENING CINEMATIC
══════════════════════════════════════════════════════ */
#opening {
  position: fixed; inset: 0; z-index: 6000;
  background: var(--p0);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
}
#opening.active { opacity: 1; pointer-events: all; }
#opening-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
#opening-stage {
  position: relative; z-index: 2;
  text-align: center;
}
.op-step {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  min-width: 300px;
}
.op-step.show { opacity: 1; pointer-events: all; }

.op-mono {
  font-family: var(--ff-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 0.4em;
  color: var(--dim);
}
.op-name {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 400;
  font-style: italic;
  color: transparent;
  background: linear-gradient(180deg, var(--pa) 0%, var(--p8) 50%, var(--p6) 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 40px rgba(93,197,240,0.5));
  line-height: 1;
}
.op-tagline {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.op-tagline-sub {
  font-family: var(--ff-body);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--dim);
}

#op-enter {
  margin-top: 3rem;
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 0.8rem;
  position: relative;
}
.btn-text {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--p9);
  transition: color 0.3s;
}
#op-enter:hover .btn-text { color: var(--gold); }
.btn-line {
  display: block;
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--p9), transparent);
  margin: 0 auto;
  animation: breathe 2s ease-in-out infinite;
}
@keyframes breathe {
  0%,100% { height: 40px; opacity: 0.5; }
  50%      { height: 65px; opacity: 1; }
}

/* ══════════════════════════════════════════════════════
   BACKGROUND CANVAS
══════════════════════════════════════════════════════ */
#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* ══════════════════════════════════════════════════════
   SECTION COMMON
══════════════════════════════════════════════════════ */
#site > section {
  position: relative; z-index: 2;
}
.sec-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--dim);
  text-align: center;
  padding-top: var(--section-pad);
  margin-bottom: 3rem;
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
#s-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#hero-three {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
#hero-overlay {
  position: relative; z-index: 2;
  text-align: center;
  padding: 2rem;
}
.h-eyebrow {
  font-family: var(--ff-mono);
  font-size: clamp(0.65rem, 1.5vw, 0.8rem);
  letter-spacing: 0.3em;
  color: var(--dim);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}
#h-title {
  font-family: var(--ff-display);
  line-height: 1.05;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeUp 1.2s ease 0.8s forwards;
}
#h-title em {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--dim);
  letter-spacing: 0.1em;
}
#h-title strong {
  display: block;
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 500;
  color: transparent;
  background: linear-gradient(160deg, var(--pa) 0%, var(--p8) 40%, var(--p6) 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 50px rgba(93,197,240,0.4));
}

/* ── Counter ── */
#h-counter {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 1.1s forwards;
}
.hc-unit { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.hc-n {
  font-family: var(--ff-mono);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--p9);
  text-shadow: var(--glow-sm);
  line-height: 1;
}
.hc-l {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--dim);
  text-transform: uppercase;
}
.hc-dot {
  font-size: 2rem;
  color: var(--dimmer);
  padding-bottom: 0.8rem;
}
.h-sub {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--dim);
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}
#h-scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.h-scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--p7), transparent);
  margin: auto;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { opacity: 0.2; transform: scaleY(0.8); }
  50%      { opacity: 0.8; transform: scaleY(1); }
}

/* ══════════════════════════════════════════════════════
   FLOWER SCENE
══════════════════════════════════════════════════════ */
#s-flowers {
  min-height: 85vh;
  display: flex; flex-direction: column;
  align-items: center;
  overflow: hidden;
}
#flower-three {
  width: 100%;
  height: clamp(400px, 60vh, 700px);
  z-index: 1;
}
#flower-caption {
  position: relative; z-index: 2;
  margin-top: -3rem;
  text-align: center;
  padding: 0 2rem 3rem;
}
#flower-caption p {
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--dim);
}

/* ══════════════════════════════════════════════════════
   WORDS
══════════════════════════════════════════════════════ */
#s-words {
  padding-bottom: var(--section-pad);
}
#words-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.word-block {
  padding: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.word-block.visible { opacity: 1; transform: translateY(0); }
.word-block::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--p2);
  opacity: 0;
  transition: opacity 0.5s;
}
.word-block:hover::before { opacity: 1; }

.wb-1 { border-bottom: 1px solid var(--dimmer); border-right: 1px solid var(--dimmer); }
.wb-2 { border-bottom: 1px solid var(--dimmer); }
.wb-3 { border-right: 1px solid var(--dimmer); }
.wb-4 {}

.wb-quote {
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--white);
  line-height: 1.7;
  position: relative; z-index: 1;
}
.wb-num {
  font-family: var(--ff-mono);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--p8);
  text-shadow: var(--glow-md);
  line-height: 1;
  position: relative; z-index: 1;
}
.wb-numlabel {
  font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--dim);
  margin-top: 0.8rem;
  position: relative; z-index: 1;
}

@media (max-width: 700px) {
  #words-inner { grid-template-columns: 1fr; }
  .wb-1,.wb-2,.wb-3 { border-right: none; }
}

/* ══════════════════════════════════════════════════════
   TIMELINE
══════════════════════════════════════════════════════ */
#s-timeline { padding-bottom: var(--section-pad); }
#tl-wrap {
  position: relative;
  max-width: 900px; margin: 0 auto;
  padding: 0 2rem;
}
.tl-spine {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--p5) 10%, var(--p5) 90%, transparent);
  transform: translateX(-50%);
}
.tl-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 4rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.tl-row.visible { opacity: 1; transform: translateY(0); }
.tl-left  .tl-card { grid-column: 1; text-align: right; }
.tl-left  .tl-node { grid-column: 2; }
.tl-left  .tl-card + * { display: none; }
.tl-right .tl-node { grid-column: 2; }
.tl-right .tl-card { grid-column: 3; }

.tl-node {
  width: 50px; display: flex; justify-content: center;
}
.tl-dot {
  width: 10px; height: 10px;
  background: var(--p6);
  border-radius: 50%;
  box-shadow: var(--glow-sm);
  position: relative;
}
.tl-dot-pulse {
  background: var(--p9);
  box-shadow: var(--glow-md);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 8px var(--p8); }
  50%      { box-shadow: 0 0 25px var(--p8), 0 0 50px rgba(93,197,240,0.3); }
}
.tl-card {
  padding: 1.5rem 1.8rem;
  background: var(--p2);
  border: 1px solid var(--dimmer);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.tl-card:hover {
  border-color: rgba(93,197,240,0.3);
  box-shadow: 0 0 25px rgba(93,197,240,0.06);
}
.tl-active .tl-card {
  border-color: rgba(93,197,240,0.25);
  background: rgba(19,48,69,0.8);
}
.tl-date {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--p7);
  display: block;
  margin-bottom: 0.6rem;
}
.tl-card h3 {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.tl-card p {
  font-size: 0.95rem;
  color: var(--dim);
  line-height: 1.65;
}

@media (max-width: 650px) {
  .tl-spine { left: 20px; }
  .tl-row { grid-template-columns: 36px 1fr; gap: 1rem; }
  .tl-row .tl-node { grid-column: 1; grid-row: 1; }
  .tl-row .tl-card { grid-column: 2; text-align: left !important; }
}

/* ══════════════════════════════════════════════════════
   GALLERY
══════════════════════════════════════════════════════ */
#s-gallery { padding-bottom: var(--section-pad); }
#gallery-status {
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--dim);
  margin-bottom: 2.5rem;
  padding: 0 2rem;
}
#gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 3px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}
.g-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--p2);
  cursor: none;
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.75) brightness(0.8);
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
              filter 0.5s ease;
}
.g-item:hover img {
  transform: scale(1.07);
  filter: saturate(1) brightness(0.95);
}
.g-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(2,11,16,0.8) 0%,
    rgba(2,11,16,0.2) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s;
}
.g-item:hover::after { opacity: 1; }
.g-item-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem 1.2rem;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(240,248,255,0.85);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 2;
}
.g-item:hover .g-item-cap { transform: translateY(0); }

/* No photos placeholder */
#gallery-empty {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--dim);
}
#gallery-empty strong {
  font-family: var(--ff-mono);
  color: var(--p8);
}
.ge-hint {
  margin-top: 1rem;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--dimmer);
}

/* ══════════════════════════════════════════════════════
   LETTER
══════════════════════════════════════════════════════ */
#s-letter { padding-bottom: var(--section-pad); }
#letter-box {
  max-width: 720px; margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}
#letter-deco {
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--p5));
  margin: 0 auto 3rem;
}
#letter-text {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
#letter-text.visible { opacity: 1; transform: translateY(0); }

.lt-salute {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-style: italic;
  color: var(--p8);
  text-shadow: var(--glow-sm);
  margin-bottom: 2.5rem;
}
#letter-text p {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(200,230,245,0.8);
  margin-bottom: 1.8rem;
  line-height: 1.9;
}
.lt-sign {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem) !important;
  color: var(--p9) !important;
  text-shadow: var(--glow-sm);
  margin-top: 3rem;
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
#s-footer {
  position: relative;
  height: 60vh; min-height: 350px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-top: 1px solid var(--dimmer);
}
#footer-three {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
#footer-inner {
  position: relative; z-index: 2;
  text-align: center;
}
#footer-name {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-style: italic;
  font-weight: 500;
  color: transparent;
  background: linear-gradient(180deg, var(--pa), var(--p8));
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 30px rgba(93,197,240,0.4));
  margin-bottom: 1.5rem;
}
#footer-counter {
  font-family: var(--ff-mono);
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  color: var(--dim);
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}
#footer-counter span { color: var(--p8); }
#footer-date {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--dimmer);
}

/* ══════════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════════ */
#lightbox {
  position: fixed; inset: 0;
  background: rgba(2,11,16,0.96);
  z-index: 8000;
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(20px);
}
#lightbox.open { display: flex; }
#lb-close {
  position: absolute; top: 1.5rem; right: 2rem;
  font-size: 1.5rem; color: var(--dim);
  transition: color 0.3s;
  cursor: none;
}
#lb-close:hover { color: var(--p9); }
.lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  font-size: 2.5rem;
  color: var(--dim);
  padding: 1rem;
  cursor: none;
  user-select: none;
  transition: color 0.3s;
}
.lb-nav:hover { color: var(--p9); }
#lb-prev { left: 1rem; }
#lb-next { right: 1rem; }
#lb-img {
  max-width: 85vw; max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--dimmer);
  box-shadow: var(--glow-md);
}
#lb-caption {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-style: italic; font-size: 0.9rem;
  color: var(--dim); text-align: center;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--p0); }
::-webkit-scrollbar-thumb { background: var(--p4); }
::-webkit-scrollbar-thumb:hover { background: var(--p6); }
