/* ============================================================
   Tamer Pusat — Portfolio · Premium Dark
   bg #09090B · surface #111113 · accent #7C3AED
   text #FAFAFA · muted #A1A1AA
   Inter (display + body) · JetBrains Mono (utility, terminal)
   ============================================================ */

:root {
  --bg: #09090b;
  --bg-2: #0b0b0f;
  --surface: #111113;
  --surface-2: #16161b;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(124, 58, 237, 0.45);
  --accent: #7c3aed;
  --accent-2: #a78bfa;
  --accent-soft: rgba(124, 58, 237, 0.12);
  --accent-glow: rgba(124, 58, 237, 0.4);
  --text: #fafafa;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --pass: #4ade80;
  --radius: 20px;
  --radius-sm: 14px;
  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }

.container { width: min(var(--maxw), 90%); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 200ms var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 150;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 80ms linear;
}

/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; }
h1 { font-size: clamp(3.4rem, 9vw, 6rem); font-weight: 900; }
h2 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.22rem; font-weight: 650; letter-spacing: -0.02em; }
p { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pass);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.k { color: var(--accent-2); }
.pass { color: var(--pass); }

/* ============================================================
   Intro terminal
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(1200px 800px at 50% 40%, #0e0b18, var(--bg) 70%);
  display: grid;
  place-content: center;
  gap: 1.2rem;
  cursor: pointer;
  transition: opacity 550ms var(--ease), visibility 550ms;
}
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-terminal {
  width: min(470px, 88vw);
  background: rgba(17, 17, 19, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 80px rgba(124, 58, 237, 0.1);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.term-bar span:first-child { background: #ff5f56; }
.term-bar span:nth-child(2) { background: #ffbd2e; }
.term-bar span:nth-child(3) { background: #27c93f; }
.term-bar p { color: var(--muted-2); margin-left: 0.5rem; font-size: 0.72rem; }

.intro-lines {
  padding: 1.2rem 1.3rem 1.4rem;
  font-size: 0.84rem;
  line-height: 2;
  color: var(--text);
  min-height: 13em;
  white-space: pre-wrap;
  word-break: break-word;
}
.intro-lines .pass { color: var(--pass); }
.intro-lines .cursor {
  display: inline-block;
  width: 8px; height: 1.05em;
  background: var(--accent-2);
  vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.intro-skip { color: var(--muted-2); font-size: 0.72rem; text-align: center; opacity: 0.55; }

/* ============================================================
   Navbar
   ============================================================ */
.nav-wrap {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.65rem 0.75rem 0.65rem 1.4rem;
  border-radius: 100px;
  background: rgba(14, 14, 17, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: padding 350ms var(--ease), background 350ms var(--ease), box-shadow 350ms var(--ease), transform 350ms var(--ease);
}
.nav.shrunk {
  padding: 0.45rem 0.6rem 0.45rem 1.2rem;
  background: rgba(14, 14, 17, 0.8);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.brand { font-size: 0.95rem; color: var(--text); text-decoration: none; font-weight: 500; }
.brand span { color: var(--accent-2); }

.nav-links { display: flex; align-items: center; gap: 0.4rem; list-style: none; }
.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  transition: color 200ms ease, background 200ms ease;
}
.nav-links a[data-nav]:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-links a[data-nav].active { color: var(--text); }
.nav-links a[data-nav].active::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.15rem;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-cta.active::after { display: none; }
.nav-cta {
  padding: 0.45rem 1.05rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 100px;
  transition: box-shadow 250ms ease, transform 250ms ease, background 250ms ease;
}
.nav-links a.nav-cta:hover { box-shadow: 0 0 26px var(--accent-glow); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 250ms var(--ease), opacity 250ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), background 250ms, border-color 250ms;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25); }
.btn-primary:hover { box-shadow: 0 10px 38px var(--accent-glow); }
.btn-ghost { color: var(--text); border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--border-hover); background: var(--accent-soft); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 0 4rem;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; transition: transform 500ms var(--ease-out); will-change: transform; }

