/*
 * Cypher Software — Developer Dark UI v4
 * Tek kaynaklı, çakışmasız frontend tasarım sistemi.
 */
:root {
  --page: #07090c;
  --page-soft: #0b0f14;
  --surface: #10151c;
  --surface-2: #151b23;
  --ink: #f4f7fa;
  --ink-soft: #c9d2dc;
  --muted: #96a2af;
  --line: #222b35;
  --line-strong: #34404d;
  --accent: #d6a84d;
  --accent-strong: #efc66f;
  --accent-soft: #2a2114;
  --dark: #07090c;
  --dark-2: #111821;
  --dark-text: #f4f7fa;
  --dark-muted: #aeb8c4;
  --success: #72d49b;
  --danger: #ff9191;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 10px 32px rgba(0, 0, 0, 0.28);
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
  --font-ui: "Segoe UI Variable", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --font-code: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 2%, rgba(176, 124, 34, 0.10), transparent 27rem),
    radial-gradient(circle at 96% 23%, rgba(76, 104, 136, 0.07), transparent 25rem),
    linear-gradient(180deg, #fbfcfd 0%, var(--page) 44%, #f9fafb 100%);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(29, 41, 54, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 41, 54, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

main, section, article, aside, header, footer, nav, div { min-width: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, li, a, strong, span { overflow-wrap: break-word; }
h1, h2, h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}
p { text-wrap: pretty; }
::selection { background: #e8d2a7; color: #16120b; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}
.section { position: relative; padding: 92px 0; }
.section-sm { position: relative; padding: 54px 0; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: 0 0 26px;
  width: 26px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 450px);
  align-items: end;
  gap: clamp(24px, 5vw, 70px);
  margin-bottom: 38px;
}
.section-head h2 {
  max-width: 780px;
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
}
.section-head p { margin: 0; color: var(--muted); }

/* Arka plandaki dil parçacıkları */
.code-particles { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.code-particle {
  position: absolute;
  color: var(--particle-color);
  font: 700 11px/1 var(--font-code);
  letter-spacing: 0.08em;
  opacity: 0;
  mix-blend-mode: multiply;
  animation: codeFloat var(--duration) linear var(--delay) infinite, codePulse 4s ease-in-out var(--delay) infinite;
}
.code-particles.paused .code-particle { animation-play-state: paused; }
@keyframes codeFloat {
  0% { transform: translate3d(0, 42px, 0); opacity: 0; }
  14% { opacity: 0.08; }
  50% { transform: translate3d(var(--drift), -22px, 0); opacity: 0.15; }
  88% { opacity: 0.05; }
  100% { transform: translate3d(0, -105px, 0); opacity: 0; }
}
@keyframes codePulse { 0%, 100% { filter: brightness(0.8); } 50% { filter: brightness(1.08); } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(29, 41, 54, 0.09);
  background: rgba(250, 251, 252, 0.90);
  box-shadow: 0 6px 26px rgba(24, 34, 45, 0.045);
  backdrop-filter: blur(18px);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; flex: 0 1 196px; min-width: 160px; }
.brand img { width: 196px; height: 52px; object-fit: contain; object-position: left center; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 10px;
  color: #434d59;
  font-size: 0.86rem;
  font-weight: 680;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.nav a:hover, .nav a.active { color: var(--accent-strong); background: var(--accent-soft); }
.nav-cta { margin-left: 7px; border: 1px solid #d8bf8d; background: #fff; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-size: 1.15rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  padding: 86px 0 96px;
  overflow: clip;
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -225px;
  top: 62px;
  border: 1px solid rgba(165, 111, 24, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 78px rgba(165, 111, 24, 0.018), 0 0 0 155px rgba(165, 111, 24, 0.012);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
  align-items: center;
  gap: clamp(42px, 6vw, 76px);
}
.hero h1 {
  max-width: 760px;
  margin: 18px 0 22px;
  font-size: clamp(3rem, 5.8vw, 5.35rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
}
.hero h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(112deg, #855711, #c38a2c 48%, #6f460b);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero p { max-width: 680px; margin: 0; color: #596574; font-size: clamp(1rem, 1.35vw, 1.12rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 11px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 720;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); border-color: #b9924e; box-shadow: 0 12px 28px rgba(29, 41, 54, 0.10); }
.btn-primary { border-color: #9d6815; color: #fff; background: linear-gradient(135deg, #b47c22, #79500f); box-shadow: 0 12px 28px rgba(121, 80, 15, 0.20); }
.btn-primary:hover { border-color: #6f480b; background: linear-gradient(135deg, #a66f18, #684208); }
.btn-ghost { background: rgba(255, 255, 255, 0.74); }

.hero-panel {
  position: relative;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(213, 169, 83, 0.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #202833, #090d12 72%);
  box-shadow: 0 34px 90px rgba(19, 27, 36, 0.24);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: -55% 34% 55% -35%;
  background: radial-gradient(circle, rgba(218, 175, 92, 0.20), transparent 64%);
}
.terminal { position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; background: #070a0e; }
.terminal-top { display: flex; gap: 7px; padding: 13px 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.terminal-top i { width: 8px; height: 8px; border-radius: 50%; background: #6d737b; }
.terminal-top i:nth-child(1) { background: #c06969; }
.terminal-top i:nth-child(2) { background: #c29b4b; }
.terminal-top i:nth-child(3) { background: #5a9a72; }
.terminal-body {
  min-height: 310px;
  padding: 23px;
  color: #c8d1dc;
  font: 500 0.82rem/1.65 var(--font-code);
  overflow-x: auto;
  scrollbar-width: thin;
}
.terminal-line { display: block; width: max-content; min-width: 100%; margin: 0 0 8px; white-space: pre; }
.terminal-line .gold { color: #e7bd69; }
.terminal-line .green { color: #75c993; }
.terminal-line .dim { color: #718091; }
.pulse-line { height: 1px; background: linear-gradient(90deg, transparent, #d3a44b, transparent); animation: scan 3.8s linear infinite; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* İstatistikler */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  gap: 1px;
  box-shadow: var(--shadow-sm);
}
.stat { min-height: 128px; display: flex; flex-direction: column; justify-content: center; padding: 24px 26px; background: rgba(255, 255, 255, 0.96); }
.stat strong { display: block; color: var(--accent-strong); font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 780; line-height: 1; letter-spacing: -0.05em; }
.stat span { display: block; margin-top: 9px; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

/* Grid ve kartlar */
.grid-2, .grid-3, .grid-4 { display: grid; align-items: stretch; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  height: 100%;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 11px 0 10px; font-size: clamp(1.14rem, 1.7vw, 1.32rem); }
.card p { margin: 0; color: var(--muted); }
.service-card { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.service-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -62px;
  bottom: -65px;
  border: 1px solid rgba(165, 111, 24, 0.12);
  border-radius: 50%;
}
.service-icon {
  align-self: flex-start;
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #d9c49c;
  border-radius: 9px;
  color: var(--accent-strong);
  background: #fffaf0;
  font: 750 0.75rem/1 var(--font-code);
  letter-spacing: 0.06em;
}
.feature-list { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 18px; color: #4e5966; font-size: 0.9rem; line-height: 1.45; }
.feature-list li::before { content: ""; position: absolute; left: 1px; top: 0.64em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

/* Proje kartları */
.showcase-dark {
  color: var(--dark-text);
  border-block: 1px solid rgba(214, 172, 89, 0.16);
  background:
    radial-gradient(circle at 15% 8%, rgba(214, 172, 89, 0.11), transparent 30rem),
    linear-gradient(135deg, #0a0e13, #151c24 58%, #080b0f);
}
.showcase-dark h2 { color: var(--dark-text); }
.showcase-dark .eyebrow { color: #e2bd73; }
.showcase-dark .eyebrow::before { background: #d1a253; }
.showcase-dark .section-head p { color: var(--dark-muted); }
.project-card {
  position: relative;
  display: block;
  min-height: 405px;
  overflow: hidden;
  border: 1px solid rgba(216, 180, 109, 0.22);
  border-radius: 22px;
  background: #0d1218;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.25);
}
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.44; transition: transform 0.45s ease, opacity 0.45s ease; }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 10, 14, 0.08) 15%, rgba(7, 10, 14, 0.94) 78%); }
.project-card:hover img { transform: scale(1.035); opacity: 0.56; }
.project-overlay { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 28px; }
.project-category, .tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #d9c49c;
  border-radius: 999px;
  color: var(--accent-strong);
  background: #fffaf0;
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.045em;
  line-height: 1.25;
  text-transform: uppercase;
}
.project-card .project-category, .project-card .tag { color: #f0ce89; border-color: rgba(226, 189, 115, 0.40); background: rgba(9, 13, 18, 0.72); }
.project-overlay h3 { margin: 12px 0 7px; color: #fff; font-size: clamp(1.35rem, 2.3vw, 1.65rem); }
.project-overlay p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #c2ccd6;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.project-link, .link-arrow { display: inline-flex; margin-top: 17px; color: var(--accent-strong); font-weight: 720; }
.project-card .project-link { color: #e4bd70; }

/* Ekip ve medya */
.team-card { display: flex; flex-direction: column; text-align: left; }
.team-avatar {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 21px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, #111820, #252f3a);
  object-fit: contain;
}
.team-role, .media-meta { color: var(--accent-strong); font-size: 0.73rem; font-weight: 780; letter-spacing: 0.07em; line-height: 1.4; text-transform: uppercase; }
.team-card h3 { margin: 7px 0 9px; }
.skills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 17px; }
.team-card .skills { justify-content: flex-start; }
.media-card { display: flex; flex-direction: column; }
.media-card img { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 14px; background: #111820; object-fit: contain; padding: 16px; }
.media-card h3 { margin: 9px 0 10px; font-size: 1.27rem; }
.media-card .link-arrow { margin-top: auto; padding-top: 17px; }
.empty-state { grid-column: 1 / -1; padding: 42px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255, 255, 255, 0.55); color: var(--muted); text-align: center; }

/* İç sayfalar */
.page-hero {
  padding: 92px 0 68px;
  border-bottom: 1px solid rgba(29, 41, 54, 0.08);
  background: linear-gradient(180deg, rgba(228, 235, 242, 0.48), rgba(255, 255, 255, 0));
}
.page-hero h1 { max-width: 920px; margin: 13px 0 20px; font-size: clamp(2.55rem, 5.3vw, 4.65rem); }
.page-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.1rem); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr); gap: clamp(34px, 5vw, 62px); align-items: start; }
.quote-card { padding: 34px 36px; border: 1px solid #e4d4b4; border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: #fbf6ed; box-shadow: var(--shadow-sm); }
.quote-card strong { display: block; color: #2d261b; font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 680; line-height: 1.4; letter-spacing: -0.025em; }
.process { counter-reset: step; }
.process-card { position: relative; padding: 62px 23px 24px; }
.process-card::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 23px;
  top: 22px;
  color: var(--accent-strong);
  font: 760 0.79rem/1 var(--font-code);
  letter-spacing: 0.06em;
}
.detail-shell { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; }
.detail-cover, .article-cover { width: 100%; max-height: 560px; border: 1px solid var(--line); border-radius: 22px; background: #111820; box-shadow: var(--shadow); object-fit: contain; padding: 20px; }
.detail-content { color: var(--ink-soft); white-space: pre-line; }
.detail-content h2 { margin: 15px 0 20px; font-size: clamp(1.8rem, 3.3vw, 2.65rem); }
.detail-content h3 { margin: 31px 0 9px; font-size: 1.22rem; }
.detail-content p, .article-body p { color: #4f5b68; }
.detail-side { position: sticky; top: 106px; color: var(--dark-text); border-color: rgba(215, 176, 100, 0.22); background: linear-gradient(145deg, #1d2630, #0b1016); box-shadow: 0 24px 65px rgba(15, 21, 29, 0.20); }
.detail-list { display: grid; gap: 14px; }
.detail-list div { padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.detail-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-list span { display: block; color: #9eabb8; font-size: 0.76rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.detail-list strong { display: block; margin-top: 4px; color: #f4f7fa; line-height: 1.5; }
.article-body { max-width: 850px; margin-inline: auto; }
.article-body p { font-size: 1.04rem; white-space: pre-line; }
.article-cover { margin-bottom: 34px; }

/* Formlar */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #3d4752; font-size: 0.78rem; font-weight: 760; letter-spacing: 0.035em; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #919ba7; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #a87525; box-shadow: 0 0 0 4px rgba(168, 117, 37, 0.10); }
.field textarea { min-height: 155px; resize: vertical; }
.form-status { display: none; margin-top: 15px; padding: 13px 14px; border-radius: 11px; }
.form-status.show { display: block; }
.form-status.success { border: 1px solid rgba(38, 115, 72, 0.24); background: rgba(38, 115, 72, 0.07); color: var(--success); }
.form-status.error { border: 1px solid rgba(170, 53, 53, 0.22); background: rgba(170, 53, 53, 0.06); color: var(--danger); }
.contact-panel { padding: 32px; }
.contact-list { display: grid; gap: 18px; }
.contact-list a, .contact-list span { display: block; color: #424d59; }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.filter-btn { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: #56616e; cursor: pointer; font-weight: 650; }
.filter-btn.active, .filter-btn:hover { border-color: var(--accent-strong); background: var(--accent-strong); color: #fff; }

/* CTA ve footer */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 54px);
  border: 1px solid rgba(214, 172, 89, 0.26);
  border-radius: var(--radius-lg);
  color: var(--dark-text);
  background:
    radial-gradient(circle at 11% 17%, rgba(214, 172, 89, 0.15), transparent 24rem),
    linear-gradient(125deg, #202a35, #080c11 72%);
  box-shadow: 0 28px 75px rgba(16, 23, 31, 0.18);
}
.cta::after { content: "</>"; position: absolute; right: 26px; bottom: -44px; color: rgba(214, 172, 89, 0.06); font: 800 clamp(7rem, 18vw, 13rem)/1 var(--font-code); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { max-width: 800px; margin: 0; color: #fff; font-size: clamp(1.9rem, 4vw, 3.35rem); }
.cta p { max-width: 690px; color: var(--dark-muted); }
.cta .eyebrow { color: #e4bd70; }
.cta .eyebrow::before { background: #d2a34f; }

.site-footer {
  padding: 66px 0 25px;
  border-top: 1px solid rgba(214, 172, 89, 0.16);
  color: var(--dark-text);
  background: radial-gradient(circle at 15% 0, rgba(214, 172, 89, 0.08), transparent 25rem), #080c11;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.7fr) minmax(190px, 0.8fr); gap: 44px; }
.footer-brand img { width: 220px; height: 60px; object-fit: contain; object-position: left center; }
.footer-brand p { max-width: 440px; color: #aeb8c4; }
.footer-title { margin-bottom: 15px; color: #e0b96d; font-size: 0.76rem; font-weight: 760; letter-spacing: 0.09em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; color: #bdc6d0; }
.footer-links a { width: fit-content; max-width: 100%; }
.footer-links a:hover { color: #f1cf8c; }
.copyright { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #7f8a96; font-size: 0.79rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.58s ease, transform 0.58s ease; }
.reveal.visible { opacity: 1; transform: none; }
.error-page { min-height: 70vh; display: grid; place-items: center; padding: 70px 0; text-align: center; }
.error-page .container { max-width: 800px; }
.error-page h1 { margin: 24px 0 14px; font-size: clamp(2rem, 5vw, 3.5rem); }
.error-code { color: rgba(121, 80, 15, 0.15); font-size: clamp(6rem, 18vw, 12rem); font-weight: 820; letter-spacing: -0.08em; line-height: 0.72; }

/* Tablet */
@media (max-width: 1120px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: absolute;
    left: 24px;
    right: 24px;
    top: calc(100% - 2px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { justify-content: flex-start; width: 100%; min-height: 44px; padding: 11px 13px; white-space: normal; }
  .nav-cta { margin-left: 0; }
  .hero-grid, .split, .detail-shell { grid-template-columns: 1fr; }
  .hero-grid { gap: 45px; }
  .hero-panel { max-width: 720px; }
  .detail-side { position: static; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Mobil */
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 66px 0; }
  .section-sm { padding: 42px 0; }
  .nav-wrap { min-height: 72px; }
  .brand { flex-basis: 174px; min-width: 145px; }
  .brand img { width: 174px; height: 46px; }
  .nav { left: 14px; right: 14px; }
  .hero { min-height: auto; padding: 70px 0 74px; }
  .hero::after { width: 320px; height: 320px; right: -195px; top: 55px; }
  .hero h1 { font-size: clamp(2.55rem, 13.3vw, 4.15rem); line-height: 1.01; }
  .hero-panel { padding: 13px; border-radius: 20px; }
  .terminal-body { min-height: 245px; padding: 17px; font-size: 0.73rem; }
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 17px; }
  .section-head h2 { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  .stats, .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .stat { min-height: 108px; }
  .field.full { grid-column: auto; }
  .project-card { min-height: 360px; }
  .project-overlay { padding: 23px; }
  .project-overlay p { -webkit-line-clamp: 2; }
  .team-avatar { aspect-ratio: 16 / 9; }
  .page-hero { padding: 70px 0 50px; }
  .page-hero h1 { font-size: clamp(2.35rem, 11vw, 3.65rem); }
  .quote-card { padding: 27px 25px; }
  .cta { padding: 34px 23px; }
  .cta::after { right: -20px; }
  .actions { align-items: stretch; }
  .actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .copyright { flex-direction: column; gap: 8px; }
}

@media (max-width: 390px) {
  .container { width: min(100% - 22px, var(--container)); }
  .brand { flex-basis: 155px; }
  .brand img { width: 155px; }
  .menu-toggle { width: 42px; height: 42px; flex-basis: 42px; }
  .hero h1 { font-size: 2.45rem; }
  .card { padding: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .code-particles { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}


/* =========================================================
   Developer Dark palette — v4 layout and typography preserved
   ========================================================= */
html { background: var(--page); color-scheme: dark; }
body {
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 2%, rgba(214, 168, 77, 0.14), transparent 27rem),
    radial-gradient(circle at 96% 23%, rgba(76, 111, 149, 0.10), transparent 25rem),
    linear-gradient(180deg, #05070a 0%, var(--page) 44%, #090c10 100%);
}
body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}
::selection { background: #d7aa50; color: #090704; }
.code-particle { mix-blend-mode: screen; }

.site-header {
  border-bottom-color: rgba(214, 168, 77, 0.14);
  background: rgba(7, 9, 12, 0.90);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.34);
}
.nav a { color: #c6d0da; }
.nav a:hover,
.nav a.active { color: var(--accent-strong); background: var(--accent-soft); }
.nav-cta { border-color: rgba(214, 168, 77, 0.50); background: #11171e; }
.menu-toggle { background: #11171e; color: var(--ink); box-shadow: var(--shadow-sm); }

.hero::after {
  border-color: rgba(214, 168, 77, 0.18);
  box-shadow: 0 0 0 78px rgba(214, 168, 77, 0.025), 0 0 0 155px rgba(214, 168, 77, 0.016);
}
.hero h1 em { background: linear-gradient(112deg, #c18b2e, #f1ca73 48%, #a66f18); -webkit-background-clip: text; background-clip: text; }
.hero p { color: #aab5c1; }
.btn { border-color: var(--line-strong); background: #11171e; color: var(--ink); }
.btn:hover { border-color: #d3a24a; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34); }
.btn-primary { border-color: #d1a048; color: #0a0804; background: linear-gradient(135deg, #e2b456, #9b6717); box-shadow: 0 12px 30px rgba(214, 168, 77, 0.20); }
.btn-primary:hover { border-color: #f0c971; background: linear-gradient(135deg, #efc66f, #b37b21); }
.btn-ghost { background: rgba(17, 23, 30, 0.82); }

.stats { background: var(--line); }
.stat { background: rgba(15, 20, 27, 0.97); }
.stat strong { color: var(--accent-strong); }
.card { background: linear-gradient(145deg, #11171e, #0c1117); box-shadow: var(--shadow-sm); }
.service-card::after { border-color: rgba(214, 168, 77, 0.16); }
.service-icon,
.project-category,
.tag { border-color: rgba(214, 168, 77, 0.42); color: var(--accent-strong); background: #241c11; }
.feature-list li { color: #b0bbc6; }

.showcase-dark {
  border-block-color: rgba(214, 172, 89, 0.18);
  background:
    radial-gradient(circle at 15% 8%, rgba(214, 172, 89, 0.13), transparent 30rem),
    linear-gradient(135deg, #05070a, #101720 58%, #06080b);
}
.team-avatar,
.media-card img,
.detail-cover,
.article-cover { border-color: var(--line); background: #0a0f15; }
.empty-state { background: rgba(15, 20, 27, 0.66); }

.page-hero {
  border-bottom-color: rgba(214, 168, 77, 0.12);
  background: linear-gradient(180deg, rgba(24, 31, 40, 0.76), rgba(7, 9, 12, 0));
}
.quote-card { border-color: #47391f; border-left-color: var(--accent); background: #17130d; }
.quote-card strong { color: #f2dfb5; }
.detail-content p,
.article-body p { color: #b2bdc8; }
.detail-side { border-color: rgba(215, 176, 100, 0.25); background: linear-gradient(145deg, #18212b, #090d12); box-shadow: 0 24px 65px rgba(0, 0, 0, 0.38); }

.field label { color: #c8d2dc; }
.field input,
.field textarea,
.field select { border-color: var(--line-strong); background: #0c1117; color: var(--ink); }
.field input::placeholder,
.field textarea::placeholder { color: #6f7d8b; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: #d2a24c; box-shadow: 0 0 0 4px rgba(210, 162, 76, 0.13); }
.form-status.success { border-color: rgba(114, 212, 155, 0.30); background: rgba(114, 212, 155, 0.08); }
.form-status.error { border-color: rgba(255, 145, 145, 0.28); background: rgba(255, 145, 145, 0.07); }
.contact-list a,
.contact-list span { color: #bac4cf; }
.filter-btn { border-color: var(--line-strong); background: #11171e; color: #b5c0cb; }
.filter-btn.active,
.filter-btn:hover { border-color: #d6a84d; background: #d6a84d; color: #090704; }

.error-code { color: rgba(239, 198, 111, 0.16); }

@media (max-width: 1120px) {
  .nav { border-color: var(--line); background: rgba(10, 14, 19, 0.99); box-shadow: var(--shadow); }
}

/* =========================================================
   Production hardening & accessibility — v5
   ========================================================= */
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border: 1px solid var(--accent-strong);
  border-radius: 10px;
  background: #0c1117;
  color: var(--accent-strong);
  font-weight: 750;
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible {
  outline: 3px solid rgba(239, 198, 111, .9);
  outline-offset: 3px;
}
.nav a:focus-visible,
.btn:focus-visible,
.filter-btn:focus-visible,
.menu-toggle:focus-visible { outline-offset: 2px; }
.site-header.scrolled { background: rgba(7, 9, 12, .97); box-shadow: 0 12px 34px rgba(0,0,0,.42); }
body.menu-open { overflow: hidden; }
.noscript-note {
  display: block;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(214,168,77,.22);
  background: #21180b;
  color: #f1d99f;
  text-align: center;
  font-size: .86rem;
}
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.consent-field { margin-top: 2px; }
.consent {
  display: grid;
  grid-template-columns: 20px minmax(0,1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted) !important;
  font-size: .82rem !important;
  font-weight: 550 !important;
  line-height: 1.55;
  cursor: pointer;
}
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.consent a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.detail-visit { width: 100%; margin-top: 22px; }
.article-body a:not(.btn) { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.form-status { line-height: 1.5; }
.form-status.show { display: block; }
button:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .6; transform: none !important; }
.api-unavailable [data-services]:empty::after,
.api-unavailable [data-projects]:empty::after,
.api-unavailable [data-team]:empty::after,
.api-unavailable [data-posts]:empty::after {
  content: "İçerik servisine şu anda ulaşılamıyor.";
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}
@media (min-width: 900px) {
  main > .section:not(:first-child),
  main > section.section-sm { content-visibility: auto; contain-intrinsic-size: 700px; }
}
@media (max-width: 1120px) {
  body.menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 19;
    background: rgba(0,0,0,.46);
    backdrop-filter: blur(2px);
  }
  .site-header { z-index: 30; }
  .nav { z-index: 31; max-height: calc(100vh - 92px); overflow-y: auto; }
}
@media (forced-colors: active) {
  .btn, .card, .project-card, .stats, .field input, .field textarea, .field select { border: 1px solid CanvasText; }
}

.social-links, .team-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social-links[hidden] { display: none; }
.social-links a, .team-links a { color: var(--gold); font-size: .82rem; font-weight: 800; letter-spacing: .03em; text-decoration: none; }
.social-links a:hover, .team-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.team-links { margin-top: auto; padding-top: 18px; }
