/* =====================================================================
   VOICE   — sakin, özgüvenli, biraz şiirsel; bir yazılım mühendisinin gece gökyüzü defteri
   IDEA    — sayfa bir uzay yolculuğu: her bölüm başka bir gezegenin yörüngesinde açılır
   PICTURE — arkada canlı WebGL evreni (gezegenler, halkalar, sarmal galaksi), kaydırdıkça kamera uçar
   COLOUR  — derin uzay #05050b, yıldız beyazı #f3ede6; vurgu rengi temaya göre (şampanya, lavanta, okyanus, zümrüt, gün batımı)
   TYPE    — Archivo (geniş, kalın başlıklar) + Instrument Serif italik vurgular
   LAYOUT  — tam ekran bantlar; metin bir yanda, gezegen diğer yanda; çerçeveli kapanış
   ===================================================================== */

:root {
  color-scheme: dark;
  --bg: #05050b;
  --ink: #f3ede6;
  --mute: #a9a3b8;
  --line: rgba(243, 237, 230, .14);
  --acc: #e8c79a;      /* varsayılan tema: Şampanya */
  --lil: #b8a6e8;
  --acc-ink: #1c140a;
  --card: rgba(12, 11, 24, .62);
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --pad: max(5vw, 18px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

:root[data-tema="lavanta"]   { --acc: #b9a5f2; --lil: #8fd0e6; --acc-ink: #140f24; }
:root[data-tema="okyanus"]   { --acc: #7fd3d8; --lil: #a9b6ff; --acc-ink: #06191b; }
:root[data-tema="zumrut"]    { --acc: #93dcb4; --lil: #e6cf98; --acc-ink: #0a1a12; }
:root[data-tema="gunbatimi"] { --acc: #ffb08a; --lil: #c7b3ff; --acc-ink: #1a0d10; }

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans); overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--acc); letter-spacing: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--acc); color: var(--acc-ink); }

/* ---------- 3D tuval ---------- */
#cosmos {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block;
  background: radial-gradient(ellipse at 30% 30%, #2a1030 0%, #0a0a1c 45%, #05050b 80%);
}
body.no-gl #cosmos {
  background:
    radial-gradient(circle at 72% 46%, #ffd8ae 0 9vmin, #d4705f 13vmin, #3a1530 17vmin, transparent 17.4vmin),
    radial-gradient(ellipse at 30% 30%, #2a1030 0%, #0a0a1c 45%, #05050b 80%);
}
main, header, footer { position: relative; z-index: 2; }

/* ---------- yükleme ekranı ---------- */
#loader {
  position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 6px;
  background: var(--bg); transition: opacity .9s var(--ease), visibility .9s;
}
#loader.done { opacity: 0; visibility: hidden; }
.ld-orbit { width: 84px; height: 84px; border: 1px solid var(--line); border-radius: 50%; position: relative; margin-bottom: 18px; animation: spin 2.4s linear infinite; }
.ld-orbit span { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 18px var(--acc); }
.ld-orbit::after { content: ""; position: absolute; inset: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd8ae, #c2547a 60%, #3a1530); }
.ld-name { margin: 0; font-size: 22px; font-weight: 700; font-stretch: 112%; }
.ld-count { margin: 0; font-size: 44px; font-weight: 800; font-stretch: 125%; font-variant-numeric: tabular-nums; }
.ld-msg { margin: 0; color: var(--mute); font-size: 14px; }
.ld-bar { width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin: 6px 0 4px; }
.ld-bar i { display: block; height: 100%; background: var(--acc); transform: scaleX(0); transform-origin: left; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- imleç parıltısı ---------- */
#cursor {
  position: fixed; left: 0; top: 0; z-index: 60; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 1px solid color-mix(in srgb, var(--acc) 70%, transparent); border-radius: 50%; pointer-events: none;
  transition: width .25s, height .25s, margin .25s, background .25s; mix-blend-mode: screen;
}
#cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: color-mix(in srgb, var(--acc) 12%, transparent); }
@media (hover: none), (pointer: coarse) { #cursor { display: none; } }

/* ---------- üst bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--pad); pointer-events: none;
}
.top > * { pointer-events: auto; }
.logo { display: grid; line-height: .9; text-transform: uppercase; }
.logo-a { font-family: var(--serif); font-size: 21px; letter-spacing: .02em; }
.logo-b { font-weight: 800; font-size: 19px; font-stretch: 112%; }
.top-r { display: flex; gap: 8px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px;
  background: var(--acc); color: var(--acc-ink); font-weight: 700; font-size: 14px; transition: transform .3s var(--ease);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc-ink); }
.pill:hover { transform: translateY(-2px); }
.menu-btn {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 5, 11, .5);
  backdrop-filter: blur(8px); display: grid; place-content: center; gap: 6px;
}
.menu-btn i { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
.menu-btn i:last-child { width: 11px; justify-self: end; }
.menu-open .menu-btn i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .menu-btn i:last-child { width: 18px; transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- açılır menü ---------- */
#menu {
  position: fixed; inset: 0; z-index: 25; display: grid; align-content: center; padding: 90px var(--pad) 40px;
  background: rgba(5, 5, 11, .92); backdrop-filter: blur(18px);
  clip-path: circle(0 at calc(100% - var(--pad) - 22px) 38px); transition: clip-path .8s var(--ease);
}
.menu-open #menu { clip-path: circle(150% at calc(100% - var(--pad) - 22px) 38px); }
#menu ul { list-style: none; margin: 0; padding: 0; }
#menu li a {
  display: block; font-size: clamp(40px, 9vw, 104px); font-weight: 800; font-stretch: 118%; line-height: 1.02;
  text-transform: uppercase; transition: color .3s, padding .4s var(--ease);
}
#menu li a:hover { color: var(--acc); padding-left: 18px; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 22px; margin: 34px 0 0; color: var(--mute); }
.menu-foot a:hover { color: var(--acc); }

/* ---------- ilerleme çizgisi ---------- */
.rail { position: fixed; right: 14px; top: 50%; z-index: 20; width: 2px; height: 120px; margin-top: -60px; background: var(--line); border-radius: 2px; }
.rail span { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 12px var(--acc); }
@media (max-width: 600px) { .rail { display: none; } }

/* ---------- ortak ---------- */
section { position: relative; }
.band { padding: clamp(90px, 12vw, 160px) var(--pad); min-height: 100vh; }
.kicker { margin: 0 0 16px; color: var(--acc); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.h1 { margin: 0; font-size: clamp(46px, 8.4vw, 128px); line-height: .92; font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: -.01em; }
.h1 em { display: block; text-transform: none; font-size: 1.06em; line-height: .95; }
.h2 { margin: 0 0 24px; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.04; font-weight: 800; font-stretch: 110%; text-wrap: balance; }
.lead { color: var(--mute); font-size: 17px; max-width: 46ch; margin: 22px 0 0; }
.sec-head { max-width: 1240px; margin: 0 auto 56px; }
.sec-head.right { display: grid; justify-items: end; text-align: right; }
.sec-head.right .kicker { flex-direction: row-reverse; }
.sec-head.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.sec-head.split .lead { margin: 0 0 10px; }
@media (max-width: 760px) { .sec-head.split { grid-template-columns: minmax(0, 1fr); } }

/* belirme animasyonu */
.rv { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- açılış ---------- */
#hero { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto auto; padding: 96px 0 30px; overflow: hidden; }
.marquee { overflow: hidden; white-space: nowrap; pointer-events: none; }
.marquee .track { display: inline-flex; gap: 48px; padding-right: 48px; animation: mq 38s linear infinite; }
.marquee.m2 .track { animation-direction: reverse; animation-duration: 46s; }
.marquee span { font-size: clamp(30px, 6vw, 84px); font-weight: 800; font-stretch: 125%; text-transform: uppercase; line-height: 1; }
.marquee span:nth-child(even) { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; color: var(--acc); }
.m1 { opacity: .9; } .m2 { opacity: .32; }
.m1 span:nth-child(odd) { -webkit-text-stroke: 1px rgba(243, 237, 230, .6); color: transparent; }
@keyframes mq { to { transform: translateX(-50%); } }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px var(--pad) 0; color: var(--mute); font-size: 14px; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status b { width: 8px; height: 8px; border-radius: 50%; background: #7fffd6; box-shadow: 0 0 10px #7fffd6; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero-name { margin: 0; align-self: end; padding: 0 var(--pad); display: grid; line-height: .82; text-transform: uppercase; }
.hn-a { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; font-size: clamp(64px, 13vw, 210px); color: var(--acc); }
.hn-b { font-weight: 900; font-stretch: 125%; font-size: clamp(56px, 14.5vw, 236px); letter-spacing: -.02em; justify-self: end; margin-top: -.08em; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding: 26px var(--pad) 0; }
.hero-sub { margin: 0; max-width: 44ch; font-size: 17px; color: var(--ink); text-shadow: 0 1px 14px rgba(5, 5, 11, .95); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; color: var(--mute); font-size: 14px; min-height: 44px; }
.sc-ring { width: 26px; height: 40px; border: 1px solid var(--line); border-radius: 14px; display: grid; justify-items: center; padding-top: 7px; }
.sc-ring i { width: 3px; height: 8px; border-radius: 2px; background: var(--acc); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- manifesto ---------- */
#manifesto { height: 220vh; }
.mf-sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; padding: 0 var(--pad); }
.mf-text {
  margin: 0; max-width: 1100px; text-align: center; text-wrap: balance;
  font-size: clamp(30px, 5.4vw, 80px); line-height: 1.04; font-weight: 800; font-stretch: 112%; text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(5, 5, 11, .9), 0 0 4px rgba(5, 5, 11, .6);
}
.mf-text .w { opacity: .14; transition: opacity .4s; }
.mf-text .w.on { opacity: 1; }
.mf-text em { text-transform: none; font-size: 1.08em; }

/* ---------- hakkımda ---------- */
.about { max-width: 600px; padding: clamp(22px, 3vw, 38px); border-radius: 22px; background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--line); }
#ab-text p { margin: 0 0 14px; color: #d8d2df; font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 2px; }
.facts dt { color: var(--mute); font-size: 13px; }
.facts dd { margin: 0; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 600px; margin-top: 14px; }
.stat { padding: 20px; border-radius: 18px; background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; font-stretch: 120%; line-height: 1; color: var(--acc); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; color: var(--mute); font-size: 14px; line-height: 1.35; }
.sample-note { margin: 18px 0 0; color: var(--mute); font-size: 13px; }
.sample-note::before { content: "✦ "; color: var(--acc); }

/* ---------- yetenekler ---------- */
.skills { display: grid; gap: 14px; max-width: 640px; margin-left: auto; }
.skill {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 18px; border-radius: 20px; background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--line);
  transition: border-color .4s, transform .5s var(--ease);
}
.skill:hover { border-color: color-mix(in srgb, var(--acc) 50%, transparent); transform: translateX(-6px); }
.skill svg { width: 104px; height: 80px; overflow: visible; }
.skill svg line { stroke: color-mix(in srgb, var(--lil) 45%, transparent); stroke-width: 1; stroke-dasharray: 3 3; }
.skill svg circle { fill: var(--ink); }
.skill svg circle.big { fill: var(--acc); filter: drop-shadow(0 0 4px var(--acc)); }
.skill:hover svg circle { animation: tw 1.4s ease-in-out infinite alternate; }
.skill svg circle:nth-child(odd) { animation-delay: .4s; }
@keyframes tw { to { opacity: .35; } }
.skill h3 { margin: 0; font-size: 20px; font-weight: 700; font-stretch: 110%; }
.skill h3 small { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 17px; color: var(--lil); margin-left: 6px; }
.skill p { margin: 4px 0 10px; color: var(--mute); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; background: rgba(255, 255, 255, .03); white-space: nowrap; }
@media (max-width: 520px) { .skill { grid-template-columns: minmax(0, 1fr); } .skill svg { width: 104px; } }

/* ---------- projeler ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; max-width: 1240px; margin: 0 auto; }
.proj {
  position: relative; display: grid; grid-template-rows: auto 1fr; text-align: left; padding: 0; overflow: hidden;
  border-radius: 22px; border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(16px);
  transition: transform .6s var(--ease), border-color .4s;
}
.proj:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--acc) 55%, transparent); }
.proj-sky { position: relative; height: 210px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--lil) 16%, transparent), transparent 70%); }
.proj-sky::before { content: ""; position: absolute; inset: 0; opacity: .7;
  background-image: radial-gradient(1px 1px at 12% 20%, #fff, transparent), radial-gradient(1px 1px at 82% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 64% 78%, var(--acc), transparent), radial-gradient(1px 1px at 28% 70%, var(--lil), transparent),
    radial-gradient(1px 1px at 92% 84%, #fff, transparent), radial-gradient(1px 1px at 44% 12%, #fff, transparent); }
.planet { --s: 132px; position: relative; width: var(--s); height: var(--s); border-radius: 50%; }
.planet i { position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background-position: 0 0; background-size: calc(var(--s) * 2) var(--s); background-repeat: repeat-x; background-color: #222; filter: hue-rotate(var(--hue)) saturate(1.08);
  animation: spinTex 38s linear infinite; }
.planet i::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .22), transparent 38%),
    radial-gradient(circle at 34% 34%, transparent 46%, rgba(3, 2, 10, .55) 70%, rgba(3, 2, 10, .96) 100%);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .08); }
.planet::before { content: ""; position: absolute; inset: -14%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--rc) 35%, transparent) 40%, transparent 70%); opacity: .55; }
.planet.ring::after { content: ""; position: absolute; left: -40%; right: -40%; top: 40%; height: 20%; border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--rc) 75%, transparent); border-top-color: transparent; transform: rotate(-14deg);
  box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .6); }
@keyframes spinTex { to { background-position: calc(var(--s) * -2) 0; } }
.planet { transition: transform 1.2s var(--ease); }
.proj:hover .planet { transform: scale(1.08); }
.proj-yr { position: absolute; top: 14px; right: 16px; font-size: 13px; color: var(--mute); }
.proj-body { padding: 20px 22px 24px; display: grid; align-content: start; gap: 6px; }
.proj-type { color: var(--lil); font-family: var(--serif); font-style: italic; font-size: 17px; }
.proj h3 { margin: 0; font-size: 26px; font-weight: 800; font-stretch: 115%; text-transform: uppercase; line-height: 1.05; }
.proj p { margin: 2px 0 12px; color: var(--mute); font-size: 15px; }
.proj-more { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--acc); }

/* ---------- dersler ---------- */
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; max-width: 1240px; margin: 0 auto; }
.course { padding: 22px; border-radius: 20px; background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--line); }
.course h3 { margin: 0 0 14px; font-size: 20px; font-weight: 800; font-stretch: 110%; line-height: 1.15; }
.course h3 small { display: block; margin-top: 2px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 17px; color: var(--lil); }
.course ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.course li { display: grid; gap: 1px; padding-left: 16px; position: relative; }
.course li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.course b { font-weight: 600; font-size: 15px; line-height: 1.35; }
.course span { color: var(--mute); font-size: 14px; line-height: 1.4; }

/* ---------- süreç ---------- */
#surec { min-height: auto; background: linear-gradient(180deg, transparent, rgba(5, 5, 11, .78) 18%, rgba(5, 5, 11, .78) 82%, transparent); }
.process { list-style: none; margin: 0 auto; padding: 0; max-width: 1240px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: linear-gradient(90deg, var(--acc), var(--lil), transparent); }
.process li { position: relative; padding: 46px 22px 0 0; }
.process li::before { content: ""; position: absolute; top: 4px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--acc); box-shadow: 0 0 14px color-mix(in srgb, var(--acc) 60%, transparent); }
.process h3 { margin: 0 0 8px; font-size: 26px; font-weight: 800; font-stretch: 115%; text-transform: uppercase; }
.process p { margin: 0; color: var(--mute); font-size: 15px; max-width: 30ch; }
@media (max-width: 860px) {
  .process { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-left: 30px; }
  .process::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--acc), var(--lil), transparent); }
  .process li { padding: 0; } .process li::before { left: -30px; }
}

