/* ============================================================
   yigithanozturk.dev — REV 2.1
   Design system: "Midnight Circuit"
   Board:  #060B16  (near-black navy)
   Panel:  #0B1424
   Volt:   #6FD2FF → #2E5BFF  (electric blue)
   Pulse:  #8B5CF6  (neon violet)
   Silk:   #E8EFFA  (cool silkscreen white)
   Steel:  #7E93B5  (muted labels)
   Type:   Unbounded / Instrument Sans / IBM Plex Mono
   ============================================================ */

:root {
  --board: #060B16;
  --panel: #0B1424;
  --panel-2: #101D33;
  --line: rgba(77, 166, 255, 0.18);
  --line-soft: rgba(232, 239, 250, 0.08);
  --volt: #4DA6FF;
  --volt-deep: #2E5BFF;
  --volt-bright: #6FD2FF;
  --violet: #8B5CF6;
  --silk: #E8EFFA;
  --steel: #7E93B5;
  --muted: #A8B8D0;
  --ok: #4ADE80;

  --grad-volt: linear-gradient(100deg, var(--volt-bright), var(--volt-deep));
  --grad-neon: linear-gradient(100deg, #6FD2FF, #8B5CF6, #2E5BFF);

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1080px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 10px;
}

/* ---- Light theme ---- */
:root[data-theme="light"] {
  --board: #F4F7FC;
  --panel: #FFFFFF;
  --panel-2: #EDF2FA;
  --line: rgba(46, 91, 255, 0.2);
  --line-soft: rgba(20, 40, 80, 0.1);
  --volt: #2E5BFF;
  --volt-deep: #1E40C8;
  --volt-bright: #2563EB;
  --violet: #7C3AED;
  --silk: #0C1322;
  --steel: #5A6B86;
  --muted: #3F4D66;
  --ok: #16A34A;
  --grad-neon: linear-gradient(100deg, #2563EB, #7C3AED, #1E40C8);
}
:root[data-theme="light"] body {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(46,91,255,0.07), transparent 60%),
    var(--board);
}
:root[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(20,40,80,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,40,80,0.04) 1px, transparent 1px);
}
:root[data-theme="light"] .nav { background: rgba(244, 247, 252, 0.82); }
:root[data-theme="light"] .nav-links a:not(.nav-cta)::after,
:root[data-theme="light"] .hero-name .copper { filter: saturate(1.1); }
:root[data-theme="light"] .btn-copper { color: #fff; }
:root[data-theme="light"] .tape span,
:root[data-theme="light"] .terminal-window { color: var(--silk); }

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

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }

body {
  background: var(--board);
  color: var(--silk);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* fine engineering grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(232,239,250,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,239,250,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}

/* ambient drifting glow */
body::after {
  content: "";
  position: fixed;
  width: 70vmax; height: 70vmax;
  top: -30vmax; right: -25vmax;
  pointer-events: none;
  background: radial-gradient(circle at center,
    rgba(46,91,255,.13), rgba(139,92,246,.07) 40%, transparent 65%);
  filter: blur(10px);
  animation: drift 22s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-14vmax, 18vmax) scale(1.15); }
}

main, .nav, .footer, .tape { position: relative; z-index: 1; }

::selection { background: var(--volt); color: var(--board); }

a { color: var(--volt); text-decoration: none; }
a:hover { color: var(--volt-bright); }

:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--volt);
  color: var(--board);
  padding: .5rem 1rem;
  border-radius: 6px;
  z-index: 100;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; color: var(--board); }

/* ============ SCROLL PROGRESS ============ */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-neon);
  z-index: 60;
  box-shadow: 0 0 12px rgba(111,210,255,.6);
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(6, 11, 22, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .8rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--silk); }
.brand-chip {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .78rem;
  color: var(--volt-bright);
  border: 1.5px solid var(--volt);
  border-radius: 6px;
  padding: .22rem .42rem;
  letter-spacing: .04em;
  box-shadow: 0 0 14px rgba(77,166,255,.25), inset 0 0 8px rgba(77,166,255,.1);
  animation: chipGlow 3.4s ease-in-out infinite alternate;
}
@keyframes chipGlow {
  to { box-shadow: 0 0 22px rgba(139,92,246,.4), inset 0 0 10px rgba(111,210,255,.18); }
}
.brand-name { font-family: var(--font-mono); font-size: .92rem; font-weight: 500; }
.brand-dim { color: var(--steel); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 2px;
  background: var(--grad-neon);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--silk); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--volt-bright); }
