/* ============================================================
   savasdogan.net — Savaş Doğan
   Dark premium + vivid accent
   ============================================================ */
:root {
  --bg: #0b0c0f;
  --bg-2: #101218;
  --surface: #14171e;
  --surface-2: #1a1e27;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef0f3;
  --muted: #9aa1ad;
  --faint: #6b7280;
  --accent: #ffb224;
  --accent-ink: #16130a;
  --font-head: "Space Grotesk", "Helvetica Neue", sans-serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--accent-ink); }

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand {
  font-family: var(--font-head); font-weight: 700; font-size: 19px;
  text-decoration: none; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 600;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden;
}
.lang-switch button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: 700 12.5px var(--font-mono); padding: 6px 12px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-switch button.active { background: var(--accent); color: var(--accent-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 15.5px;
  text-decoration: none; border-radius: 10px; padding: 13px 24px;
  cursor: pointer; border: 0; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-accent {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 4px 24px color-mix(in srgb, var(--accent) 28%, transparent);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 420px at 78% 18%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
  position: relative;
}
.eyebrow {
  font: 600 13px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(40px, 5.4vw, 62px); margin: 20px 0 22px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 560px; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-photo { position: relative; max-width: 380px; margin-left: auto; }
.hero-photo img {
  display: block; width: 100%; height: auto;
  border-radius: 18px; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 22%;
  border: 1px solid var(--border-strong);
}
.hero-photo::after {
  content: ""; position: absolute; inset: -12px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 30px; z-index: -1;
}
.hero-badge {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  font: 600 13.5px var(--font-mono);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #43d67c; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: pulse 2.2s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(67, 214, 124, 0.5); } 55% { box-shadow: 0 0 0 7px rgba(67, 214, 124, 0); } }
}

/* ---------- Stats band ---------- */
.stats { border-block: 1px solid var(--border); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat b { font-family: var(--font-head); font-size: 34px; font-weight: 700; display: block; color: var(--accent); letter-spacing: -0.02em; }
.stat span { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.sec-head { max-width: 680px; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 16px 0 14px; }
.sec-head p { color: var(--muted); font-size: 18px; text-wrap: pretty; }

/* ---------- About ---------- */
.about { background: var(--bg-2); border-block: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text p { color: var(--muted); margin-bottom: 18px; text-wrap: pretty; }
.about-text p strong { color: var(--text); }

.timeline { display: flex; flex-direction: column; }
.t-item {
  display: grid; grid-template-columns: 110px 1fr; gap: 18px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.t-item:last-child { border-bottom: 0; }
.t-years { font: 600 13px var(--font-mono); color: var(--accent); padding-top: 3px; }
.t-role { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; }
.t-org { color: var(--muted); font-size: 14.5px; }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px 28px; display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.card-num { font: 700 13px var(--font-mono); color: var(--accent); }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.tag {
  font: 600 12.5px var(--font-mono); color: var(--muted);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 11px;
}

/* ---------- Why / punch ---------- */
.why { background: var(--bg-2); border-block: 1px solid var(--border); }
.punch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.punch {
  border: 1px solid var(--border); border-radius: 16px; padding: 30px 28px;
  background: var(--surface); display: flex; flex-direction: column; gap: 10px;
}
.punch h3 { font-size: 23px; }
.punch h3 mark { background: transparent; color: var(--accent); }
.punch p { color: var(--muted); font-size: 15.5px; }

/* ---------- Skills ---------- */
.skill-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-group { border: 1px solid var(--border); border-radius: 16px; padding: 28px; background: var(--surface); }
.skill-group h3 { font-size: 17px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.skill-group h3::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-size: 14px; font-weight: 600; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 7px 15px;
}

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { border-top: 2px solid var(--border-strong); padding-top: 22px; position: relative; }
.step-num { font: 700 14px var(--font-mono); color: var(--accent); display: block; margin-bottom: 12px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 16px 0 14px; }
.contact-info > p { color: var(--muted); font-size: 18px; margin-bottom: 28px; text-wrap: pretty; }
.contact-line {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-top: 1px solid var(--border); font-weight: 600; font-size: 16px;
}
.contact-line a { color: var(--accent); text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }
.contact-line .lbl { font: 600 12.5px var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; min-width: 86px; }

.form { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font: 600 13px var(--font-mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px;
  color: var(--text); font: 500 16px var(--font-body); padding: 13px 15px;
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--faint); }
.form-status { font-size: 14px; font-weight: 600; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #f87171; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Önceden inline duran başlık stilleri (CSP: style-src 'unsafe-inline' gerekmesin) */
.about-title { font-size: clamp(28px, 3.4vw, 38px); margin: 16px 0 22px; }
.exp-heading { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }

/* ---------- Footer ---------- */
footer { padding: 36px 0 44px; border-top: 1px solid var(--border); }
.foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }
.foot .spacer { flex: 1; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  body:not([data-anim="off"]) .reveal {
    opacity: 0; transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  body:not([data-anim="off"]) .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-photo { max-width: 340px; margin-inline: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--border); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(2n) { border-left: 1px solid var(--border); }
  .about-grid, .punch-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .cards, .skill-groups { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .nav-inner { gap: 12px; }
  .hero-badge { left: 10px; }
}
