/* ============================================================
   NervHQ Portfolio — William Roberts
   Theme: acid-lime on near-black, teal secondary. HUD detailing.
   Palette + type tokens live in :root — change here to re-skin.
   ============================================================ */

:root {
  /* ---- Palette (6 named values) ---- */
  --bg:        #0a0b09;   /* near-black base, faint warm-green cast */
  --bg-2:      #0e100c;
  --panel:     #12140f;   /* raised surfaces */
  --panel-2:   #171a13;
  --line:      #242a1d;   /* hairline borders */
  --line-2:    #35402a;   /* stronger borders */

  --text:      #eef2e6;   /* warm white */
  --muted:     #9aa58c;   /* olive-gray body */
  --dim:       #626b55;

  --lime:      #c3f53a;   /* PRIMARY accent */
  --lime-hot:  #d6ff5c;   /* highlight / glow */
  --teal:      #29c1d6;   /* secondary accent */

  --glow-lime: 0 0 14px rgba(195, 245, 58, .45);
  --glow-teal: 0 0 14px rgba(41, 193, 214, .40);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;

  --font-display: 'Chakra Petch', system-ui, sans-serif;
  --font-body:    'Rajdhani', system-ui, -apple-system, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, 'Courier New', monospace;
}

/* ---- Reset-ish ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

code {
  font-family: var(--font-mono);
  font-size: .82em;
  color: var(--lime-hot);
  background: rgba(195, 245, 58, .08);
  border: 1px solid rgba(195, 245, 58, .22);
  padding: 1px 6px; border-radius: 5px;
}
.text-lime { color: var(--lime); }
.text-teal { color: var(--teal); }

/* ---- Reusable HUD bits ---- */
.reticle {
  position: absolute; width: 26px; height: 26px; z-index: 3; opacity: .8;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c3f53a' stroke-width='1'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 0v6M12 18v6M0 12h6M18 12h6'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.plus-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border: 1px solid var(--line-2); border-radius: 6px;
  color: var(--lime); font-family: var(--font-mono); font-size: 15px; line-height: 1;
  background: var(--panel);
}
.tick { display: inline-block; width: 9px; height: 9px; margin-right: 4px; flex: 0 0 auto;
  border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime);
  transform: rotate(-45deg) translateY(-2px); }

/* ============================================================
   Ambient FX
   ============================================================ */
.fx-grid, .fx-vignette { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.fx-grid {
  background-image:
    linear-gradient(rgba(195,245,58,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(195,245,58,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 95% 65% at 50% 0%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 95% 65% at 50% 0%, #000 25%, transparent 80%);
}
.fx-vignette { background: radial-gradient(ellipse 85% 85% at 50% 25%, transparent 55%, rgba(0,0,0,.65) 100%); }

.nav, .hero, .section, .footer { position: relative; z-index: 1; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 22px 30px; gap: 20px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { color: var(--lime); font-size: 18px; text-shadow: var(--glow-lime); }
.nav__name { font-family: var(--font-display); font-weight: 700; letter-spacing: 2px; font-size: 15px; }
.nav__links { display: flex; gap: 30px; font-family: var(--font-mono); font-size: 13px; }
.nav__links a { color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--lime); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--text);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px;
  transition: border-color .2s, color .2s;
}
.nav__cta:hover { border-color: var(--lime); color: var(--lime); }
.nav__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 10px var(--lime); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }

/* ============================================================
   Hero
   ============================================================ */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 18px 30px 40px; }
.hero-panel {
  position: relative; border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(195,245,58,.10), transparent 55%),
    linear-gradient(180deg, var(--bg-2), #0b0d0a);
  padding: clamp(28px, 4vw, 56px);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(195,245,58,.07), 0 30px 80px rgba(0,0,0,.55);
}
.hero-beam {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 220px; height: 320px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(214,255,92,.55), rgba(195,245,58,.06) 55%, transparent);
  filter: blur(30px); opacity: .55;
}
.reticle--tr { top: 16px; right: 16px; }
.reticle--bl { bottom: 16px; left: 16px; }
.plus-badge--float { position: absolute; top: 20px; left: 22px; }
.trace {
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--dim);
}

