/* mykdevsec — koyu, teknik, sade. Renkler logodan: nane (güvenlik) → mavi (geliştirme). */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(../fonts/space-grotesk-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(../fonts/space-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(../fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(../fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0a0e14; --ink-2: #0f141c; --ink-3: #151c27; --line: #1f2835;
  --text: #e8edf5; --muted: #8d99ab; --mint: #39f5b5; --blue: #5b8cff;
  --grad: linear-gradient(100deg, var(--mint), var(--blue));
  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(18px, 5vw, 64px);
  --radius: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.mono { font-family: var(--mono); }
.defs { position: absolute; }
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: #39f5b555; }

/* Arka plan: hafif nokta ızgarası + kenar parıltısı */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, #5b8cff14, transparent 60%),
    radial-gradient(700px 500px at -10% 40%, #39f5b50f, transparent 60%),
    radial-gradient(#ffffff0d 1px, transparent 1px) 0 0 / 28px 28px; }

/* Üst çubuk */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 28px;
  padding: 14px var(--pad); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: #0a0e14cc; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.brand img { height: 31px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.lang { display: flex; background: var(--ink-3); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.lang button { font: 600 12px var(--mono); color: var(--muted); background: none; border: 0; padding: 6px 10px; border-radius: 99px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--ink); }

/* Giriş */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 110px var(--pad) 90px; overflow: hidden; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-copy { position: relative; z-index: 1; max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .08em; color: var(--mint);
  border: 1px solid #39f5b533; background: #39f5b50d; padding: 6px 12px; border-radius: 99px; margin: 0 0 24px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1 { font-size: clamp(44px, 7vw, 96px); line-height: 1; letter-spacing: -.035em; font-weight: 650; margin: 0 0 26px; }
.line { display: block; overflow: hidden; padding-bottom: .08em; }
.line > span { display: block; }
.lead { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); max-width: 560px; margin: 0 0 36px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 16px var(--sans); padding: 14px 22px;
  border-radius: 12px; border: 1px solid var(--line); cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s, border-color .25s; color: var(--text); background: none; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--grad); color: var(--ink); border: 0; box-shadow: 0 10px 40px -12px #39f5b580; }
.btn.ghost:hover { border-color: #39f5b566; background: #39f5b50d; }
.btn.small { padding: 10px 16px; font-size: 14px; }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1; display: grid; justify-items: center; gap: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 1px; height: 40px; background: linear-gradient(var(--mint), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }

/* Bölüm başlıkları */
section { position: relative; }
.section-title { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -.03em; line-height: 1.05; font-weight: 620; margin: 0 0 56px; text-align: center; }

/* Dev + Sec */
.split { padding: 18vh var(--pad) 14vh; max-width: 1280px; margin: 0 auto; }
.split-grid { display: grid; grid-template-columns: 1fr minmax(160px, 240px) 1fr; gap: 28px; align-items: center; }
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.panel h3 { font-size: 32px; letter-spacing: -.02em; margin: 6px 0 10px; }
.panel-lead { color: var(--muted); margin: 0 0 22px; }
.tag { font-size: 13px; color: var(--mint); margin: 0; display: flex; align-items: center; gap: 8px; }
.dev .tag { color: var(--blue); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list li { position: relative; padding-left: 26px; }
.list li::before { content: "›"; position: absolute; left: 4px; top: -1px; font-family: var(--mono); color: var(--mint); font-weight: 700; }
.dev .list li::before { color: var(--blue); }
.shield svg { width: 100%; height: auto; filter: drop-shadow(0 0 40px #39f5b533); }
.cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* İmleç ışığı: kartın üstünde fareyi izleyen yumuşak parıltı */
.spot { position: relative; overflow: hidden; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), #39f5b516, transparent 60%); }
.spot:hover::after { opacity: 1; }

/* İlkeler */
.principles { padding: 12vh var(--pad); max-width: 1280px; margin: 0 auto; }
.pr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pr { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-height: 250px; display: flex; flex-direction: column; }
.pr .num { font-size: 13px; color: var(--mint); margin-bottom: auto; }
.pr h3 { font-size: 22px; margin: 34px 0 10px; letter-spacing: -.01em; }
.pr p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Terminal */
.terminal-sec { padding: 12vh var(--pad); max-width: 980px; margin: 0 auto; }
.terminal { background: #070a0f; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -40px #000, 0 0 0 1px #ffffff05 inset; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--ink-2); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3442; }
.term-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.term-body { margin: 0; padding: 22px 24px 26px; font-size: clamp(12.5px, 1.5vw, 15px); line-height: 1.75; color: #c9d3e1; min-height: 20.5em; white-space: pre-wrap; }
.term-body .p { color: var(--blue); }
.term-body .ok { color: var(--mint); }
.term-body .dim { color: #5e6a7c; }
.term-body .caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--mint); animation: blink 1.1s steps(1) infinite; }
.note { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 0; }

/* Projeler */
.projects { padding: 12vh var(--pad); max-width: 1180px; margin: 0 auto; }
.proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.proj { display: block; text-decoration: none; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s; }
a.proj:hover { transform: translateY(-6px); border-color: #39f5b555; }
.proj img { border-radius: 22%; margin-bottom: 26px; box-shadow: 0 16px 40px -18px #000; }
.proj h3 { font-size: 28px; margin: 8px 0 10px; letter-spacing: -.02em; }
.proj p { color: var(--muted); margin: 0 0 22px; }
.proj .tag { color: var(--muted); }
.live, .pending { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.live { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.pending { background: #f5b939; animation: pulse 1.6s infinite; }
.proj .link { color: var(--mint); font-size: 14px; }
.next { border-style: dashed; background: transparent; }
.next-mark { width: 72px; height: 72px; margin-bottom: 26px; display: grid; place-items: center; border-radius: 22%; background: var(--ink-3); border: 1px solid var(--line); }
.next-mark img { width: 46px; height: 46px; margin: 0; box-shadow: none; opacity: .8; }
.next p:last-child { margin-bottom: 0; }

/* İletişim */
.contact { padding: 16vh var(--pad) 18vh; text-align: center; }
.contact h2 { font-size: clamp(44px, 7.5vw, 110px); letter-spacing: -.04em; line-height: 1; margin: 0 0 22px; font-weight: 650; }
.contact .lead { margin: 0 auto 40px; }
.mail-row { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.mail { font-size: clamp(18px, 2.4vw, 28px); text-decoration: none; padding: 14px 24px; border-radius: 14px; border: 1px solid #39f5b544; background: #39f5b50a; transition: background .25s, box-shadow .25s; }
.mail:hover { background: #39f5b516; box-shadow: 0 0 40px -10px #39f5b588; }

.footer { display: flex; align-items: center; gap: 14px; padding: 28px var(--pad) max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(36px); }
.no-gl #gl { display: none; }
.no-gl-note { position: fixed; bottom: 12px; left: 12px; z-index: 30; font-size: 12px; background: var(--ink-3); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; margin: 0; }

@media (max-width: 1024px) {
  .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .split-grid { grid-template-columns: 1fr; }
  .shield { order: -1; width: 150px; margin: 0 auto 8px; }
  .proj-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { align-items: end; padding-bottom: 72px; }
  .scroll-cue { display: none; }
  .pr-grid { grid-template-columns: 1fr; }
  .pr { min-height: 0; }
  .pr h3 { margin-top: 18px; }
  .panel, .proj { padding: 24px; }
  .section-title { margin-bottom: 36px; }
  .brand img { height: 26px; }
  .term-body { font-size: clamp(10px, 2.9vw, 12.5px); padding: 18px 16px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 404 */
.nf { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; }
.nf img { margin-bottom: 8px; }
.nf h1 { font-size: clamp(34px, 6vw, 56px); margin: 0; }
.nf .lead { margin: 0 0 12px; }
.nf-code { color: #c9d3e1; font-size: 15px; }
.nf-code .p { color: var(--blue); }
.nf-code .dim { color: #5e6a7c; }
.nf-code .err { color: #ff7a8a; }
