/* ==================================================================
   sarib aftab — cyber security portfolio
   ================================================================== */

/* ---------- design tokens ---------- */
:root {
  /* surfaces */
  --bg:           #050810;
  --bg-2:         #070b18;
  --surface:      #0d1320;
  --surface-2:    #131a2c;
  --surface-3:    #1a2238;
  --border:       #1c2540;
  --border-soft:  rgba(58, 78, 124, 0.18);

  /* text */
  --text:         #e4e8f0;
  --text-mute:    #8896b3;
  --text-dim:     #5a6783;

  /* accents */
  --acc:          #00ff9d;  /* primary terminal green */
  --acc-2:        #00d4ff;  /* cyan */
  --acc-3:        #ff3e80;  /* magenta / warn */
  --acc-4:        #a855f7;  /* purple */
  --acc-warn:     #fbbf24;

  /* glow */
  --glow:         0 0 24px rgba(0, 255, 157, 0.35);
  --glow-soft:    0 0 12px rgba(0, 255, 157, 0.18);
  --glow-cyan:    0 0 24px rgba(0, 212, 255, 0.30);

  /* typography */
  --f-display:    "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-body:       "Inter", system-ui, -apple-system, sans-serif;
  --f-mono:       "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* layout */
  --maxw:         1280px;
  --gutter:       clamp(1.2rem, 3vw, 2.2rem);
  --section-pad:  clamp(4.5rem, 10vw, 8rem);

  /* motion */
  --ease:         cubic-bezier(.2, .8, .2, 1);
  --dur:          420ms;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
::selection { background: rgba(0, 255, 157, 0.25); color: #fff; }

/* ---------- backgrounds ---------- */
#matrix {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.30;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.2) 100%);
}
.grid-bg {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 255, 157, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 255, 157, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  animation: gridShift 24s linear infinite;
}
@keyframes gridShift {
  0%   { background-position: 0 0,   0 0; }
  100% { background-position: 60px 0, 0 60px; }
}
.noise {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.scanline {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0,255,157,0.04) 50%, transparent 100%);
  background-size: 100% 6px;
  animation: scan 12s linear infinite;
  opacity: 0.35;
  mix-blend-mode: screen;
}
@keyframes scan { from { background-position: 0 0; } to { background-position: 0 1200px; } }

main, header, footer { position: relative; z-index: 2; }

/* ==================================================================
   NAV
   ================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem var(--gutter);
  background: rgba(5, 8, 16, 0.65);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  transition: padding var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav.scrolled { padding: 0.6rem var(--gutter); background: rgba(5, 8, 16, 0.85); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand-mark { color: var(--acc); text-shadow: var(--glow-soft); }
.brand-txt  { color: var(--text); }
.brand-dot  { color: var(--acc); }

.nav-links {
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--text-mute);
}
.nav-links a {
  position: relative;
  padding: 0.35rem 0;
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--acc); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px; width: 0;
  background: var(--acc);
  transition: width var(--dur) var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--acc);
  color: var(--acc);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  background: rgba(0, 255, 157, 0.05);
  transition: all var(--dur) var(--ease);
}
.nav-cta:hover { background: rgba(0, 255, 157, 0.13); box-shadow: var(--glow); }
.nav-cta .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 10px var(--acc);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.3); }
}

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

/* ==================================================================
   HERO
   ================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) 4rem;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(13, 19, 32, 0.7);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 10px var(--acc);
  animation: pulse 2s ease-in-out infinite;
}

.hero-name {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.4rem;
  background: linear-gradient(180deg, #ffffff 0%, #b6c1d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  cursor: default;
  display: inline-block;
}
/* glitch on hover */
.hero-name::before,
.hero-name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #b6c1d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
}
.hero-name:hover::before { opacity: 0.85; animation: glitchA 700ms steps(2) infinite; color: transparent; -webkit-text-stroke: 1px var(--acc); background: transparent; }
.hero-name:hover::after  { opacity: 0.85; animation: glitchB 700ms steps(2) infinite; color: transparent; -webkit-text-stroke: 1px var(--acc-2); background: transparent; }
@keyframes glitchA {
  0%   { transform: translate(0, 0);   clip-path: inset(20% 0 60% 0); }
  40%  { transform: translate(-3px, 1px); clip-path: inset(10% 0 70% 0); }
  80%  { transform: translate(2px, -1px); clip-path: inset(50% 0 30% 0); }
  100% { transform: translate(0, 0);   clip-path: inset(20% 0 60% 0); }
}
@keyframes glitchB {
  0%   { transform: translate(0, 0);   clip-path: inset(60% 0 20% 0); }
  40%  { transform: translate(3px, -1px); clip-path: inset(30% 0 50% 0); }
  80%  { transform: translate(-2px, 1px); clip-path: inset(80% 0 10% 0); }
  100% { transform: translate(0, 0);   clip-path: inset(60% 0 20% 0); }
}