.hero__grid { display: grid; grid-template-columns: 290px 1fr; gap: 50px; align-items: center; }

/* Portrait */
.hero__portrait { display: flex; flex-direction: column; gap: 12px; }
.portrait-frame {
  position: relative; aspect-ratio: 4/5; width: 100%;
  background: linear-gradient(135deg, rgba(195,245,58,.08), rgba(41,193,214,.05)), var(--panel);
  border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  box-shadow: inset 0 0 40px rgba(195,245,58,.05);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-placeholder { position: absolute; inset: 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; color: var(--dim); }
.portrait-placeholder .ph-icon { font-size: 48px; color: var(--lime); opacity: .55; }
.portrait-placeholder .ph-text { font-family: var(--font-display); letter-spacing: 5px; font-size: 15px; }
.portrait-placeholder .ph-sub { font-family: var(--font-mono); font-size: 11px; }
.corner { position: absolute; width: 20px; height: 20px; z-index: 2; }
.corner::before, .corner::after { content: ''; position: absolute; background: var(--lime); box-shadow: var(--glow-lime); }
.corner::before { width: 20px; height: 2px; }
.corner::after { width: 2px; height: 20px; }
.corner.tl { top: 8px; left: 8px; }
.corner.tr { top: 8px; right: 8px; } .corner.tr::before { right: 0; } .corner.tr::after { right: 0; }
.corner.bl { bottom: 8px; left: 8px; } .corner.bl::before { bottom: 0; } .corner.bl::after { bottom: 0; }
.corner.br { bottom: 8px; right: 8px; } .corner.br::before { bottom: 0; right: 0; } .corner.br::after { bottom: 0; right: 0; }
.portrait-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--muted);
  text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 7px; background: var(--panel);
}

/* Intro */
.hero__eyebrow { font-family: var(--font-mono); color: var(--teal); letter-spacing: 4px; font-size: 12px; margin: 0 0 16px; }
.hero__name {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(46px, 8vw, 96px); line-height: .92; letter-spacing: 1px; margin: 0 0 18px;
  color: var(--text); text-shadow: 0 0 30px rgba(195,245,58,.14);
}
.hero__name::after {
  content: ''; display: block; width: 96px; height: 5px; margin-top: 16px;
  background: var(--lime); box-shadow: var(--glow-lime); border-radius: 2px;
}
.hero__role {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(16px, 2.3vw, 22px);
  letter-spacing: 1px; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.hero__role .slash { color: var(--dim); }
.hero__summary { color: var(--muted); max-width: 56ch; font-size: 18px; margin: 0 0 30px; }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 9px;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn--lime { background: var(--lime); color: #12160a; font-weight: 700; box-shadow: 0 0 22px rgba(195,245,58,.32); }
.btn--lime:hover { background: var(--lime-hot); transform: translateY(-2px); box-shadow: 0 0 34px rgba(195,245,58,.55); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); box-shadow: var(--glow-teal); }

/* Core stack strip */
.strip {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  padding: 18px 26px; margin-top: 22px;
}
.strip__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: var(--lime); line-height: 1.3; }
.strip__label span { color: var(--dim); }
.strip__items { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 0; flex: 1; }
.strip__items li {
  font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: .5px;
  color: var(--muted); transition: color .2s;
}
.strip__items li:hover { color: var(--text); }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 74px 30px; }
.section__head { margin-bottom: 40px; }
.section__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px; color: var(--teal); display: block; margin-bottom: 10px; }
.section__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 4vw, 44px); letter-spacing: 1px; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; }
.about-lead { font-size: 20px; color: var(--text); margin: 0; line-height: 1.55; }
.about-cards { display: flex; flex-direction: column; gap: 14px; }
.mini-card { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--lime); border-radius: 10px; padding: 15px 18px; }
.mini-card__k { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--teal); margin-bottom: 5px; }
.mini-card__v { color: var(--muted); font-size: 16px; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill-group {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-left: 3px solid var(--line-2);
  border-radius: var(--radius); padding: 22px; transition: border-color .25s, transform .25s;
}
.skill-group:hover { border-left-color: var(--lime); transform: translateY(-3px); }
.skill-group h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 15px; letter-spacing: 1px; margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255,255,255,.012);
  padding: 6px 11px; border-radius: 7px; transition: color .2s, border-color .2s;
}
.chips span:hover { color: var(--lime); border-color: rgba(195,245,58,.4); }