.grid-lines {
  position: absolute; inset: 0;
  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);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, #000 20%, transparent 75%);
}

.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: drift 15s ease-in-out infinite alternate; }
.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(124, 58, 237, 0.6), transparent 70%); top: 6%; right: 4%; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(167, 139, 250, 0.3), transparent 70%); bottom: 2%; left: -8%; animation-delay: -5s; }
.orb-3 { width: 280px; height: 280px; background: radial-gradient(circle, rgba(124, 58, 237, 0.28), transparent 70%); top: 44%; left: 40%; animation-delay: -9s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(44px, -36px) scale(1.1); } }

.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 {
  background: linear-gradient(180deg, #fff 30%, #cfcbe0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-roles {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  margin: 1.2rem 0 1.3rem;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 600; color: var(--text); letter-spacing: -0.015em;
}
.role-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.hero-desc { max-width: 47ch; font-size: 1.08rem; margin-bottom: 2.1rem; color: var(--muted); }

.socials { display: flex; gap: 0.8rem; margin-top: 1.9rem; }
.socials a {
  color: var(--muted);
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: color 220ms, border-color 220ms, transform 220ms var(--ease), box-shadow 220ms;
}
.socials a:hover { color: var(--text); border-color: var(--border-hover); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(124, 58, 237, 0.22); }

.hero-visual { position: relative; display: grid; place-items: center; }
.photo-glow {
  position: absolute; width: 116%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(124,58,237,0.55), rgba(167,139,250,0.12), rgba(124,58,237,0.5), rgba(167,139,250,0.1), rgba(124,58,237,0.55));
  filter: blur(48px);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.photo-ring {
  position: absolute; width: min(370px, 74vw); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.3);
  box-shadow: inset 0 0 60px rgba(124, 58, 237, 0.1);
}
.photo-frame {
  position: relative;
  width: min(330px, 66vw); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  background: var(--surface);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.scroll-hint {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  color: var(--muted-2); text-decoration: none; opacity: 0.7;
  animation: bob 2.4s ease-in-out infinite; transition: color 200ms;
}
.scroll-hint:hover { color: var(--text); }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 7.5rem 0; scroll-margin-top: 90px; }

/* ============================================================
   About
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.45fr 0.55fr; gap: 4rem; align-items: start; }
.about-body p:not(.eyebrow) { max-width: 60ch; margin-bottom: 1.1rem; }
.about-body .lead { font-size: 1.1rem; color: #d4d4d8; }
.about-photo {
  margin-top: 2.2rem; max-width: 460px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.about-photo img { transition: transform 800ms var(--ease); }
.about-photo:hover img { transform: scale(1.04); }

.about-timeline { position: sticky; top: 100px; padding: 1.9rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.tl-list { list-style: none; position: relative; padding-left: 1.4rem; }
.tl-list::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(to bottom, var(--accent), rgba(124, 58, 237, 0.05)); }
.tl-node { position: relative; padding: 0.55rem 0; display: flex; flex-direction: column; }
.tl-node::before { content: ""; position: absolute; left: calc(-1.4rem + 0px); top: 1rem; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl-year { color: var(--accent-2); font-size: 0.72rem; margin-bottom: 0.15rem; }
.tl-title { color: var(--text); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; }
.tl-sub { font-size: 0.82rem; color: var(--muted); }

/* ============================================================
   Spotlight card system (Linear-style cursor glow)
   ============================================================ */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 58, 237, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: -1;
  pointer-events: none;
}
.spotlight-grid:hover .spot::before { opacity: 1; }

/* ============================================================
   Stack
   ============================================================ */
.stack-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 2.6rem; }
.tech-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding: 1.6rem 0.8rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: transform 300ms var(--ease), border-color 300ms, box-shadow 300ms;
}
.tech-card:hover { transform: translateY(-5px); border-color: var(--border-hover); box-shadow: 0 14px 34px rgba(124, 58, 237, 0.13); }
.tech-card p { color: var(--text); font-size: 0.84rem; font-weight: 500; }
.tech-icon {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 13px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(124, 58, 237, 0.25);
  transition: background 300ms, color 300ms, box-shadow 300ms, transform 300ms var(--ease);
}
.tech-icon svg { width: 24px; height: 24px; }
.tech-card:hover .tech-icon { background: var(--accent); color: #fff; box-shadow: 0 0 22px var(--accent-glow); transform: scale(1.06); }
.stack-note { margin-top: 1.8rem; color: var(--muted); }

/* ============================================================
   Projects
   ============================================================ */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.6rem; }