/* ---------- deneyim ---------- */
.xp-wrap { max-width: 620px; }
.timeline { list-style: none; margin: 46px 0 0; padding: 0; display: grid; gap: 12px; }
.timeline li {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 20px; border-radius: 18px;
  background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--line);
}
.timeline time { color: var(--acc); font-size: 14px; font-weight: 600; line-height: 1.35; }
.timeline h3 { margin: 0; font-size: 19px; font-weight: 700; }
.timeline .at { color: var(--lil); font-family: var(--serif); font-style: italic; font-size: 17px; }
.timeline p { margin: 6px 0 0; color: var(--mute); font-size: 15px; }
@media (max-width: 520px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ---------- iletişim ---------- */
#iletisim { min-height: 100vh; padding: 90px 12px 12px; display: grid; }
.frame {
  border: 2px solid var(--acc); border-radius: 30px; padding: clamp(36px, 6vw, 80px) var(--pad) 22px;
  display: grid; grid-template-rows: auto auto auto 1fr auto; justify-items: center; text-align: center;
  background: linear-gradient(180deg, rgba(5, 5, 11, .25), rgba(5, 5, 11, .82) 65%);
}
.contact-h { margin: 0; font-size: clamp(42px, 7.6vw, 118px); line-height: .94; font-weight: 900; font-stretch: 120%; text-transform: uppercase; text-wrap: balance; max-width: 13ch; }
.contact-h em { text-transform: none; }
.contact-p { color: var(--mute); max-width: 48ch; margin: 22px 0 28px; font-size: 17px; }
.mail-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.mail { font-size: clamp(18px, 2.6vw, 30px); font-weight: 700; border-bottom: 1px solid var(--acc); padding-bottom: 2px; overflow-wrap: anywhere; }
.copy { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-size: 14px; }
.copy:hover { border-color: var(--acc); }
.ft-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; width: 100%; max-width: 620px; margin: 56px 0 40px; align-self: end; }
.ft-lab { margin: 0 0 10px; color: var(--mute); font-size: 13px; }
.ft-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ft-list a { font-size: 20px; font-weight: 800; font-stretch: 112%; text-transform: uppercase; transition: color .3s; }
.ft-list a:hover { color: var(--acc); }
.ft-bottom { width: 100%; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--mute); font-size: 13px; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- proje penceresi ---------- */
#modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; }
#modal[hidden] { display: none; }
.md-back { position: absolute; inset: 0; background: rgba(3, 3, 8, .72); backdrop-filter: blur(8px); animation: fade .4s; }
.md-card {
  position: relative; width: min(680px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  padding: clamp(24px, 4vw, 40px); border-radius: 26px; background: #0d0c1a; border: 1px solid var(--line);
  animation: pop .55s var(--ease);
}
.md-card h3 { margin: 4px 0 12px; font-size: clamp(32px, 5vw, 48px); font-weight: 900; font-stretch: 118%; text-transform: uppercase; line-height: 1; }
.md-card > p { color: #d8d2df; font-size: 17px; margin: 0 0 22px; }
.md-meta { margin: 0; color: var(--lil); font-family: var(--serif); font-style: italic; font-size: 18px; }
.md-planet { margin-bottom: 18px; }
.md-planet .planet { --s: 96px; }
.md-x { position: absolute; top: 16px; right: 16px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-size: 14px; }
.md-x:hover { border-color: var(--acc); }
.md-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 22px; margin-bottom: 22px; }
.md-cols p { margin: 0; font-weight: 600; }
.md-cols .md-yl { margin-top: 14px; }
.md-cols ul { margin: 0; padding-left: 18px; color: #d8d2df; }
@media (max-width: 520px) { .md-cols { grid-template-columns: minmax(0, 1fr); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.96); } }

/* metin okunurluğu için gezegen tarafını hafifçe karart */
#hakkimda, #deneyim, #dersler { background: linear-gradient(90deg, rgba(5, 5, 11, .55), transparent 60%); }
#yetenekler { background: linear-gradient(270deg, rgba(5, 5, 11, .55), transparent 60%); }

@media (max-width: 700px) {
  .about, .stats, .skills, .xp-wrap { max-width: none; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
  .stat { padding: 14px; }
  .ft-cols { gap: 20px; }
  .ft-list a { font-size: 17px; }
  #manifesto { height: 180vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .mf-text .w { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- tema seçici ---------- */
.tema { position: relative; }
.tema-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(5, 5, 11, .5); backdrop-filter: blur(8px); font-size: 14px; font-weight: 600; }
.tema-btn i { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--acc) 0 50%, var(--lil) 0); box-shadow: 0 0 10px color-mix(in srgb, var(--acc) 60%, transparent); }
.tema-btn:hover { border-color: var(--acc); }
.tema-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 236px; padding: 8px; border-radius: 16px;
  background: rgba(12, 11, 24, .92); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  display: grid; gap: 2px; animation: pop .35s var(--ease); }