.nav-cta {
  color: var(--volt-bright) !important;
  border: 1px solid var(--line);
  padding: .35rem .9rem;
  border-radius: 99px;
  transition: border-color .15s, background .15s, box-shadow .2s;
}
.nav-cta:hover {
  border-color: var(--volt);
  background: rgba(77,166,255,.08);
  box-shadow: 0 0 18px rgba(77,166,255,.25);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--silk);
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem var(--pad) 4rem;
}
.hero-traces {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  opacity: .6;
  will-change: transform;
  transition: transform .25s ease-out;
}
.trace {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.4s cubic-bezier(.4, 0, .2, 1) forwards;
}
.trace:nth-child(2) { animation-delay: .25s; }
.trace:nth-child(3) { animation-delay: .5s; }
.trace:nth-child(4) { animation-delay: .7s; }
.trace:nth-child(5) { animation-delay: .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* traveling signal pulses along the traces */
.pulse {
  stroke-dasharray: 26 1374;
  stroke-dashoffset: 1400;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(111,210,255,.9));
  animation: pulseTravel 5.5s linear 2.6s infinite;
}
.pulse:nth-child(2) { animation-duration: 7s;   animation-delay: 3.4s; }
.pulse:nth-child(3) { animation-duration: 6s;   animation-delay: 4.1s; }
.pulse:nth-child(4) { animation-duration: 8s;   animation-delay: 3s; }
.pulse:nth-child(5) { animation-duration: 6.5s; animation-delay: 4.8s; }
@keyframes pulseTravel {
  0%   { stroke-dashoffset: 1400; opacity: 0; }
  6%   { opacity: .95; }
  82%  { opacity: .95; }
  92%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.via, .pad { opacity: 0; animation: pop .5s ease 1.8s forwards; }
.pad { animation-delay: 2.1s; }
@keyframes pop { to { opacity: 1; } }
.via-group { animation: viaGlow 3s ease-in-out 2.4s infinite alternate; }
@keyframes viaGlow {
  from { filter: drop-shadow(0 0 2px rgba(111,210,255,.3)); }
  to   { filter: drop-shadow(0 0 7px rgba(139,92,246,.7)); }
}

.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .14em;
  color: var(--steel);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(74,222,128,.8);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .4; } }

