/* ============================================================
   AHMET HAKAN AYDIN — V3 · Derin Uzay / Yüksek Teknoloji Lab
   style-v3.css
   ============================================================ */

:root {
  --bg-0: #000000;
  --bg-1: #020617;
  --bg-2: #0B1120;
  --panel: rgba(10, 15, 30, 0.6);
  --panel-strong: rgba(10, 15, 30, 0.85);
  --border: rgba(59, 130, 246, 0.22);
  --border-strong: rgba(59, 130, 246, 0.55);

  --text: #E2E8F0;
  --text-dim: #94A3B8;
  --text-mute: #475569;

  --blue: #3B82F6;
  --blue-bright: #60A5FA;
  --purple: #A855F7;
  --purple-bright: #C084FC;
  --emerald: #10B981;
  --rose: #F43F5E;
  --gold: #FBBF24;

  --glow-blue:   0 0 14px rgba(59, 130, 246, 0.55), 0 0 36px rgba(59, 130, 246, 0.25);
  --glow-purple: 0 0 14px rgba(168, 85, 247, 0.55), 0 0 36px rgba(168, 85, 247, 0.25);

  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg-0);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: auto;  /* clickable for ripples */
}

.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.08), transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(168, 85, 247, 0.07), transparent 55%),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.85) 100%);
}

.noise {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.03; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.8'/></svg>");
}

/* ---------- Boot ---------- */
#boot {
  position: fixed; inset: 0; z-index: 100;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); color: var(--blue-bright);
  transition: opacity 0.6s, visibility 0.6s;
  padding: 2rem;
}
#boot.done { opacity: 0; visibility: hidden; }
.boot-inner { width: min(640px, 100%); font-size: clamp(11px, 1.5vw, 14px); line-height: 1.8; }
.boot-line { opacity: 0; transition: opacity 0.15s; }
.boot-line.show { opacity: 1; }
.boot-ok { color: var(--emerald); }
.boot-warn { color: var(--gold); }
.boot-bar {
  margin-top: 1rem; height: 3px;
  background: rgba(59, 130, 246, 0.15);
  position: relative; overflow: hidden;
}
.boot-bar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
  animation: bootScan 1.3s linear infinite;
}
@keyframes bootScan {
  from { transform: translateX(-100%); } to { transform: translateX(100%); }
}

/* ---------- Layout ---------- */
.shell {
  position: relative; z-index: 4;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4));
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; }
.logo {
  font-family: var(--mono); font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text);
}
.logo-mark {
  width: 30px; height: 30px;
  border: 1px solid var(--blue);
  display: grid; place-items: center;
  color: var(--blue-bright); font-weight: 700;
  background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.18), transparent 70%);
  box-shadow: inset 0 0 8px rgba(59,130,246,0.3), 0 0 10px rgba(59,130,246,0.25);
}
.logo-sub { color: var(--text-dim); font-size: 0.75rem; }

.nav-links { display: flex; gap: 1.25rem; font-family: var(--mono); font-size: 0.82rem; }
.nav-links a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.nav-links a::before { content: '> '; color: var(--blue); opacity: 0; transition: opacity 0.2s; }
.nav-links a:hover { color: var(--blue-bright); }
.nav-links a:hover::before { opacity: 1; }

.nav-cta {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--bg-0);
  background: linear-gradient(90deg, var(--blue), var(--purple));
  padding: 0.5rem 0.9rem; text-decoration: none;
  box-shadow: var(--glow-blue);
  transition: transform 0.15s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  font-weight: 600;
}
.nav-cta:hover { transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border);
  color: var(--blue-bright);
  width: 38px; height: 38px; cursor: pointer;
  font-family: var(--mono);
}

/* ---------- Sections ---------- */
section { position: relative; padding: clamp(4rem, 9vw, 7rem) 0; }
.sec-head {
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: 2.5rem; flex-wrap: wrap;
}
.sec-idx {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--blue-bright); letter-spacing: 0.15em;
}
.sec-title {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  margin: 0; letter-spacing: -0.01em;
}
.sec-title .accent { color: var(--blue); }
.sec-title .accent-purple { color: var(--purple); }
.sec-rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
  min-width: 40px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 60px);
  display: flex; align-items: center;
  padding-top: 2rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center; width: 100%;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 0.82rem;
  color: var(--blue-bright); letter-spacing: 0.12em;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; background: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--purple);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; transform: scale(0.9); } }