.tema-pop[hidden] { display: none; }
.tema-pop button { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px;
  border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: 14px; }
.tema-pop button:hover { background: rgba(255, 255, 255, .06); }
.tema-pop button[aria-checked="true"] { background: rgba(255, 255, 255, .09); }
.tema-pop button[aria-checked="true"]::after { content: "✓"; position: absolute; right: 18px; color: var(--acc); }
.tema-pop button { position: relative; }
.tema-pop .sw { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); }
.tema-pop small { display: block; color: var(--mute); font-size: 12px; }
@media (max-width: 600px) { .tema-btn span { display: none; } .tema-btn { padding: 0 14px; } }

/* ---------- hangi gezegendeyiz ---------- */
.where { position: fixed; left: var(--pad); bottom: 18px; z-index: 20; margin: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 99px; background: rgba(5, 5, 11, .55); backdrop-filter: blur(10px); border: 1px solid var(--line);
  font-size: 13px; color: var(--mute); pointer-events: none; transition: opacity .5s, transform .5s var(--ease); }
.where svg { width: 18px; height: 18px; fill: none; stroke: var(--acc); stroke-width: 1.4; }
.where svg circle { fill: var(--acc); stroke: none; }
.where b { color: var(--ink); font-weight: 600; }
.where.swap { opacity: 0; transform: translateY(6px); }
.where.hide { opacity: 0; }

