/* ============================================================
   Dursun Tokgöz — Kişisel Portföy
   style.css · Developer-edasında terminal/IDE temalı tasarım
   ============================================================ */

/* ----------  Tasarım Jetonları  ---------- */
:root {
  --bg: #0a0a0f;
  --bg-soft: #11111a;
  --bg-card: #15151f;
  --bg-elev: #1a1a26;
  --border: #26263a;
  --border-soft: #1d1d2b;
  --text: #e6e6f0;
  --text-dim: #9a9ab0;
  --text-mute: #6a6a82;
  --accent: #7c5cff;
  --accent-2: #00e0c6;
  --accent-warn: #ffb454;
  --accent-err: #ff5c7c;
  --grid-line: rgba(124, 92, 255, 0.06);

  --mono: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
  --sans: 'Sora', 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

/* Light tema */
body.theme-light {
  --bg: #f6f7fb;
  --bg-soft: #eef0f6;
  --bg-card: #ffffff;
  --bg-elev: #ffffff;
  --border: #d8dae6;
  --border-soft: #e6e7f0;
  --text: #14141f;
  --text-dim: #4a4a60;
  --text-mute: #8a8aa0;
  --accent: #6b46ff;
  --accent-2: #00b39a;
  --grid-line: rgba(107, 70, 255, 0.05);
  --shadow: 0 8px 30px rgba(20, 20, 40, .08);
}

/* ----------  Reset  ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  transition: background .3s var(--ease), color .3s var(--ease);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }
code, pre { font-family: var(--mono); }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

/* ----------  Header  ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 15, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease);
}
body.theme-light .site-header { background: rgba(246, 247, 251, .88); }
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; }
.brand-icon {
  color: var(--accent); background: rgba(124, 92, 255, .12);
  padding: 4px 8px; border-radius: 6px; font-size: .95rem;
  border: 1px solid var(--border);
}
.brand-name { letter-spacing: -.01em; }
.brand-domain { color: var(--text-mute); font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-family: var(--mono); font-size: .85rem; padding: 7px 12px;
  border-radius: 7px; color: var(--text-dim); transition: all .2s var(--ease);
  border: 1px solid transparent;
}
.nav-link:hover { color: var(--text); background: var(--bg-elev); }
.nav-link.active { color: var(--accent); border-color: var(--border); background: var(--bg-elev); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.cmd-palette-toggle, .theme-toggle, .nav-admin-btn {
  background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--text-dim); padding: 7px 11px; border-radius: 8px;
  cursor: pointer; font-family: var(--mono); font-size: .8rem;
  transition: all .2s var(--ease); line-height: 1;
}
.cmd-palette-toggle:hover, .theme-toggle:hover, .nav-admin-btn:hover { color: var(--accent); border-color: var(--accent); }
.cmd-prefix { opacity: .7; margin-right: 1px; }
.mobile-nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s var(--ease); }
.scroll-progress {
  height: 2px; background: var(--accent); width: 0; transition: width .1s linear;
  box-shadow: 0 0 8px var(--accent);
}

/* ----------  Hero  ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  overflow: hidden; padding: 80px 0 120px;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; width: 100%; }
.hero-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .82rem; color: var(--text-dim);
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.4;} }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 20px; }
.hero-line { font-family: var(--mono); }
.hero-typed { color: var(--accent); text-shadow: 0 0 24px rgba(124,92,255,.4); }
.hero-cursor { color: var(--accent-2); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: var(--text-dim); max-width: 620px; margin-bottom: 36px; }
.hero-name-card {
  display: inline-block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 28px; margin-bottom: 32px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-name-card::before { content:""; position:absolute; inset:0; background: linear-gradient(135deg, rgba(124,92,255,.08), transparent); }
.name-card-label { font-family: var(--mono); font-size: .78rem; color: var(--text-mute); margin-bottom: 6px; }
.name-card-value { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.name-card-role { font-family: var(--mono); color: var(--accent-2); font-size: .92rem; margin-top: 4px; }
.name-card-loc { font-size: .88rem; color: var(--text-dim); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.loc-pin { color: var(--accent); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .76rem; color: var(--text-mute);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: bob 2s var(--ease) infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
.scroll-hint-arrow { font-size: 1.1rem; }

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .9rem; font-weight: 500;
  padding: 12px 22px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); cursor: pointer;
  transition: all .2s var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 6px 20px rgba(124,92,255,.3); }
.btn-primary:hover { background: #6a4aff; color: #fff; box-shadow: 0 8px 26px rgba(124,92,255,.45); }
.btn-ghost { background: transparent; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-text { background: none; border: none; padding: 4px 0; color: var(--accent); }
.btn-text:hover { background: none; transform: translateX(4px); }

/* ----------  Sections  ---------- */
.section { padding: 90px 0; }
.section-head { margin-bottom: 48px; }
.section-tag { font-family: var(--mono); font-size: .82rem; color: var(--accent); display: block; margin-bottom: 10px; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; }
.section-line { height: 2px; width: 60px; background: var(--accent); margin-top: 16px; box-shadow: 0 0 10px var(--accent); }

/* ----------  Terminal card  ---------- */
.terminal-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.terminal-bar {
  background: var(--bg-elev); padding: 10px 14px; display: flex; align-items: center; gap: 7px;
  border-bottom: 1px solid var(--border);
}
.term-dot { width: 12px; height: 12px; border-radius: 50%; }
.term-red { background: #ff5c56; } .term-amber { background: #ffb454; } .term-green { background: #27c93f; }
.term-title { margin-left: 12px; font-family: var(--mono); font-size: .8rem; color: var(--text-mute); }
.terminal-body { padding: 18px; font-family: var(--mono); font-size: .85rem; line-height: 1.7; color: var(--text-dim); overflow-x: auto; }
.t-prompt { color: var(--accent); } .t-path { color: var(--accent-2); }
.t-out { color: var(--text-dim); display: block; }
.t-err { color: var(--accent-err); display: block; }
.term-blip { animation: blink 1s steps(2) infinite; color: var(--accent-2); }
.cmd-link { display: block; margin-top: 10px; color: var(--accent); }

/* ----------  About  ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.about-grid-wide { grid-template-columns: 1fr .85fr; }
.about-bio { font-size: 1.1rem; color: var(--text-dim); margin-bottom: 18px; }
.about-bio-full { color: var(--text-dim); margin-bottom: 26px; line-height: 1.75; }
.about-heading { font-family: var(--mono); font-size: 1.05rem; color: var(--accent); margin: 32px 0 14px; }
.about-meta, .info-table { display: grid; gap: 10px; }
.meta-row, .info-row { display: flex; gap: 14px; font-family: var(--mono); font-size: .9rem; padding: 8px 0; border-bottom: 1px dashed var(--border-soft); }
.meta-key, .info-key { color: var(--text-mute); min-width: 90px; }
.meta-val, .info-val { color: var(--text); }
.info-val a { color: var(--accent); }

/* ----------  Stats  ---------- */
.stats-section { padding: 50px 0; background: var(--bg-soft); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { text-align: center; padding: 26px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: all .25s var(--ease); }
.stat-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.stat-icon { font-size: 1.5rem; color: var(--accent); margin-bottom: 10px; }
.stat-value { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: .85rem; color: var(--text-mute); margin-top: 4px; font-family: var(--mono); }

/* ----------  Skills  ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 48px; }
.skill-bar { position: relative; }
.skill-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .92rem; }
.skill-name { font-weight: 500; }
.skill-level { font-family: var(--mono); color: var(--accent); }
.skill-track { height: 8px; background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: 100px; overflow: hidden; }
.skill-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 100px; transition: width 1.2s var(--ease); width: 0; }
.skill-cat { font-family: var(--mono); font-size: .7rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .05em; }
.cat-infra { color: var(--accent-2); } .cat-dev { color: var(--accent); } .cat-sec { color: var(--accent-err); }

/* ----------  Values  ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.values-grid-large { grid-template-columns: repeat(3, 1fr); }
.value-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 26px; transition: all .25s var(--ease); position: relative; }
.value-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card-large { padding: 40px 30px; }
.value-index { position: absolute; top: 18px; right: 22px; font-family: var(--mono); color: var(--text-mute); font-size: .8rem; }
.value-icon { font-size: 2.2rem; margin-bottom: 18px; }
.value-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
.value-desc { color: var(--text-dim); font-size: .95rem; }

/* ----------  Services  ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: all .25s var(--ease); }
.service-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon { font-size: 2rem; margin-bottom: 16px; }
.service-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.service-desc { color: var(--text-dim); font-size: .92rem; margin-bottom: 16px; }
.service-link { font-family: var(--mono); font-size: .85rem; color: var(--accent); }

.services-list { display: grid; gap: 18px; }
.service-row { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; transition: all .25s var(--ease); }
.service-row:hover { border-color: var(--accent); }
.service-row-idx { font-family: var(--mono); color: var(--text-mute); font-size: .85rem; writing-mode: vertical-rl; transform: rotate(180deg); }
.service-row-body { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.service-row-icon { font-size: 1.8rem; }
.service-row-text { flex: 1; min-width: 220px; }
.service-row-title { font-size: 1.35rem; font-weight: 600; margin-bottom: 6px; }
.service-row-desc { color: var(--text-dim); font-size: .95rem; }

/* service detail */
.service-detail-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 48px; align-items: start; }
.service-detail-icon { font-size: 3rem; margin-bottom: 24px; }
.service-detail-desc { color: var(--text-dim); font-size: 1.1rem; line-height: 1.8; }
.service-detail-en { margin-top: 24px; color: var(--text-mute); font-size: .95rem; }
.service-detail-side { display: grid; gap: 16px; }

/* ----------  CTA  ---------- */
.cta-section { padding: 60px 0 100px; }
.cta-card { text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 60px 40px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.cta-card::before { content:""; position:absolute; inset:0; background: radial-gradient(ellipse at top, rgba(124,92,255,.12), transparent 60%); }
.cta-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 16px; position: relative; }
.cta-text { color: var(--text-dim); max-width: 620px; margin: 0 auto 30px; position: relative; }

/* ----------  Page hero (inner pages)  ---------- */
.page-hero { padding: 80px 0 30px; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.02em; margin: 12px 0 10px; }
.page-lead { color: var(--text-dim); max-width: 620px; font-size: 1.1rem; }

/* ----------  Timeline  ---------- */
.timeline { position: relative; padding-left: 30px; border-left: 2px solid var(--border); display: grid; gap: 30px; }
.timeline-item { position: relative; }
.timeline-marker { font-family: var(--mono); font-size: .8rem; color: var(--accent); position: absolute; left: -44px; top: 0; width: 28px; text-align: right; }
.timeline-item::before { content:""; position:absolute; left:-36px; top:6px; width:12px; height:12px; border-radius:50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.timeline-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.timeline-desc { color: var(--text-dim); }

/* ----------  Contact  ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.form-row { margin-bottom: 20px; }
.form-label { display: block; font-family: var(--mono); font-size: .82rem; color: var(--accent); margin-bottom: 8px; }
.form-input { width: 100%; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 13px 16px; border-radius: 10px; font-family: var(--mono); font-size: .92rem; transition: border .2s var(--ease); }
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.15); }
.form-textarea { resize: vertical; min-height: 140px; }
.contact-info { display: grid; gap: 22px; }
.contact-channels { display: grid; gap: 12px; }
.contact-channel { display: flex; align-items: center; gap: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; transition: all .2s var(--ease); }
.contact-channel:hover { border-color: var(--accent); }
.channel-icon { font-size: 1.4rem; color: var(--accent); }
.channel-label { font-family: var(--mono); font-size: .74rem; color: var(--text-mute); display: block; }
.channel-val { font-size: .95rem; }
.alert { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: .95rem; }
.alert-success { background: rgba(39,201,63,.1); border: 1px solid rgba(39,201,63,.3); color: #6ee07a; }
.alert-error { background: rgba(255,92,124,.1); border: 1px solid rgba(255,92,124,.3); color: var(--accent-err); }
.alert-icon { font-weight: 700; }

/* ----------  404  ---------- */
.error-section { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 0; text-align: left; }
.error-terminal { max-width: 620px; width: 100%; margin-bottom: 28px; }
.error-body { white-space: pre-wrap; word-break: break-word; }

/* ----------  Footer  ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-heading { font-family: var(--mono); font-size: .82rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; font-size: .92rem; }
.footer-col a { color: var(--text-dim); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-tagline { color: var(--text-dim); font-size: .92rem; margin: 14px 0 16px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px; font-family: var(--mono); font-size: .78rem; color: var(--text-dim); transition: all .2s; }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border-soft); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-meta { font-family: var(--mono); font-size: .82rem; color: var(--text-mute); display: flex; gap: 10px; align-items: center; }
.footer-dot { color: var(--accent); }
.footer-terminal { font-family: var(--mono); font-size: .82rem; color: var(--text-mute); }
.term-prompt { color: var(--accent); } .term-path { color: var(--accent-2); }
.term-cursor { color: var(--text-dim); }
.term-blip { color: var(--accent-2); animation: blink 1s steps(2) infinite; }

/* ----------  Command Palette  ---------- */
.cmd-palette { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.cmd-palette[hidden] { display: none; }
.cmd-palette-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); }
.cmd-palette-panel { position: relative; width: 90%; max-width: 560px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.cmd-palette-input-wrap { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cmd-palette-icon { color: var(--accent); font-family: var(--mono); }
.cmd-palette-input { flex: 1; background: none; border: 0; color: var(--text); font-family: var(--mono); font-size: 1rem; outline: none; }
.cmd-palette-input::placeholder { color: var(--text-mute); }
.cmd-palette-list { max-height: 320px; overflow-y: auto; }
.cmd-palette-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; cursor: pointer; font-family: var(--mono); font-size: .9rem; transition: background .15s; border-bottom: 1px solid var(--border-soft); }
.cmd-palette-item:hover, .cmd-palette-item.selected { background: var(--bg-elev); color: var(--accent); }
.cmd-palette-item .cmd-hint { color: var(--text-mute); font-size: .76rem; }
.cmd-palette-empty { padding: 24px; text-align: center; color: var(--text-mute); font-family: var(--mono); font-size: .88rem; }

/* ----------  Prose (legal)  ---------- */
.prose h2 { font-family: var(--mono); color: var(--accent); font-size: 1.05rem; margin: 32px 0 12px; }
.prose p { color: var(--text-dim); margin-bottom: 14px; line-height: 1.8; }
.prose a { color: var(--accent); }
.prose code { background: var(--bg-elev); padding: 2px 8px; border-radius: 5px; font-size: .88em; color: var(--accent-2); }
.legal-intro { font-family: var(--mono); font-size: .82rem; color: var(--text-mute); margin-bottom: 24px; }

/* ----------  Reveal animation  ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ----------  Responsive  ---------- */
@media (max-width: 980px) {
  .about-grid, .about-grid-wide, .contact-grid, .service-detail-grid { grid-template-columns: 1fr; }
  .values-grid, .values-grid-large, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .skills-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-list { display: none; }
  .mobile-nav-toggle { display: flex; }
  .main-nav.open .nav-list { display: flex; position: absolute; top: 100%; right: 0; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; min-width: 200px; box-shadow: var(--shadow); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .values-grid, .values-grid-large, .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { min-height: auto; padding: 60px 0 90px; }

  /* --- Hero: başlık taşması düzeltmesi --- */
  .hero-title { font-size: clamp(1.7rem, 8.5vw, 2.3rem); line-height: 1.2; overflow-wrap: break-word; word-break: break-word; }
  .hero-inner { padding: 0 18px; }

  /* --- Hero butonları: alt alta, tam genişlik --- */
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn { width: 100%; justify-content: center; text-align: center; }
  .hero-status { max-width: 100%; white-space: normal; }

  /* --- Sayfa başlıkları --- */
  .page-title { font-size: 1.85rem; overflow-wrap: break-word; word-break: break-word; }
  .page-lead { font-size: .95rem; }
  .section-title { font-size: 1.45rem; overflow-wrap: break-word; }
  .section-head { flex-wrap: wrap; gap: 8px; }

  /* --- Footer: telif satırı taşması düzeltmesi --- */
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-dot { display: none; }
  .footer-copy { overflow-wrap: break-word; word-break: break-word; }
  .footer-terminal { overflow-wrap: break-word; word-break: break-word; }

  /* --- Komut paleti: kenarlara otur --- */
  .cmd-palette-panel { width: calc(100% - 24px); }
  .cmd-palette { padding: 12px; }

  /* --- İçerik kartları --- */
  .value-card, .service-card { padding: 22px; }
  .service-row { padding: 20px; gap: 14px; }
  .cta-card { padding: 40px 22px; }
  .terminal-body { font-size: .78rem; }

  /* --- Mobil menü: küçük ekranlarda tam genişlik --- */
  .main-nav.open .nav-list { left: 12px; right: 12px; min-width: 0; width: auto; }
}

/* Çok küçük ekranlar (<= 400px): header öğeleri sıkışmasın */
@media (max-width: 400px) {
  .brand-name { font-size: .92rem; }
  .header-inner { padding: 0 14px; }
  .hero-name-card { padding: 20px; }
  .about-heading { font-size: 1.25rem; }
  .info-row { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 0; }
  .info-key { min-width: 0; }
  .footer-terminal { font-size: .74rem; }
  .btn { padding: 12px 18px; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}