/* ============================================================
   Feature (NervHQ)
   ============================================================ */
.feature {
  position: relative; border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 0%, rgba(195,245,58,.07), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(41,193,214,.06), transparent 45%),
    var(--bg-2);
  padding: clamp(30px, 4vw, 46px); margin-bottom: 44px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.feature__badge {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px;
  background: var(--lime); color: #12160a; font-weight: 700; padding: 5px 12px; border-radius: 6px; margin-bottom: 18px;
}
.feature__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(38px, 7vw, 76px); line-height: .95; letter-spacing: 1px; margin: 0; }
.feature__sub { font-family: var(--font-mono); font-size: 14px; letter-spacing: 1px; color: var(--muted); margin: 10px 0 20px; }
.feature__desc { color: var(--muted); max-width: 76ch; font-size: 17px; margin: 0 0 24px; }
.feature__pillars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.feature__pillars li { display: flex; align-items: center; color: var(--text); font-size: 15.5px; }

/* ============================================================
   Topology
   ============================================================ */
.topo { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 44px; }
.topo__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.topo__title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 18px; letter-spacing: 1px; margin: 0; }
.topo__legend { display: flex; gap: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.lg { display: flex; align-items: center; gap: 8px; }
.lg i { width: 22px; height: 0; border-top: 2px solid; }
.lg--data i { border-color: var(--lime); }
.lg--log i { border-color: var(--teal); border-top-style: dashed; }
.topo__canvas {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 45px, rgba(195,245,58,.025) 46px),
    radial-gradient(circle at 50% 40%, rgba(195,245,58,.035), transparent 70%);
  border-radius: 12px; padding: 10px; overflow-x: auto;
}
.topo__canvas svg { width: 100%; min-width: 720px; height: auto; display: block; }

.node rect { fill: var(--panel-2); stroke: var(--line-2); stroke-width: 1.5; }
.node .n-title { fill: var(--text); font-family: var(--font-display); font-size: 13px; font-weight: 700; text-anchor: middle; }
.node .n-sub { fill: var(--muted); font-family: var(--font-mono); font-size: 10px; text-anchor: middle; }
.node .n-note { fill: var(--teal); font-family: var(--font-mono); font-size: 11px; text-anchor: middle; }
.node--cloud rect { stroke: var(--dim); stroke-dasharray: 4 3; fill: rgba(255,255,255,.02); }
.node--fw rect  { stroke: var(--teal); filter: drop-shadow(0 0 8px rgba(41,193,214,.35)); }
.node--sw rect  { stroke: var(--lime); filter: drop-shadow(0 0 8px rgba(195,245,58,.28)); }
.node--siem rect { stroke: var(--lime); fill: rgba(195,245,58,.06); filter: drop-shadow(0 0 12px rgba(195,245,58,.4)); }
.node--siem .n-title { fill: var(--lime); }
.node--vpn rect { stroke: var(--teal); }
.node--vpn .n-title { fill: var(--teal); }
.node--host rect { stroke: var(--line-2); }
.edge path { fill: none; }
.edge--data path { stroke: var(--lime); stroke-width: 1.8; opacity: .78; }
.edge--log path { stroke: var(--teal); stroke-width: 1.6; stroke-dasharray: 5 4; opacity: .7; }

/* Explainers */
.explain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.explain { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .25s, border-color .25s; }
.explain:hover { transform: translateY(-4px); border-color: var(--line-2); }
.explain__num { font-family: var(--font-mono); font-size: 12px; color: var(--dim); letter-spacing: 2px; }
.explain__h { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: .3px; margin: 8px 0 10px; }
.explain p { color: var(--muted); font-size: 15px; margin: 0; }
.explain--siem { border-color: rgba(195,245,58,.28); }