/* ---------- proje sekmeleri ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; max-width: 1240px; margin: 0 auto 22px; }
.tabs button { min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: rgba(12, 11, 24, .55);
  backdrop-filter: blur(10px); font-size: 14px; font-weight: 600; color: var(--mute); transition: .3s; }
.tabs button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--acc) 50%, transparent); }
.tabs button[aria-selected="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.tabs button sup { margin-left: 4px; font-size: 11px; opacity: .7; }
.proj.hide { display: none; }
@media (max-width: 600px) { .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .tabs button { flex: none; } }

/* ---------- üst menü bağlantıları ---------- */
.nav { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(5, 5, 11, .45); backdrop-filter: blur(12px); border: 1px solid var(--line); }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--mute); transition: color .25s, background .25s; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav a.act { color: var(--acc-ink); background: var(--acc); }
@media (min-width: 1081px) { .menu-btn { display: none; } .top .pill { display: none; } }
@media (max-width: 1080px) { .nav { display: none; } }

/* ---------- el kontrolü ---------- */
.hand-btn { position: fixed; right: var(--pad); bottom: 18px; z-index: 22; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
  border-radius: 99px; border: 1px solid var(--line); background: rgba(5, 5, 11, .6); backdrop-filter: blur(10px); font-size: 14px; font-weight: 600; transition: .3s; }