.hero-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 8.5vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero-name .line { display: block; }
.hero-name .copper {
  background: linear-gradient(100deg, #6FD2FF, #8B5CF6, #2E5BFF, #6FD2FF);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 280% 0; } }

.hero-role {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  color: var(--silk);
}
.hero-role .amp { color: var(--volt-bright); font-style: italic; }
.hero-sub {
  margin-top: .9rem;
  max-width: 36rem;
  color: var(--muted);
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 3.2rem;
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: rgba(126,147,181,.7);
}

/* buttons */
.btn {
  position: relative;
  display: inline-block;
  font-weight: 600;
  font-size: .98rem;
  padding: .72rem 1.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, border-color .15s, background .15s;
  cursor: pointer;
  font-family: var(--font-body);
  overflow: hidden;
}
.btn-copper {
  background: linear-gradient(110deg, #6FD2FF, #2E5BFF 55%, #8B5CF6);
  background-size: 200% 100%;
  color: #04101F;
  animation: btnFlow 5s ease-in-out infinite alternate;
}
@keyframes btnFlow { to { background-position: 100% 0; } }
.btn-copper:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(77,166,255,.4);
  color: #04101F;
}
.btn-ghost {
  border-color: var(--line);
  color: var(--silk);
  background: rgba(232,239,250,.02);
}
.btn-ghost:hover {
  border-color: var(--volt);
  color: var(--volt-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(77,166,255,.18);
}

/* ============ TAPE REEL ============ */
.tape {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle 3px at 24px 9px, rgba(77,166,255,.4) 2.6px, transparent 3px) repeat-x,
    var(--panel);
  background-size: 48px 18px, auto;
  background-position: 0 0;
  padding: 1.6rem 0 1.1rem;
  overflow: hidden;
}
.tape-track {
  display: flex;
  width: max-content;
  animation: reel 32s linear infinite;
}
.tape-row {
  display: flex;
  gap: .8rem;
  padding-right: .8rem;
}
.tape-row span {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--steel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .35rem .85rem;
  background: var(--board);
  white-space: nowrap;
  transition: color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.tape-row span:hover {
  color: var(--volt-bright);
  border-color: var(--volt);
  box-shadow: 0 0 14px rgba(77,166,255,.25);
  transform: translateY(-2px);
}
@keyframes reel { to { transform: translateX(-50%); } }
.tape:hover .tape-track { animation-play-state: paused; }

/* ============ SECTIONS ============ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--pad) 0;
}
.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--volt-bright);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--grad-neon);
  transition: width .8s ease .25s;
}
.reveal.in .eyebrow::before,
.in .eyebrow::before { width: 34px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.section-head em {
  font-style: normal;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ HAKKIMDA ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.about-text p + p { margin-top: 1.1rem; }
.about-text strong { color: var(--silk); font-weight: 600; }
.about-text { color: var(--muted); }

.datasheet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.datasheet:hover {
  border-color: rgba(77,166,255,.45);
  box-shadow: 0 0 30px rgba(46,91,255,.18);
  transform: translateY(-3px);
}
.ds-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  padding: .75rem 1.1rem;
  color: var(--volt-bright);
  border-bottom: 1px dashed var(--line);
  background: var(--panel-2);
}
.ds-id { color: var(--steel); }
.ds-body { padding: .5rem 0; }
.ds-body > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .58rem 1.1rem;
  transition: background .2s;
}
.ds-body > div:hover { background: rgba(77,166,255,.05); }
.ds-body > div + div { border-top: 1px solid var(--line-soft); }
.ds-body dt {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel);
}
.ds-body dd {
  font-size: .92rem;
  font-weight: 500;
  text-align: right;
  display: flex;
  align-items: center;
  gap: .45rem;
}

/* ============ TIMELINE ============ */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--volt-bright), var(--violet), rgba(46,91,255,.1));
}
.t-item { position: relative; padding-bottom: 2.4rem; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: "";
  position: absolute;
  left: calc(-2rem + 1px); top: 7px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--board);
  border: 1.5px solid var(--volt);
  box-shadow: 0 0 10px rgba(77,166,255,.45);
  transition: box-shadow .25s, background .25s;
}
.t-item:hover::before {
  background: var(--volt);
  box-shadow: 0 0 16px rgba(111,210,255,.8);
}
.t-date {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .12em;
  color: var(--volt-bright);
}
.t-item h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: .35rem 0 .4rem;
}
.t-item p { color: var(--muted); font-size: .98rem; max-width: 44rem; }

/* ============ PROJELER ============ */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.6rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  overflow: hidden;
}
/* circuit trace along the top edge with a via */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46%; height: 2px;
  background: var(--grad-neon);
}
.card::after {
  content: "";
  position: absolute;
  top: -3.5px; left: calc(46% - 1px);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--panel);
  border: 1.5px solid var(--volt);
  transition: box-shadow .25s, background .25s;
}
/* light sweep on hover */
.card .sweep {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(111,210,255,.07) 48%, rgba(139,92,246,.06) 52%, transparent 70%);
  background-size: 280% 100%;
  background-position: 120% 0;
  pointer-events: none;
  transition: background-position .8s ease;
}
.card:hover .sweep { background-position: -120% 0; }
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(77,166,255,.5);
  box-shadow: 0 16px 44px rgba(2,8,20,.6), 0 0 26px rgba(46,91,255,.16);
}
.card:hover::after {
  background: var(--volt);
  box-shadow: 0 0 12px rgba(111,210,255,.9);
}
.card-wide { grid-column: 1 / -1; }
.card-tag-featured {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: #04101F;
  background: var(--grad-neon);
  background-size: 200% 100%;
  border-radius: 4px;
  padding: .25rem .6rem;
  align-self: flex-start;
  display: inline-block;
  animation: btnFlow 4s ease-in-out infinite alternate;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: 0;
}
.card-wide h3 { font-size: 1.35rem; }
.card p { color: var(--muted); font-size: .96rem; }
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: auto;
  padding-top: .4rem;
}
.tags li {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--steel);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: .18rem .55rem;
  transition: color .2s, border-color .2s;
}
.card:hover .tags li { color: var(--volt-bright); border-color: var(--line); }
.card-link {
  font-family: var(--font-mono);
  font-size: .82rem;
  margin-top: .2rem;
}
.projects-more {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--steel);
}