/* ============================================================
   Roadmap (vertical build log)
   ============================================================ */
.roadmap { list-style: none; margin: 0; padding: 0; position: relative; max-width: 780px; }
.roadmap::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.rm { position: relative; display: flex; gap: 26px; padding: 0 0 30px 0; }
.rm:last-child { padding-bottom: 0; }
.rm__node {
  position: relative; z-index: 1; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px;
  border-radius: 50%; border: 2px solid var(--lime); background: var(--bg);
}
.rm--done .rm__node { background: var(--lime); box-shadow: var(--glow-lime); }
.rm--next .rm__node { border-color: var(--dim); }
.rm__body { padding-top: 0; }
.rm__status { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--lime); border: 1px solid rgba(195,245,58,.4); border-radius: 5px; padding: 2px 8px; }
.rm__status--next { color: var(--dim); border-color: var(--line-2); }
.rm__body h4 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: .3px; margin: 12px 0 6px; }
.rm__body p { color: var(--muted); font-size: 15px; margin: 0; max-width: 60ch; }
.rm--next .rm__body h4 { color: var(--muted); }

/* ============================================================
   Download button + split section head
   ============================================================ */
.btn--dl { padding: 12px 22px; }
.dl-glyph { display: inline-block; width: 12px; height: 12px; position: relative; }
.dl-glyph::before { content: ''; position: absolute; left: 5px; top: 0; width: 2px; height: 9px; background: currentColor; }
.dl-glyph::after { content: ''; position: absolute; left: 2px; top: 4px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.section__head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ============================================================
   Experience — dated service-record layout
   ============================================================ */
.exp { border-top: 1px solid var(--line); }
.exp__row { display: grid; grid-template-columns: 150px 1fr; gap: 0; border-bottom: 1px solid var(--line); padding: 30px 0; }
.exp__date {
  font-family: var(--font-mono); line-height: 1.2; padding-right: 24px;
}
.exp__date span { display: block; font-size: 26px; color: var(--lime); letter-spacing: 1px; }
.exp__date em { font-style: normal; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--dim); }
.exp__body { position: relative; padding-left: 30px; border-left: 1px solid var(--line-2); }
.exp__marker { position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; background: var(--lime); box-shadow: var(--glow-lime); transform: rotate(45deg); }
.exp__row--edu .exp__marker { background: var(--bg); border: 2px solid var(--teal); box-shadow: none; }
.exp__role { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: .3px; margin: 0 0 4px; }
.exp__org { font-family: var(--font-mono); font-size: 13px; color: var(--teal); margin: 0 0 14px; }
.exp__org span { color: var(--dim); margin: 0 4px; }
.exp__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.exp__points li { position: relative; padding-left: 20px; color: var(--muted); font-size: 15.5px; max-width: 70ch; }
.exp__points li::before { content: ''; position: absolute; left: 0; top: 10px; width: 7px; height: 2px; background: var(--lime); }
.exp__note { color: var(--muted); font-size: 15px; margin: 0; max-width: 70ch; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 34px 30px 46px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.footer__brand { color: var(--lime); letter-spacing: 2px; }
.footer__links a:hover { color: var(--lime); }
.footer__links .pipe { color: var(--line-2); margin: 0 10px; }
.footer__note { max-width: var(--maxw); margin: 18px auto 0; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__portrait { max-width: 260px; }
  .trace { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .explain-grid { grid-template-columns: repeat(2, 1fr); }
  .feature__pillars { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .hero { padding: 12px 16px 30px; }
  .section { padding: 56px 18px; }
  .skills-grid, .explain-grid { grid-template-columns: 1fr; }
  .strip { gap: 16px; }
  .reticle { display: none; }
  .exp__row { grid-template-columns: 1fr; gap: 16px; }
  .exp__date { display: flex; align-items: baseline; gap: 10px; padding-right: 0; }
  .exp__date span { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; transition: none !important; }
}