.hand-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--acc); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hand-btn:hover, .hand-btn.on { border-color: var(--acc); }
.hand-btn.on { background: var(--acc); color: var(--acc-ink); } .hand-btn.on svg { stroke: var(--acc-ink); }
.hand-panel { position: fixed; right: var(--pad); bottom: 74px; z-index: 22; width: 260px; padding: 10px; border-radius: 18px;
  background: rgba(10, 9, 20, .9); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); animation: pop .4s var(--ease); }
.hand-panel[hidden] { display: none; }
.hand-cam { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #000; }
.hand-cam video, .hand-cam canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hand-cam video { transform: scaleX(-1); opacity: .75; }
.hand-msg { margin: 10px 2px 4px; font-size: 14px; font-weight: 600; }
.hand-msg.bad { color: #ffb4a8; font-weight: 500; }
.hand-tip { margin: 0 2px 10px; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 12.5px; line-height: 1.4; color: var(--mute); }
.hand-tip b { color: var(--ink); font-weight: 600; }
.hand-dot { position: fixed; left: 0; top: 0; z-index: 70; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--acc); background: color-mix(in srgb, var(--acc) 22%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--acc) 60%, transparent);
  opacity: 0; transition: opacity .3s, width .2s, height .2s, margin .2s; }
.hand-dot.show { opacity: .9; }
.hand-dot.fist { width: 22px; height: 22px; margin: -11px 0 0 -11px; background: var(--acc); }
.hand-close { width: 100%; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-size: 13px; }
.hand-close:hover { border-color: var(--acc); }
@media (max-width: 600px) { .hand-btn span { display: none; } .hand-btn { padding: 0 12px; } .hand-panel { left: 12px; right: 12px; width: auto; } }
@media (hover: none) and (pointer: coarse) { .hand-btn { display: none; } }