/* ============ YETENEKLER ============ */
.skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.skill-col {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.3rem 1.25rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.skill-col:hover {
  transform: translateY(-4px);
  border-color: rgba(77,166,255,.4);
  box-shadow: 0 12px 30px rgba(2,8,20,.5), 0 0 20px rgba(46,91,255,.12);
}
.skill-col h3 {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--volt-bright);
  margin-bottom: .9rem;
  padding-bottom: .7rem;
  border-bottom: 1px dashed var(--line);
}
.skill-col ul { list-style: none; }
.skill-col li {
  font-size: .93rem;
  color: var(--muted);
  padding: .3rem 0;
  transition: color .2s, transform .2s;
}
.skill-col li:hover { color: var(--silk); transform: translateX(4px); }
.skill-col li::before {
  content: "▸ ";
  color: var(--violet);
}

/* ============ İLETİŞİM ============ */
.section-contact { padding-bottom: clamp(4.5rem, 9vw, 7rem); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
.contact-info p { color: var(--muted); }
.contact-mail {
  display: inline-block;
  margin-top: 1.3rem;
  font-family: var(--font-mono);
  font-size: clamp(.95rem, 2.2vw, 1.1rem);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: .2rem;
  transition: border-color .2s, text-shadow .2s;
}
.contact-mail:hover {
  border-color: var(--volt);
  text-shadow: 0 0 14px rgba(111,210,255,.5);
}
.contact-socials {
  display: flex;
  gap: 1.4rem;
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: .88rem;
}
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label { display: flex; flex-direction: column; gap: .4rem; }
.contact-form label span {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
}
.contact-form input,
.contact-form textarea {
  background: var(--board);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: .7rem .85rem;
  color: var(--silk);
  font-family: var(--font-body);
  font-size: .97rem;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--volt);
  box-shadow: 0 0 14px rgba(77,166,255,.2);
}
.contact-form ::placeholder { color: rgba(168,184,208,.4); }
.form-note {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--steel);
  min-height: 1.2em;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line-soft);
  background: var(--panel);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.4rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--muted);
}
.footer-rev {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--steel);
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--volt-bright); }

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .05s; }
.d2 { transition-delay: .15s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }
.d6 { transition-delay: .65s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .projects { grid-template-columns: 1fr; }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6,11,22,.97);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: .5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: .85rem var(--pad);
    border-radius: 0;
    border: 0;
  }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin: .4rem var(--pad) .6rem; text-align: center; border: 1px solid var(--line); border-radius: 8px; }
  .brand-name { display: none; }
  .hero { padding-top: 6rem; }
  .hero-traces { opacity: .3; }
  .hero-meta { gap: 1.2rem; flex-wrap: wrap; }
  .skills { grid-template-columns: 1fr; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after { animation: none; }
  .trace { animation: none; stroke-dashoffset: 0; }
  .pulse { animation: none; opacity: 0; }
  .via, .pad { animation: none; opacity: 1; }
  .via-group { animation: none; }
  .tape-track { animation: none; }
  .status-dot, .brand-chip, .btn-copper, .card-tag-featured { animation: none; }
  .hero-name .copper { animation: none; }
  .hero-traces { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .skill-col, .datasheet { transition: none; }
}

/* ============================================================
   REV 2.2 ADDITIONS
   ============================================================ */

/* ---------- lang toggle ---------- */
.lang-toggle {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--steel);
  background: none;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: .3rem .55rem;
  cursor: pointer;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.lang-toggle:hover {
  color: var(--volt-bright);
  border-color: var(--volt);
  box-shadow: 0 0 12px rgba(77,166,255,.2);
}

/* ---------- stats / counters ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}
.stat {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.3rem 1.2rem 1.1rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(77,166,255,.4);
  box-shadow: 0 0 22px rgba(46,91,255,.14);
}
.stat-num, .stat-suffix {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  display: block;
  margin-top: .3rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- github panel ---------- */
.gh-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.gh-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .8rem 1.2rem;
  border-bottom: 1px dashed var(--line);
  background: var(--panel-2);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .1em;
}
.gh-title { color: var(--volt-bright); }
.gh-body { padding: 1.2rem; }
.gh-loading, .gh-error {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--steel);
}
.gh-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem 2rem;
  align-items: start;
}
.gh-numbers { display: flex; gap: 2rem; }
.gh-num strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--silk);
}
.gh-num span {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel);
}
.gh-langs { display: flex; flex-direction: column; gap: .55rem; }
.gh-lang {
  display: grid;
  grid-template-columns: 110px 1fr 36px;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
}
.gh-lang-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(232,239,250,.06);
  overflow: hidden;
}
.gh-lang-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--grad-neon);
  width: 0;
  transition: width 1.1s cubic-bezier(.3,0,.2,1);
}
.gh-lang-pct { text-align: right; color: var(--steel); font-size: .72rem; }
.gh-repos {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line-soft);
}
.gh-repo {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: .3rem .7rem;
  transition: color .2s, border-color .2s;
}
.gh-repo:hover { color: var(--volt-bright); border-color: var(--volt); }