.hero-role {
  font-family: var(--f-mono);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--text);
  margin-bottom: 1.6rem;
  letter-spacing: -0.01em;
}
.role-prefix { color: var(--acc); font-weight: 700; margin-right: 0.5rem; }
.role-type { color: var(--acc); }
.role-caret {
  display: inline-block;
  color: var(--acc);
  font-weight: 700;
  animation: blink 1s steps(2) infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-tagline {
  color: var(--text-mute);
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  max-width: 38ch;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border-radius: 6px;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.btn svg { transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--acc);
  color: #052012;
  font-weight: 700;
  box-shadow: var(--glow);
}
.btn-primary:hover {
  background: #00ffa6;
  box-shadow: 0 0 32px rgba(0, 255, 157, 0.55), 0 0 4px var(--acc);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--acc);
  color: var(--acc);
  background: rgba(0, 255, 157, 0.06);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all var(--dur) var(--ease);
}
.tag:hover { color: var(--acc); border-color: var(--acc); }

/* ---------- terminal ---------- */
.hero-right { display: flex; flex-direction: column; gap: 1.2rem; }

.terminal {
  background: linear-gradient(180deg, rgba(13, 19, 32, 0.95) 0%, rgba(7, 11, 24, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--f-mono);
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 255, 157, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--text-mute);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.term-dot.red    { background: #ff5f56; }
.term-dot.amber  { background: #ffbd2e; }
.term-dot.green  { background: #27c93f; }
.term-title { margin-left: 0.6rem; color: var(--text-mute); }
.term-meta {
  margin-left: auto;
  color: var(--acc);
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.term-meta::before { content: "●"; }

.term-body {
  padding: 1.1rem 1.2rem;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--text);
  min-height: 260px;
  white-space: pre-wrap;
}
.term-body-tight { min-height: auto; padding: 0.9rem 1.1rem; font-size: 0.8rem; }

.term-body .line { display: block; }
.term-body .prompt { color: var(--acc); font-weight: 700; margin-right: 0.4rem; }
.term-body .cmd { color: var(--acc-2); }
.term-body .str { color: var(--acc-warn); }
.term-body .muted { color: var(--text-mute); padding-left: 1.05rem; }
.term-body .hl { color: var(--acc); }
.term-body .cursor {
  display: inline-block;
  color: var(--acc);
  animation: blink 1s steps(2) infinite;
}

/* mini cards under terminal */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.mini-card {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(13, 19, 32, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.mini-card:hover { border-color: var(--acc); transform: translateY(-2px); }
.mini-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.mini-value {
  font-family: var(--f-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.mini-online { color: var(--acc); display: inline-flex; align-items: center; gap: 0.35rem; }
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 10px var(--acc);
  animation: pulse 2s ease-in-out infinite;
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: floaty 2s ease-in-out infinite;
}
.scroll-cue:hover { color: var(--acc); }
@keyframes floaty {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* ==================================================================
   sections (shared)
   ================================================================== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
}
.section-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.section-num {
  font-family: var(--f-mono);
  color: var(--acc);
  font-size: 0.85rem;
  font-weight: 700;
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .scroll-cue, .grid-bg, .scanline, .hero-badge-dot, .pulse, .nav-cta .dot, .role-caret { animation: none !important; transform: none !important; opacity: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ==================================================================
   ABOUT
   ================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p {
  color: var(--text-mute);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 1.3rem;
  max-width: 60ch;
}
.about-text strong { color: var(--text); font-weight: 600; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  position: relative;
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(13, 19, 32, 0.6);
  transition: all var(--dur) var(--ease);
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--acc), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover { transform: translateY(-3px); }
.stat-num {
  font-family: var(--f-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--acc);
  line-height: 1;
  display: inline-block;
  text-shadow: var(--glow-soft);
}
.stat-suffix {
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--acc);
  margin-left: 2px;
}
.stat-lbl {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

/* ==================================================================
   TIMELINE
   ================================================================== */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 4px; bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--acc) 0%, var(--border) 40%, var(--border) 100%);
}
.t-item { position: relative; margin-bottom: 1.8rem; }
.t-item:last-child { margin-bottom: 0; }
.t-dot {
  position: absolute;
  left: -1.5rem;
  top: 1.6rem;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--acc);
  box-shadow: 0 0 0 4px rgba(0, 255, 157, 0.08), var(--glow-soft);
  transition: all var(--dur) var(--ease);
}
.t-item:hover .t-dot {
  background: var(--acc);
  box-shadow: 0 0 0 4px rgba(0, 255, 157, 0.18), 0 0 20px var(--acc);
}

.t-card {
  padding: 1.5rem 1.7rem;
  background: rgba(13, 19, 32, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.t-item:hover .t-card {
  border-color: rgba(0, 255, 157, 0.4);
  transform: translateX(4px);
  background: rgba(13, 19, 32, 0.85);
}

.t-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.t-role {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.t-org {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--acc);
  margin-top: 0.2rem;
}
.t-meta {
  text-align: right;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--text-mute);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.t-date { color: var(--text); }
.t-loc  { color: var(--text-dim); }

.t-list {
  margin: 0.4rem 0 1.1rem;
  padding: 0;
}
.t-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-mute);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 0.45rem;
}
.t-list li::before {
  content: "▸";
  position: absolute;
  left: 0; top: 0;
  color: var(--acc);
  font-weight: 700;
}
.kw {
  color: var(--text);
  font-weight: 600;
  background: rgba(0, 255, 157, 0.08);
  padding: 0 0.3rem;
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 0.88em;
}

.t-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}
.chip {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.06);
  color: var(--acc-2);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

/* ==================================================================
   EDUCATION
   ================================================================== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.edu-card {
  padding: 1.7rem 1.5rem;
  background: rgba(13, 19, 32, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.edu-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--acc), transparent);
  opacity: 0.4;
}
.edu-active { border-color: rgba(0, 255, 157, 0.4); box-shadow: var(--glow-soft); }
.edu-active::after { opacity: 1; }

.edu-card:hover { transform: translateY(-4px); border-color: rgba(0, 255, 157, 0.5); }

.edu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  margin-bottom: 1.1rem;
}
.edu-flag { color: var(--acc); font-weight: 700; letter-spacing: 0.05em; }
.edu-active .edu-flag { animation: pulse 2.5s ease-in-out infinite; }
.edu-date { color: var(--text-mute); }

.edu-school {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}
.edu-deg { color: var(--acc-2); font-family: var(--f-mono); font-size: 0.85rem; margin-bottom: 0.2rem; }
.edu-loc { color: var(--text-dim); font-family: var(--f-mono); font-size: 0.78rem; margin-bottom: 1rem; }

.edu-list { font-size: 0.88rem; color: var(--text-mute); }
.edu-list li {
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.7;
  margin-bottom: 0.3rem;
}
.edu-list li::before { content: "›"; position: absolute; left: 0; color: var(--acc); font-weight: 700; }

/* ==================================================================
   PROJECTS
   ================================================================== */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.3rem;
}
.proj-card {
  padding: 1.6rem 1.5rem;
  background: rgba(13, 19, 32, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: all var(--dur) var(--ease);
  --c: var(--acc);
}
.proj-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--c) 0%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.proj-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 18%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.proj-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c) 60%, transparent);
}
.proj-card:hover::before,
.proj-card:hover::after { opacity: 1; }