/* ---------- dil düğmesi ---------- */
.lang-btn { min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 5, 11, .5);
  backdrop-filter: blur(8px); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.lang-btn:hover { border-color: var(--acc); color: var(--acc); }

/* ---------- proje linkleri ve galeri ---------- */
.md-links { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 22px; }
.md-links[hidden] { display: none; }
.md-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.md-link svg { width: 18px; height: 18px; fill: currentColor; }
.md-link:hover { border-color: var(--acc); color: var(--acc); }
.md-link.solid { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.md-link.solid:hover { color: var(--acc-ink); filter: brightness(1.08); }
.md-gal { margin: 0 0 22px; }
.md-gal[hidden] { display: none; }
.md-gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 14px; border: 1px solid var(--line); scrollbar-width: none; }
.md-gal-track::-webkit-scrollbar { display: none; }
.md-gal-track figure { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; aspect-ratio: 16 / 10; background: #0a0914; }
.md-gal-track img { width: 100%; height: 100%; object-fit: contain; }
.md-gal-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; font-size: 13px; color: var(--mute); }
.md-gal-nav[hidden] { display: none; }
.md-gal-nav button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-size: 16px; }
.md-gal-nav button:hover { border-color: var(--acc); }
.proj-has { margin-left: 10px; padding: 2px 8px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--acc) 50%, transparent); font-style: normal; font-size: 11px; font-weight: 700; }