/* ---------- jarvis lab ---------- */
.jarvis-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
}
.jarvis-text p { color: var(--muted); }
.jarvis-text p + p { margin-top: 1rem; }
.roadmap {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.roadmap li {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  font-size: .95rem;
  color: var(--steel);
}
.roadmap li.done { color: var(--muted); }
.roadmap li.done .rm-tag { border-color: var(--ok); color: var(--ok); }
.roadmap li.active { color: var(--silk); }
.roadmap li.active .rm-tag {
  border-color: var(--volt);
  color: var(--volt-bright);
  box-shadow: 0 0 12px rgba(77,166,255,.35);
  animation: pulse 2.2s ease-in-out infinite;
}
.rm-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: .12rem .45rem;
  white-space: nowrap;
}
.jarvis-diagram {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.2rem;
  transition: border-color .25s, box-shadow .25s;
}
.jarvis-diagram:hover {
  border-color: rgba(77,166,255,.4);
  box-shadow: 0 0 28px rgba(46,91,255,.15);
}
.jarvis-diagram svg { width: 100%; height: auto; display: block; }
.jbox {
  fill: var(--panel-2);
  stroke: var(--line);
  stroke-width: 1.2;
  transition: stroke .25s;
}
.jbox-core { stroke: url(#jg); stroke-width: 1.8; }
.jframe {
  fill: none;
  stroke: rgba(139,92,246,.3);
  stroke-width: 1;
  stroke-dasharray: 5 5;
}
.jframe-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  fill: rgba(139,92,246,.7);
  text-transform: uppercase;
}
.jtext {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  fill: var(--silk);
  text-anchor: middle;
}
.jsub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  fill: var(--steel);
  text-anchor: middle;
}
.jarrow {
  fill: none;
  stroke: #4DA6FF;
  stroke-width: 1.4;
  marker-end: url(#arr);
  opacity: .8;
}

/* ---------- kod dışında ---------- */
.life-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.life-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.4rem 1.25rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.life-card:hover {
  transform: translateY(-4px) rotate(-.4deg);
  border-color: rgba(139,92,246,.45);
  box-shadow: 0 12px 30px rgba(2,8,20,.5), 0 0 20px rgba(139,92,246,.14);
}
.life-icon {
  font-size: 1.7rem;
  display: inline-block;
  margin-bottom: .6rem;
  filter: drop-shadow(0 0 10px rgba(77,166,255,.35));
}
.life-card h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: .35rem; }
.life-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ---------- cursor glow ---------- */
.cursor-glow {
  position: fixed;
  width: 240px; height: 240px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(46,91,255,.09), rgba(139,92,246,.04) 45%, transparent 65%);
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity .4s;
}
.cursor-glow.on { opacity: 1; }
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* ---------- terminal ---------- */
.terminal-launch {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--steel);
  background: none;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: .3rem .65rem;
  cursor: pointer;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.terminal-launch:hover {
  color: var(--volt-bright);
  border-color: var(--volt);
  box-shadow: 0 0 12px rgba(77,166,255,.25);
}
.footer-actions { display: flex; align-items: center; gap: 1rem; }

