/* ===== Tema ===== */
:root {
  --bg: #0b1220;
  --bg-2: #0f1a2e;
  --card: #132038;
  --line: #1f2f4d;
  --text: #e6edf7;
  --muted: #9aabc6;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --ok: #34d399;
  --radius: 14px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #04121f;
}
.logo span b { color: var(--accent); }
.menu { display: flex; gap: 6px; list-style: none; align-items: center; }
.menu a { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 500; transition: .2s; }
.menu a:hover, .menu a.active { color: var(--text); background: var(--card); }
.menu .btn { color: #04121f; margin-left: 8px; }
.menu .btn:hover { color: #04121f; }
.burger { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121f; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s;
  font-size: 1rem; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }

/* ===== Hero ===== */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 80% 10%, rgba(34, 211, 238, .18), transparent 70%),
    radial-gradient(500px 300px at 10% 90%, rgba(59, 130, 246, .18), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 99px; font-size: .85rem; font-weight: 600;
  background: rgba(34, 211, 238, .1); color: var(--accent); border: 1px solid rgba(34, 211, 238, .25);
  margin-bottom: 22px;
}
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.12; letter-spacing: -.03em; margin-bottom: 20px; }
h1 .grad, h2 .grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 580px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.terminal {
  background: #070d18; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); overflow: hidden;
  font-family: "JetBrains Mono", Consolas, monospace; font-size: .85rem;
}
.terminal-bar { display: flex; gap: 7px; padding: 12px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.terminal-bar i:nth-child(2) { background: #f59e0b; }
.terminal-bar i:nth-child(3) { background: #22c55e; }
.terminal pre { padding: 18px; color: var(--muted); white-space: pre-wrap; }
.terminal .c { color: var(--accent); }
.terminal .g { color: var(--ok); }

/* ===== Sections ===== */
section { padding: 90px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.02em; line-height: 1.2; margin: 10px 0 14px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .45); }
.card h3 { font-size: 1.15rem; margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: .96rem; }
.icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(34, 211, 238, .1); color: var(--accent); border: 1px solid rgba(34, 211, 238, .2);
}
.card .more { display: inline-flex; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: .92rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat b { display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--accent); }
.stat span { color: var(--muted); font-size: .95rem; }

/* Service detail */
.service {
  display: grid; grid-template-columns: 70px 1fr; gap: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  scroll-margin-top: 90px;
}
.service .icon { width: 64px; height: 64px; }
.service h3 { font-size: 1.35rem; margin-bottom: 8px; }
.service > div > p { color: var(--muted); margin-bottom: 16px; }
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.checks li { position: relative; padding-left: 26px; font-size: .95rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}

/* Steps */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  position: absolute; top: 22px; left: 28px; font-weight: 800; font-size: 1.6rem; color: var(--accent); opacity: .8;
}

/* Page header */
.page-hero { padding: 80px 0 60px; text-align: center; position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 250px at 50% 0%, rgba(34, 211, 238, .15), transparent 70%);
}
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.1rem; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.avatar {
  aspect-ratio: 1; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(34, 211, 238, .2), rgba(59, 130, 246, .2)), var(--card);
  display: grid; place-items: center; color: var(--accent);
}
.about p { color: var(--muted); margin-bottom: 16px; }

/* Hakkımda: ağ şeması */
.net-art {
  aspect-ratio: 1; width: 100%; padding: 18px; border-radius: 22px; border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, .14), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 30px 30px,
    var(--card);
}
.net-art svg { width: 100%; height: 100%; overflow: visible; }
.net-art .ring { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 6; }
.net-art .links line { stroke: rgba(34, 211, 238, .35); stroke-width: 1.5; }
.net-art .packet circle { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.net-art .node > circle { fill: var(--bg); stroke: rgba(34, 211, 238, .5); stroke-width: 1.5; transition: stroke .2s, fill .2s; }
.net-art .node:hover > circle { stroke: var(--accent); fill: var(--bg-2); }
.net-art .node g { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.net-art .label text { fill: var(--muted); font-size: 12px; font-weight: 600; text-anchor: middle; font-family: inherit; }
.net-art .mono { fill: #04121f; font-size: 24px; font-weight: 800; text-anchor: middle; font-family: inherit; letter-spacing: -.02em; }
.net-art .pulse {
  fill: none; stroke: var(--accent); stroke-width: 2;
  transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .net-art .packet { display: none; }
  .net-art .pulse { animation: none; opacity: 0; }
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.chip { padding: 7px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: .88rem; }

/* CTA */
.cta {
  text-align: center; padding: 60px 30px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .15), rgba(59, 130, 246, .15)), var(--card);
  border: 1px solid rgba(34, 211, 238, .3);
}
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }

/* Contact */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; }
.contact-info .item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-info .item small { color: var(--muted); display: block; }
.contact-info .item a:hover { color: var(--accent); }
form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: .9rem; font-weight: 600; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; font: inherit;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--muted); font-size: .85rem; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 50px 0 30px; color: var(--muted); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer h4 { color: var(--text); margin-bottom: 12px; }
.footer ul { list-style: none; display: grid; gap: 6px; }
.footer a:hover { color: var(--accent); }
.copy { border-top: 1px solid var(--line); padding-top: 22px; text-align: center; font-size: .85rem; }