/* ---------- proje çizimleri (js/illus.js) ---------- */
.proj-sky .illus, .md-art .illus { width: 100%; height: 100%; display: block; }
.proj-sky { padding: 16px 16px 6px; }
.proj-sky .illus { transition: transform .8s var(--ease); }
.proj:hover .proj-sky .illus { transform: scale(1.04) translateY(-3px); }
.proj-shot { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.md-art { height: 210px; margin: 0 0 16px; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--lil) 14%, transparent), transparent 70%); padding: 10px; }
.md-art .proj-shot { border-radius: 8px; }
.illus text { font-weight: 600; }
.illus .i-win { fill: rgba(255, 255, 255, .035); stroke: var(--line); stroke-width: 1.2; }
.illus .i-row { fill: rgba(255, 255, 255, .055); stroke: var(--line); stroke-width: 1; }
.illus .i-card { fill: color-mix(in srgb, var(--lil) 16%, transparent); stroke: var(--line); }
.illus .i-face { fill: rgba(255, 255, 255, .035); stroke: var(--line); stroke-width: 1.4; }
.illus .i-line { fill: none; stroke: var(--line); stroke-width: 1.2; }
.illus .i-acc { fill: var(--acc); }
.illus .i-lil { fill: var(--lil); }
.illus .i-dim { fill: rgba(243, 237, 230, .16); }
.illus .i-warn { fill: #ff8a7a; }
.illus .i-on { fill: var(--acc-ink); }
.illus .i-on-bar { fill: color-mix(in srgb, var(--acc-ink) 45%, transparent); }
.illus .i-on-stroke { fill: var(--acc-ink); }
.illus .i-txt { fill: rgba(243, 237, 230, .88); }
.illus .i-txt-dim { fill: rgba(243, 237, 230, .45); }
.illus .i-txt-acc { fill: var(--acc); }
.illus .i-txt-lil { fill: var(--lil); }
.illus .i-txt-warn { fill: #ff8a7a; }
.illus .i-txt-bar { fill: rgba(243, 237, 230, .5); }
.illus [class^="i-stroke"] { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.illus .i-stroke-acc { stroke: var(--acc); }
.illus .i-stroke-lil { stroke: var(--lil); }
.illus .i-stroke-txt { stroke: rgba(243, 237, 230, .8); }
.illus .i-stroke-warn { stroke: #ff8a7a; }
.illus .i-ring { fill: rgba(5, 5, 11, .6); stroke: rgba(243, 237, 230, .7); stroke-width: 1.5; }
.illus .i-zone { fill: rgba(255, 138, 122, .1); stroke: #ff8a7a; stroke-width: 1.2; stroke-dasharray: 5 4; }
.illus .i-person { fill: rgba(243, 237, 230, .5); }
.illus .i-box { fill: none; stroke: #ff8a7a; stroke-width: 2; }
.illus .i-shield { fill: color-mix(in srgb, var(--acc) 12%, transparent); stroke: var(--acc); stroke-width: 2; }
.md-cols:has(#md-info[hidden]) { grid-template-columns: minmax(0, 1fr); }
#md-info[hidden] { display: none; }

/* ---------- fırsatlara açık rozeti ---------- */
.avail { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 14px; border-radius: 999px;
  border: 1px solid rgba(127, 255, 214, .35); background: rgba(127, 255, 214, .08); backdrop-filter: blur(8px);
  color: #c9ffee; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .3s, border-color .3s; }
.avail:hover { background: rgba(127, 255, 214, .16); border-color: rgba(127, 255, 214, .6); }
.avail b { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #7fffd6; box-shadow: 0 0 10px #7fffd6; }
.avail b::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #7fffd6; animation: av-ping 2.2s ease-out infinite; }
@keyframes av-ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(2); opacity: 0; } }
.avail .av-s { display: none; }
@media (max-width: 600px) { .avail .av-l { display: none; } .avail .av-s { display: inline; } .avail { padding: 0 12px; } }
@media (max-width: 380px) { .avail .av-s { display: none; } .avail { padding: 0; width: 44px; justify-content: center; } }
.avail[hidden] { display: none; }

/* ---------- iletişim formu ---------- */
.frame { grid-template-rows: auto auto auto auto auto 1fr auto; }
.cform { width: 100%; max-width: 640px; display: grid; gap: 14px; text-align: left; padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line); border-radius: 20px; background: rgba(5, 5, 11, .55); backdrop-filter: blur(10px); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .cf-row { grid-template-columns: minmax(0, 1fr); } }
.cf-f { display: grid; gap: 6px; font-size: 13px; color: var(--mute); }
.cf-f input, .cf-f textarea { font: inherit; font-size: 16px; color: var(--ink); width: 100%; min-height: 46px; padding: 11px 14px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); transition: border-color .2s, background .2s; }
.cf-f textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.cf-f input:focus, .cf-f textarea:focus { outline: none; border-color: var(--acc); background: rgba(255, 255, 255, .07); }
.cf-f.err input, .cf-f.err textarea { border-color: #ff8a7a; }
.cf-topic { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cf-topic legend { font-size: 13px; color: var(--mute); margin-bottom: 6px; padding: 0; }
.cf-topic label { position: relative; }
.cf-topic input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cf-topic span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; transition: background .2s, border-color .2s, color .2s; }
.cf-topic input:checked + span { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 600; }
.cf-topic input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 3px; }
.cf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cf-send { min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--acc); color: var(--acc-ink); font-weight: 700; font-size: 15px;
  transition: transform .2s, opacity .2s; }
.cf-send:hover { transform: translateY(-2px); }
.cf-send:disabled { opacity: .6; transform: none; cursor: wait; }
.cf-msg { margin: 0; font-size: 14px; color: var(--mute); flex: 1 1 220px; }
.cf-msg[data-k="ok"] { color: #7fffd6; }
.cf-msg[data-k="err"] { color: #ff8a7a; }
.cf-msg[data-k="warn"] { color: var(--acc); }
.cf-or { margin: 26px 0 14px; color: var(--mute); font-size: 14px; }
.cv-btn { display: inline-flex; align-items: center; border-color: var(--acc); color: var(--acc); font-weight: 600; } .cv-btn[hidden] { display: none; }

/* ---------- hafif mod (3D kapalı) ---------- */
body.lite #cosmos { display: none; }
body.lite::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url(../assets/lite-bg.jpg) center / cover no-repeat, radial-gradient(ellipse at 30% 30%, #2a1030 0%, #0a0a1c 45%, #05050b 80%); }
@media (orientation: portrait) { body.lite::before { background-image: url(../assets/lite-bg-m.jpg), radial-gradient(ellipse at 30% 30%, #2a1030 0%, #0a0a1c 45%, #05050b 80%); } }
body.lite .where { display: none; }
.tema-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.tema-pop .mod-sw { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 10px; border: 0; border-radius: 10px;
  background: none; text-align: left; font-size: 14px; font-weight: 600; }
.tema-pop .mod-sw:hover { background: rgba(255, 255, 255, .06); }
.tema-pop .mod-sw small { display: block; font-weight: 400; color: var(--mute); font-size: 12px; margin-top: 2px; }
.tema-pop .mod-sw i { flex: none; position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .25s; }
.tema-pop .mod-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform .25s; }
.tema-pop .mod-sw[aria-checked="true"] i { background: var(--acc); }
.tema-pop .mod-sw[aria-checked="true"] i::after { transform: translateX(16px); background: var(--acc-ink); }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  max-width: calc(100% - 24px); padding: 8px 8px 8px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(12, 12, 22, .92); backdrop-filter: blur(10px); font-size: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); }
.toast[hidden] { display: none; }
.toast button { min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--acc); background: none; color: var(--acc); font-weight: 600; white-space: nowrap; }
.toast button[hidden] { display: none; }
.toast .toast-x { border-color: transparent; color: var(--mute); padding: 0 10px; font-size: 18px; }
body.lite #hero { background: linear-gradient(180deg, rgba(5, 5, 11, 0) 70%, rgba(5, 5, 11, .9)), url(../assets/lite-hero.jpg) center / cover no-repeat; }
@media (orientation: portrait) { body.lite #hero { background-image: linear-gradient(180deg, rgba(5, 5, 11, 0) 70%, rgba(5, 5, 11, .9)), url(../assets/lite-hero-m.jpg); } }