.terminal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 6, 12, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1.2rem;
}
.terminal-overlay[hidden] { display: none; }
.terminal-window {
  width: min(640px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #070D1A;
  box-shadow: 0 24px 70px rgba(0,0,0,.6), 0 0 40px rgba(46,91,255,.18);
  overflow: hidden;
  animation: termIn .25s cubic-bezier(.3, 1.2, .4, 1);
}
@keyframes termIn { from { transform: translateY(16px) scale(.97); opacity: 0; } }
.terminal-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem .9rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line-soft);
}
.tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot.r { background: #FF5F57; } .tdot.y { background: #FEBC2E; } .tdot.g { background: #28C840; }
.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--steel);
}
.terminal-close {
  background: none;
  border: 0;
  color: var(--steel);
  font-size: .85rem;
  cursor: pointer;
  padding: .15rem .35rem;
}
.terminal-close:hover { color: var(--silk); }
.terminal-body {
  height: 300px;
  overflow-y: auto;
  padding: .9rem 1rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.75;
  color: var(--muted);
}
.terminal-body .t-cmd { color: var(--volt-bright); }
.terminal-body .t-ok { color: var(--ok); }
.terminal-body .t-vio { color: var(--violet); }
.terminal-body a { text-decoration: underline; }
.terminal-input-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1rem;
  border-top: 1px solid var(--line-soft);
}
.terminal-prompt { font-family: var(--font-mono); color: var(--volt-bright); }
#terminal-input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--silk);
  font-family: var(--font-mono);
  font-size: .85rem;
  caret-color: var(--volt-bright);
}

/* ---------- responsive additions ---------- */
@media (max-width: 880px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .life-grid { grid-template-columns: repeat(2, 1fr); }
  .jarvis-grid { grid-template-columns: 1fr; }
  .gh-grid { grid-template-columns: 1fr; }
  .gh-numbers { gap: 1.4rem; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .life-grid { grid-template-columns: 1fr; }
  .gh-lang { grid-template-columns: 86px 1fr 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .gh-lang-fill { transition: none; }
  .terminal-window { animation: none; }
  .cursor-glow { display: none; }
  .roadmap li.active .rm-tag { animation: none; }
}

/* ============================================================
   REV 2.3 — theme toggle, project preview links, kick-up game
   ============================================================ */

/* ---- theme toggle ---- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  background: none;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: .34rem .45rem;
  cursor: pointer;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.theme-toggle:hover {
  color: var(--volt-bright);
  border-color: var(--volt);
  box-shadow: 0 0 12px rgba(77,166,255,.2);
}
.theme-toggle .ic-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: none; }

/* ---- project preview cards are links now ---- */
a.proj-preview { color: inherit; text-decoration: none; }
a.proj-preview h3 { transition: color .2s; }
a.proj-preview:hover h3 { color: var(--volt-bright); }
.projects-more .btn-ghost { font-size: .92rem; }

/* ---- kick-up minigame ---- */
.kickup {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  pointer-events: none;
}
.kickup-score {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-mono);
  line-height: 1.1;
  text-align: center;
  animation: scorePop .3s ease;
}
.kickup-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(77,166,255,.3);
}
.kickup-best {
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
}
@keyframes scorePop { from { transform: scale(1.4); } }

.kickup-ball {
  pointer-events: auto;
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.45));
  transition: transform .08s;
  animation: ballIdle 2.6s ease-in-out infinite;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.kickup-ball:active { transform: scale(.9); }
.kickup-ball svg { display: block; width: 100%; height: 100%; }
@keyframes ballIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.kickup-ball.playing { animation: none; }
.kickup-ball.spin svg { animation: ballSpin .5s linear; }
@keyframes ballSpin { to { transform: rotate(360deg); } }

/* little hint tooltip on first paint */
.kickup-hint {
  pointer-events: none;
  position: absolute;
  bottom: 56px;
  right: 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--steel);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: .3rem .55rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
}
.kickup-hint.show { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .kickup-ball { animation: none; }
  .kickup-ball.spin svg { animation: none; }
  .kickup-score { animation: none; }
}
