/* ══════════════════════════════════════════
   MELEK İREM — FULL STYLE.CSS
   Palette: Black, Deep Navy, Silk Bordo, Silver
══════════════════════════════════════════ */

:root {
  /* Colors */
  --black:       #050507;
  --navy-deep:   #0a0f1e;
  --navy-mid:    #162040;
  --bordo-dark:  #4a081a;
  --bordo-light: #b01e3c;
  --gold-muted:  #9a8450;
  --white:       #f4f4f2;
  --offwhite:    #e8e6e0;
  --silver:      #b8b4a8;
  --dim:         #666666;

  /* Fonts */
  --font-display: 'Playfair Display', serif;
  --font-body:    'EB Garamond', serif;
  --font-label:   'Cinzel', serif;

  /* Effects */
  --transition-smooth: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-fast:   all 0.3s ease;
}

/* ── 1. RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; background: var(--black); }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* Custom cursor aktif */
}
img { display: block; max-width: 100%; height: auto; }

/* ── 2. SYSTEM OVERLAYS (Noise, Stars, Cursor) ── */
.noise {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04; pointer-events: none; z-index: 9999;
}

#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.star {
  position: absolute; background: #fff; border-radius: 50%;
  animation: twinkle var(--d) ease-in-out infinite alternate;
  animation-delay: var(--delay);
}
@keyframes twinkle { 
  from { opacity: var(--min); transform: scale(1); } 
  to { opacity: var(--max); transform: scale(1.3); } 
}

.cursor {
  width: 8px; height: 8px; background: var(--bordo-light); border-radius: 50%;
  position: fixed; z-index: 10000; pointer-events: none; mix-blend-mode: difference;
}
.cursor-trail {
  width: 35px; height: 35px; border: 1px solid rgba(176, 30, 60, 0.3);
  border-radius: 50%; position: fixed; z-index: 9998; pointer-events: none;
}

.v-line {
  position: fixed; right: 40px; top: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--bordo-light), transparent);
  z-index: 100; transition: height 0.1s linear;
}

/* ── 3. REVEAL SYSTEM ── */
[data-reveal], [data-scroll-reveal] { opacity: 0; transform: translateY(30px); transition: var(--transition-smooth); }
[data-reveal].revealed, [data-scroll-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-scroll-reveal="slide-left"] { transform: translateX(-50px); }
[data-scroll-reveal="slide-right"] { transform: translateX(50px); }

/* ── 4. HERO SECTION ── */
.hero {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 40px; text-align: center;
  background: radial-gradient(circle at 50% 40%, var(--navy-deep) 0%, var(--black) 100%);
}

.hero-frame { position: absolute; inset: 30px; pointer-events: none; }
.hf-corner { position: absolute; width: 25px; height: 25px; border: 1px solid var(--bordo-dark); }
.hf-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hf-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hf-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hf-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.hero-name { font-family: var(--font-display); font-size: clamp(3.5rem, 12vw, 8.5rem); line-height: 0.9; text-transform: uppercase; }
.name-top { display: block; letter-spacing: 8px; color: var(--white); }
.name-bottom { display: block; font-style: italic; font-weight: 400; color: var(--bordo-light); }

.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); opacity: 0.6; }
.scroll-bar { width: 1px; height: 60px; background: linear-gradient(to bottom, var(--bordo-light), transparent); margin: 10px auto; }

/* ── 5. CONTENT SECTIONS ── */
.section { padding: 120px 10%; position: relative; z-index: 2; }

.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.photo-frame-wrap { position: relative; padding: 15px; background: var(--navy-deep); border: 1px solid rgba(255,255,255,0.05); }
.photo-img { width: 100%; filter: grayscale(20%) brightness(0.9); transition: var(--transition-fast); }
.photo-frame-wrap:hover .photo-img { filter: grayscale(0%) brightness(1); }

.section-heading { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; margin-bottom: 1.5rem; line-height: 1.1; }
.section-heading em { font-style: italic; color: var(--bordo-light); }

.body-text { font-size: 1.2rem; color: var(--silver); margin-bottom: 1.5rem; max-width: 500px; }

/* ── 6. TIMELINE / MEMORIES ── */
.timeline { position: relative; max-width: 900px; margin: 80px auto; }
.timeline-spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.1); transform: translateX(-50%); }

.mem-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 80px; width: 100%; position: relative; }
.mem-card { width: 42%; background: var(--navy-deep); padding: 30px; border: 1px solid rgba(255,255,255,0.05); transition: var(--transition-fast); }
.mem-card:hover { border-color: var(--bordo-light); background: var(--navy-mid); }
.mem-item--right { flex-direction: row-reverse; }

.timeline-dot { position: absolute; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; background: var(--bordo-light); border-radius: 50%; box-shadow: 0 0 15px var(--bordo-light); }

/* ── 7. CINEMATIC PHOTO ── */
.cinematic-photo { height: 70vh; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cp-img { position: absolute; width: 110%; height: 110%; object-fit: cover; filter: brightness(0.5); }
.cp-overlay-center { position: absolute; inset: 0; background: radial-gradient(circle, transparent 20%, var(--black) 90%); }
.cp-text { position: relative; z-index: 10; text-align: center; }

/* ── 8. LETTER CARD ── */
.letter-section { background: var(--navy-deep); }
.letter-card { background: #fdfaf7; color: #1a1a1a; padding: 60px; max-width: 750px; margin: 0 auto; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.letter-top-bar { position: absolute; top: 0; left: 0; width: 0; height: 6px; background: var(--bordo-light); }
.letter-content { font-family: var(--font-body); font-size: 1.3rem; line-height: 1.8; }
.letter-signature { margin-top: 40px; border-top: 1px solid #ddd; padding-top: 20px; font-style: italic; color: var(--bordo-light); }

/* ── 9. REASONS GRID ── */
.reasons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.reason-card { padding: 40px; border: 1px solid rgba(255,255,255,0.05); background: var(--navy-deep); transition: var(--transition-fast); position: relative; overflow: hidden; }
.reason-card:hover { border-color: var(--gold-muted); transform: translateY(-10px); }
.rc-num { font-family: var(--font-display); font-size: 3rem; opacity: 0.1; position: absolute; right: 20px; top: 10px; }

/* ── 10. CLOSING ── */
.closing { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.closing-bg-m { position: absolute; font-size: 40vw; font-family: var(--font-display); opacity: 0.03; pointer-events: none; }
.closing-ring { position: absolute; border: 1px solid rgba(176, 30, 60, 0.1); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0; }

.heart { color: var(--bordo-light); font-size: 2rem; animation: heartbeat 1.5s infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* ── 11. DIVIDER & UTILS ── */
.divider { display: flex; align-items: center; justify-content: center; padding: 40px 0; opacity: 0.3; }
.div-line { height: 1px; width: 100px; background: var(--gold-muted); }
.div-diamond { width: 8px; height: 8px; background: var(--bordo-light); transform: rotate(45deg); margin: 0 15px; }

/* ── 12. RESPONSIVE ── */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-trail { display: none; }
  .intro { grid-template-columns: 1fr; gap: 40px; }
  .timeline-spine { left: 20px; }
  .mem-item { flex-direction: column !important; align-items: flex-start; padding-left: 45px; }
  .mem-card { width: 100%; }
  .timeline-dot { left: 20px; }
  .letter-card { padding: 30px; margin: 0 15px; }
  .hero-name { font-size: 3.5rem; }
  .section { padding: 80px 5%; }
}