.hero-title {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(2.25rem, 6.5vw, 4.5rem);
  line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.hero-title .line2 {
  display: block;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  color: var(--text-dim); line-height: 1.7;
  max-width: 58ch; margin-bottom: 2rem;
  text-wrap: pretty;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip {
  font-family: var(--mono); font-size: 0.74rem;
  padding: 0.35rem 0.7rem;
  color: var(--blue-bright);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--border);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.chip.purple { color: var(--purple-bright); border-color: rgba(168, 85, 247, 0.25); background: rgba(168, 85, 247, 0.06); }

.hero-cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.82rem;
  padding: 0.75rem 1.2rem; text-decoration: none;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  font-weight: 600;
}
.btn-primary {
  background: linear-gradient(90deg, var(--blue), var(--purple));
  color: #000; box-shadow: var(--glow-blue);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--blue-bright);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(59, 130, 246, 0.08); box-shadow: var(--glow-blue); }

/* ---------- Sistem Profili (whoami card) ---------- */
.profile {
  position: relative;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 0.85rem;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.profile::before, .profile::after {
  content: '';
  position: absolute;
  width: 40px; height: 40px;
  border: 1px solid var(--blue);
  pointer-events: none;
}
.profile::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.profile::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.profile-head {
  display: flex; justify-content: space-between;
  padding-bottom: 0.7rem; margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(59, 130, 246, 0.25);
  color: var(--blue-bright); text-transform: uppercase;
  letter-spacing: 0.15em; font-size: 0.7rem;
}
.profile-row {
  display: flex; justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  gap: 1rem;
}
.profile-k { color: var(--text-mute); }
.profile-v { color: var(--text); text-align: right; }
.profile-v.ok { color: var(--emerald); }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.skill-card {
  position: relative;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple), transparent);
  opacity: 0.6;
}
.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}
.skill-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--blue-bright);
  font-family: var(--mono); font-weight: 700;
  margin-bottom: 1rem;
}
.skill-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.35rem; }
.skill-desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; margin: 0 0 1rem; }
.skill-stack { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.skill-stack span {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--purple-bright); background: rgba(168, 85, 247, 0.08);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

/* ---------- Timeline (Deneyim) ---------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: ''; position: absolute;
  top: 0; bottom: 0; left: 8px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-strong), var(--border-strong), transparent);
}
.tl-item { position: relative; padding: 0 0 2.5rem 2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -0.3rem; top: 0.3rem;
  width: 18px; height: 18px;
  border: 1px solid var(--blue);
  background: #000;
  display: grid; place-items: center;
  transform: rotate(45deg);
}
.tl-dot::before {
  content: ''; width: 6px; height: 6px;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}
.tl-card {
  position: relative; padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: border-color 0.2s, transform 0.2s;
}
.tl-card:hover { border-color: var(--border-strong); transform: translateX(4px); }
.tl-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.tl-role { font-size: 1.05rem; font-weight: 600; margin: 0; }
.tl-role .co { color: var(--blue); }
.tl-date { font-family: var(--mono); font-size: 0.78rem; color: var(--purple-bright); white-space: nowrap; }
.tl-desc { color: var(--text-dim); font-size: 0.9rem; line-height: 1.7; margin: 0.5rem 0 0.75rem; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tl-tags span {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--text-dim);
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
}

/* ---------- 3D Tilt cards (Projects + Certs) ---------- */
.tilt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  perspective: 1200px;
}
.tilt-card {
  position: relative;
  padding: 1.3rem;
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  transition: border-color 0.25s, box-shadow 0.25s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  text-decoration: none;
  color: var(--text);
  display: flex; flex-direction: column; gap: 0.6rem;
  overflow: hidden;
  min-height: 180px;
}
.tilt-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 14px 50px rgba(59, 130, 246, 0.2);
}
.tilt-card .glow {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35), rgba(59,130,246,0.25) 40%, transparent 65%);
  filter: blur(22px);
  pointer-events: none; opacity: 0;
  transition: opacity 0.2s;
  transform: translate(-50%, -50%);
  left: var(--mx, 50%); top: var(--my, 50%);
}
.tilt-card:hover .glow { opacity: 1; }
.tilt-inner {
  position: relative; z-index: 1;
  transform: translateZ(30px);
  display: flex; flex-direction: column; gap: 0.6rem; height: 100%;
}

.repo-head {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 0.5rem;
}
.repo-name {
  font-family: var(--mono); font-size: 0.95rem; font-weight: 600;
  color: var(--blue-bright); word-break: break-word;
}
.repo-ext { color: var(--text-mute); font-family: var(--mono); }
.repo-desc {
  color: var(--text-dim); font-size: 0.82rem;
  line-height: 1.55; margin: 0; flex: 1;
}
.repo-stats {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--text-dim); gap: 0.5rem; flex-wrap: wrap;
}
.repo-lang { display: inline-flex; align-items: center; gap: 0.4rem; }
.repo-lang .sw { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 6px currentColor; }
.repo-stats .star { color: var(--gold); }

.cert-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--mono); font-size: 0.66rem;
  color: var(--purple-bright); letter-spacing: 0.15em;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.08);
  padding: 0.2rem 0.5rem;
  width: fit-content;
}