/* Projeler */
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.filter {
  padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card);
  color: var(--muted); cursor: pointer; font: inherit; font-weight: 500; font-size: .92rem; transition: .2s;
}
.filter:hover { color: var(--text); border-color: var(--accent); }
.filter.active { color: #04121f; background: var(--accent); border-color: var(--accent); }
.project { display: flex; flex-direction: column; }
.project .meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .85rem; margin-top: 16px; }
.project dt { font-weight: 600; font-size: .88rem; margin-top: 12px; }
.project dd { color: var(--muted); font-size: .93rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; }
.tags span {
  font-size: .78rem; padding: 4px 10px; border-radius: 99px;
  background: rgba(34, 211, 238, .08); color: var(--accent); border: 1px solid rgba(34, 211, 238, .2);
}
.hidden { display: none !important; }
#web-siteleri { scroll-margin-top: 70px; }
.site-bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 9px;
  background: var(--bg); border: 1px solid var(--line); font-family: "JetBrains Mono", Consolas, monospace; font-size: .82rem;
}
.site-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; flex: none; }
.site-bar i:nth-child(2) { background: #f59e0b; }
.site-bar i:nth-child(3) { background: #22c55e; }
.site-bar span { margin-left: 8px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center { text-align: center; margin-top: 36px; }

/* Blog listesi */
.posts { max-width: 860px; margin: 0 auto; }
.post { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.post:first-child { padding-top: 0; }
.post time { color: var(--muted); font-size: .9rem; }
.post h3 { font-size: 1.3rem; line-height: 1.35; margin-bottom: 8px; }
.post h3 a:hover { color: var(--accent); }
.post p { color: var(--muted); }
.post .tags { padding-top: 12px; }

/* Makale */
.post-meta { display: flex; gap: 10px 18px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: .92rem; margin-top: 16px; }
.prose { max-width: 760px; margin: 0 auto; font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin: 42px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.prose p, .prose li { color: #c4d0e3; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 18px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: "JetBrains Mono", Consolas, monospace; font-size: .88em; background: var(--card); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.prose pre {
  background: #070d18; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 20px;
  overflow-x: auto; font-family: "JetBrains Mono", Consolas, monospace; font-size: .86rem; line-height: 1.6;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose blockquote {
  border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 12px 12px 0;
  padding: 14px 20px; margin-bottom: 20px;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.back { display: inline-flex; gap: 6px; color: var(--accent); font-weight: 600; margin-top: 40px; }

/* Deneyim zaman çizelgesi */
.timeline { border-left: 2px solid var(--line); padding-left: 28px; display: grid; gap: 30px; max-width: 820px; margin: 0 auto; }
.tl { position: relative; }
.tl::before {
  content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--bg-2);
}
.tl small { color: var(--accent); font-weight: 600; }
.tl h3 { font-size: 1.12rem; margin: 2px 0 4px; }
.tl p { color: var(--muted); font-size: .96rem; }

/* Sosyal linkler */
.socials { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Reveal animation */
/* Sadece JS çalışıyorsa gizle; JS yoksa içerik her zaman görünür */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.js .reveal.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid, .about, .contact { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .avatar, .net-art { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .menu {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 14px 20px;
    display: none;
  }
  .menu.open { display: flex; }
  .menu .btn { margin: 6px 0 0; justify-content: center; }
  .grid-3, .grid-4, .grid-2, .row, .checks, .footer-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; padding: 24px; }
  .post { grid-template-columns: 1fr; gap: 6px; }
  .prose { font-size: 1rem; }
  section { padding: 64px 0; }
  .hero { padding: 70px 0 60px; }
}