.proj-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  margin-bottom: 1.2rem;
}
.proj-id { color: var(--c); font-weight: 700; }
.proj-status {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: var(--c);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.proj-name {
  font-family: var(--f-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}
.proj-desc {
  color: var(--text-mute);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}
.proj-desc strong { color: var(--text); font-weight: 600; }
.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border);
}
.proj-stack span {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
}

/* ==================================================================
   SKILLS
   ================================================================== */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.2rem;
}
.skill-block {
  padding: 1.5rem 1.4rem;
  background: rgba(13, 19, 32, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--dur) var(--ease);
}
.skill-block:hover { border-color: rgba(0, 255, 157, 0.3); }
.skill-h {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--acc);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tags span {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 200ms var(--ease);
  cursor: default;
}
.skill-tags span:hover {
  background: rgba(0, 255, 157, 0.08);
  border-color: var(--acc);
  color: var(--acc);
  transform: translateY(-1px);
}

/* ==================================================================
   CERTS
   ================================================================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.cert-card {
  padding: 1.2rem 1.3rem;
  background: rgba(13, 19, 32, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all var(--dur) var(--ease);
  position: relative;
}
.cert-card:hover {
  background: rgba(13, 19, 32, 0.9);
  border-color: rgba(0, 255, 157, 0.35);
  transform: translateY(-2px);
}
.cert-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--acc);
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.2);
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.7rem;
}
.cert-honor .cert-tag { color: var(--acc-warn); background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.25); }
.cert-name {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}
.cert-by { color: var(--text-mute); font-size: 0.82rem; font-family: var(--f-mono); }

/* ==================================================================
   CONTACT
   ================================================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-h {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #fff 0%, var(--acc) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-p {
  color: var(--text-mute);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 42ch;
}
.contact-list { display: flex; flex-direction: column; gap: 0.7rem; }
.contact-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(13, 19, 32, 0.7);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all var(--dur) var(--ease);
}
.contact-row:hover {
  border-color: var(--acc);
  background: rgba(13, 19, 32, 0.95);
  transform: translateX(3px);
}
.contact-row:hover .c-arrow { transform: translate(3px, -3px); color: var(--acc); }
.c-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(0, 255, 157, 0.08);
  color: var(--acc);
  border-radius: 8px;
  font-family: var(--f-mono);
  font-weight: 700;
}
.c-lbl {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}
.c-val { display: block; color: var(--text); font-size: 0.95rem; }
.c-arrow {
  color: var(--text-mute);
  font-size: 1.2rem;
  transition: all var(--dur) var(--ease);
}

.terminal-small .term-body .line {
  margin-bottom: 0.15rem;
}

/* ==================================================================
   footer
   ================================================================== */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 1.8rem var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  max-width: var(--maxw);
  margin: 4rem auto 0;
}
.footer-l { display: flex; align-items: center; gap: 0.5rem; color: var(--text); }
.footer-c { text-align: center; }
.footer-r {
  display: inline-flex;
  justify-content: flex-end;
  gap: 0.8rem;
  color: var(--text-mute);
}
.footer-r a { transition: color var(--dur) var(--ease); }
.footer-r a:hover { color: var(--acc); }
.muted { color: var(--text-mute); }
.hl { color: var(--acc); }
.sep { color: var(--text-dim); }

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-right { order: 2; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .edu-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer-l, .footer-r { justify-content: center; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 60px 0 0 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3rem;
    gap: 1.6rem;
    background: rgba(5, 8, 16, 0.98);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    font-size: 1.05rem;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .nav { grid-template-columns: 1fr auto; }

  .hero { min-height: auto; padding-top: 2rem; }
  .hero-cards { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .t-head { flex-direction: column; }
  .t-meta { text-align: left; }
  .section-head { gap: 0.8rem; }
}
@media (max-width: 480px) {
  .stat-num { font-size: 2rem; }
  .terminal { font-size: 0.8rem; }
}