.repos-bar {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 1rem;
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--text-dim); gap: 0.5rem; flex-wrap: wrap;
}
.repos-status { display: flex; align-items: center; gap: 0.5rem; }
.repos-status .dot {
  width: 8px; height: 8px; background: var(--emerald);
  border-radius: 50%; box-shadow: 0 0 8px var(--emerald);
  animation: pulse 1.6s ease-in-out infinite;
}
.repos-skeleton {
  height: 180px;
  background: linear-gradient(90deg, rgba(59,130,246,0.03), rgba(59,130,246,0.1), rgba(59,130,246,0.03));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border: 1px dashed var(--border);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.contact-card {
  padding: 1.3rem;
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--glow-purple);
}
.contact-label {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--blue-bright); letter-spacing: 0.15em;
  text-transform: uppercase;
}
.contact-value { font-family: var(--mono); font-size: 0.92rem; word-break: break-all; }

/* ---------- Footer ---------- */
footer {
  position: relative; z-index: 4;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2.5rem 0 2rem;
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--text-mute);
}
.foot-inner {
  display: flex; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.foot-sig { color: var(--blue-bright); letter-spacing: 0.1em; }

/* ---------- Terminal (floating) ---------- */
#terminal {
  position: fixed; z-index: 50;
  right: 24px; bottom: 24px;
  width: min(520px, calc(100vw - 32px));
  height: 420px;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px);
  display: flex; flex-direction: column;
  font-family: var(--mono); font-size: 0.85rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(59,130,246,0.15);
  transition: transform 0.3s cubic-bezier(.2,.9,.3,1.2), opacity 0.25s, height 0.25s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
#terminal.minimized { height: 40px; width: 240px; }
#terminal.hidden { transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none; }
.term-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(10, 15, 30, 0.85);
  border-bottom: 1px solid var(--border);
  cursor: move; user-select: none;
}
.term-dots { display: flex; gap: 0.35rem; }
.term-dots i { display: block; width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.term-dots i.r { background: #F43F5E; }
.term-dots i.y { background: #F59E0B; }
.term-dots i.g { background: #10B981; }
.term-title { flex: 1; text-align: center; font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.1em; }
.term-controls { display: flex; gap: 0.3rem; }
.term-ctrl {
  background: none; border: 1px solid var(--border);
  color: var(--text-dim); font-family: var(--mono);
  width: 24px; height: 22px; cursor: pointer; font-size: 0.7rem;
  transition: all 0.15s;
}
.term-ctrl:hover { color: var(--blue-bright); border-color: var(--blue); }
.term-body {
  flex: 1; overflow-y: auto;
  padding: 0.8rem 0.9rem;
  color: #CBD5E1; line-height: 1.5;
  scroll-behavior: smooth;
}
#terminal.minimized .term-body, #terminal.minimized .term-input-row { display: none; }
.term-body::-webkit-scrollbar { width: 6px; }
.term-body::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.25); }
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-line .prompt { color: var(--purple-bright); }
.term-line .path { color: var(--blue-bright); }
.term-line .cmd { color: var(--text); }
.term-line.out { color: var(--text-dim); }
.term-line.ok { color: var(--emerald); }
.term-line.err { color: var(--rose); }
.term-line.accent { color: var(--blue-bright); }
.term-line.purple { color: var(--purple-bright); }
.term-input-row {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.6);
}
.term-input-row .prompt { color: var(--purple-bright); }
.term-input-row .path { color: var(--blue-bright); }
#termInput {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--mono); font-size: 0.85rem;
  caret-color: var(--blue);
}
.term-dock {
  position: fixed; right: 24px; bottom: 24px; z-index: 49;
  background: var(--bg-2); color: var(--blue-bright);
  border: 1px solid var(--border-strong);
  font-family: var(--mono); font-size: 0.78rem;
  padding: 0.65rem 1rem; cursor: pointer;
  box-shadow: var(--glow-blue);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  display: none; gap: 0.5rem; align-items: center;
}
.term-dock.show { display: inline-flex; }
.term-dock .dot {
  width: 7px; height: 7px; background: var(--purple);
  border-radius: 50%; box-shadow: 0 0 6px var(--purple);
  animation: pulse 1.6s ease-in-out infinite;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(0,0,0,0.96);
    padding: 1rem; gap: 0.5rem;
    border-bottom: 1px solid var(--border);
  }
  #terminal { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: min(70vh, 480px); }
}
@media (max-width: 520px) {
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
  .skill-card, .tl-card, .tilt-card { padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Scroll 3D reveal */
.reveal-3d {
  opacity: 0;
  transform: perspective(1000px) translateY(40px) translateZ(-80px) rotateX(6deg);
  transition: opacity 0.9s cubic-bezier(.2,.8,.2,1), transform 0.9s cubic-bezier(.2,.8,.2,1);
}
.reveal-3d.in {
  opacity: 1;
  transform: perspective(1000px) translateY(0) translateZ(0) rotateX(0deg);
}