/* Two-project layout (centered) */
.project-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 840px; margin-inline: auto; }
.project-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 350ms var(--ease), border-color 350ms, box-shadow 350ms;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.1); }

.project-media {
  height: 180px; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 0%, var(--surface-2), #0d0d10);
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.project-media img { max-height: 100px; width: auto; transition: transform 500ms var(--ease); }
.project-card:hover .project-media img { transform: scale(1.06); }
.project-media--code { place-items: stretch; }
.project-media--code pre { padding: 1.3rem 1.4rem; width: 100%; overflow: hidden; display: flex; align-items: center; }
.project-media--code code { font-family: var(--mono); font-size: 0.72rem; line-height: 1.95; color: #d4d4d8; }
.project-media--code .mut { color: var(--muted-2); }
.project-media--code .key { color: var(--accent-2); }
.project-media--code .str { color: #86efac; }
.project-media--code .k { color: var(--accent-2); }
.project-media--code .del { color: #f87171; }
.project-media--code .add { color: #4ade80; }
.project-media--code .pass { color: var(--pass); }

.project-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.project-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.project-body p { font-size: 0.93rem; }
.tag-private { font-size: 0.68rem; color: var(--accent-2); background: var(--accent-soft); border: 1px solid rgba(124, 58, 237, 0.25); padding: 0.2rem 0.6rem; border-radius: 100px; white-space: nowrap; }

.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.badges li { font-family: var(--mono); font-size: 0.7rem; color: var(--accent-2); background: var(--accent-soft); border: 1px solid rgba(124, 58, 237, 0.22); border-radius: 100px; padding: 0.22rem 0.65rem; }

.project-link { margin-top: auto; align-self: flex-start; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.45rem; transition: color 200ms; }
.project-link:hover { color: var(--accent-2); }
.project-link .arrow { transition: transform 250ms var(--ease); }
.project-link:hover .arrow { transform: translateX(5px); }
.project-meta { margin-top: auto; color: var(--muted-2); font-size: 0.72rem; }

/* ============================================================
   Experience
   ============================================================ */
.xp-timeline { list-style: none; position: relative; margin-top: 2.8rem; padding-left: 2rem; max-width: 820px; }
.xp-timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(to bottom, var(--accent), rgba(124, 58, 237, 0.05)); }
.xp-item { position: relative; padding-bottom: 2rem; }
.xp-item:last-child { padding-bottom: 0; }
.xp-dot { position: absolute; left: -2rem; top: 10px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
.xp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem 1.9rem; transition: border-color 300ms, transform 300ms var(--ease); }
.xp-card:hover { border-color: var(--border-hover); transform: translateX(4px); }
.xp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.badge-current, .badge-past { padding: 0.2rem 0.75rem; border-radius: 100px; font-size: 0.72rem; }
.badge-current { color: var(--pass); background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.3); }
.badge-past { color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.xp-org { color: var(--accent-2); font-size: 0.9rem; margin: 0.3rem 0 0.7rem; font-weight: 500; }
.xp-card > p:last-child { font-size: 0.95rem; }

/* ============================================================
   Contact
   ============================================================ */
.section--contact { text-align: center; }
.contact-title { margin-bottom: 1.1rem; }
.contact-lead { max-width: 56ch; margin: 0 auto; font-size: 1.06rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.contact-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  text-align: left; padding: 1.9rem 1.9rem 2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none;
  transition: transform 300ms var(--ease), border-color 300ms, box-shadow 300ms;
}
.contact-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 44px rgba(124, 58, 237, 0.13); }
.contact-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--accent-2); background: var(--accent-soft); border: 1px solid rgba(124, 58, 237, 0.25); margin-bottom: 1.1rem; transition: background 300ms, color 300ms; }
.contact-icon svg { width: 22px; height: 22px; }
.contact-card:hover .contact-icon { background: var(--accent); color: #fff; }
.contact-card h3 { color: var(--text); }
.contact-card p { font-size: 0.9rem; margin-top: 0.1rem; }
.contact-card .arrow { position: absolute; right: 1.7rem; bottom: 1.5rem; color: var(--accent-2); font-size: 1.2rem; transition: transform 250ms var(--ease); }
.contact-card:hover .arrow { transform: translateX(6px); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); padding: 5rem 0 2.5rem; text-align: center; background: linear-gradient(to bottom, var(--bg), #0c0a12); }
.footer-thanks { font-size: clamp(1.6rem, 3.8vw, 2.3rem); font-weight: 700; color: var(--text); letter-spacing: -0.025em; }
.footer-by { margin-top: 0.7rem; }
.footer-by strong { color: var(--text); }
.footer-note { font-size: 0.92rem; margin-top: 0.3rem; max-width: 44ch; margin-inline: auto; }
.footer-terminal {
  width: min(440px, 90vw); margin: 2.8rem auto 0;
  background: rgba(17, 17, 19, 0.9); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; text-align: left; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.footer-terminal pre { padding: 1.1rem 1.3rem 1.3rem; overflow: hidden; }
.footer-terminal code { font-size: 0.8rem; line-height: 1.9; color: var(--text); }
.footer-terminal .prompt { color: var(--accent-2); }
.footer-copy { margin-top: 2.4rem; color: var(--muted-2); opacity: 0.8; }

/* ============================================================
   Reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 750ms var(--ease-out), transform 750ms var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.d-1 { transition-delay: 80ms; } .d-2 { transition-delay: 160ms; }
.d-3 { transition-delay: 240ms; } .d-4 { transition-delay: 320ms; } .d-5 { transition-delay: 400ms; }

/* ============================================================
   A11y
   ============================================================ */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .photo-glow, .scroll-hint, .status-dot, .intro-lines .cursor { animation: none !important; }
  .hero-bg { transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .stack-grid { grid-template-columns: repeat(4, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

@media (max-width: 900px) {
  .hero { padding-top: 7rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.6rem; }
  .hero-visual { order: -1; margin-top: 0.5rem; }
  .eyebrow, .hero-roles, .btn-row, .socials { justify-content: center; }
  .hero-desc { margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .about-timeline { position: static; }
  .section { padding: 5.5rem 0; }
}

@media (max-width: 860px) {
  .nav-wrap { top: 10px; }
  .nav { width: min(560px, 92vw); justify-content: space-between; border-radius: 20px; padding: 0.6rem 0.7rem 0.6rem 1.3rem; }
  .nav.shrunk { padding: 0.5rem 0.6rem 0.5rem 1.2rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.15rem; padding: 0.5rem;
    background: rgba(14, 14, 17, 0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: var(--radius);
    max-height: 0; opacity: 0; visibility: hidden; overflow: hidden;
    transition: max-height 340ms var(--ease), opacity 260ms, visibility 340ms;
  }
  .nav-links.open { max-height: 400px; opacity: 1; visibility: visible; }
  .nav-links a { text-align: center; padding: 0.85rem; border-radius: 12px; }
  .nav-links a[data-nav].active::after { display: none; }
  .nav-links a[data-nav].active { background: rgba(255, 255, 255, 0.05); }
  .nav-links a.nav-cta { margin-top: 0.15rem; }
}

@media (max-width: 720px) {
  .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  h1 { font-size: clamp(3rem, 15vw, 4rem); }
  .stack-grid { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
  .tech-card { padding: 1.2rem 0.5rem 1rem; gap: 0.6rem; }
  .tech-icon { width: 44px; height: 44px; }
  .tech-icon svg { width: 21px; height: 21px; }
  .footer-terminal, .intro-terminal { width: 100%; }
  .section { padding: 4.5rem 0; }
}

@media (max-width: 400px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}
