/* =====================================================================
   RESUME SITE STYLES  (Security-console theme — de-identified build)
   ===================================================================== */
:root {
  /* Dark "SOC / terminal" palette */
  --bg: #0c0f14;
  --bg-soft: #11161d;
  --surface: #141b24;
  --surface-2: #1b2530;
  --border: #243140;
  --text: #e6edf3;
  --text-dim: #aab8c6;
  --text-faint: #6b7c8c;
  --accent: #2ee6a6;      /* signal green */
  --accent-2: #38bdf8;    /* console cyan */
  --accent-grad: linear-gradient(120deg, #2ee6a6 0%, #38bdf8 100%);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
  --maxw: 1000px;
}
:root[data-theme="light"] {
  --bg: #f4f7fa;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef3f7;
  --border: #d4dee7;
  --text: #0f1722;
  --text-dim: #3a4a5a;
  --text-faint: #6b7c8c;
  --shadow: 0 18px 50px rgba(20, 40, 70, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---- Background: blueprint grid + console glow ---- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 39px, var(--border) 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, var(--border) 39px 40px);
  opacity: 0.10;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(640px 420px at 85% -10%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(520px 380px at 6% 2%, rgba(46, 230, 166, 0.10), transparent 60%);
}

/* ---- SOC "liveness" layers (all behind content, non-interactive) ---- */
/* faint moving scan-sweep, like a console refresh */
.bg-sweep {
  position: fixed; left: 0; right: 0; top: 0; height: 38vh; z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(56,189,248,0.06), transparent 100%);
  animation: sweep 9s linear infinite;
}
@keyframes sweep {
  0%   { transform: translateY(-40vh); opacity: 0; }
  12%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(120vh); opacity: 0; }
}
/* full-screen threat globe (background layer, behind content) */
.bg-globe {
  position: fixed; inset: 0; z-index: -2;           /* behind grid/sweep/content */
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.5;                                      /* ambient, not distracting */
  overflow: hidden;
}
#globeViz { width: 100vw; height: 100vh; }
#globeViz canvas { opacity: 0.85; }
@media (prefers-reduced-motion: reduce) {
  .bg-globe { display: none; }
}
/* bottom live event ticker (SIEM feed feel) */
.bg-ticker {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;          /* topmost layer */
  height: 22px; overflow: hidden;
  font-family: var(--mono); font-size: 11px; line-height: 22px;
  color: var(--text-faint); opacity: 0.5;
  white-space: nowrap; pointer-events: none;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 92%, transparent));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.bg-ticker__track { display: inline-flex; white-space: nowrap; animation: ticker 1800s linear infinite; will-change: transform; }
.bg-ticker__track > .ticker-copy { display: inline-flex; }
.bg-ticker__track span { margin: 0 26px; }
.bg-ticker__track .ok { color: var(--accent); }
.bg-ticker__track .warn { color: #f5c451; }
.bg-ticker__track .info { color: var(--accent-2); }
/* two identical copies -> -50% gives a perfectly seamless, break-free loop */
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* slim top status rail — reads as a real console app */
.soc-rail {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 18px;
  height: 26px; padding: 0 clamp(14px, 4vw, 40px);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.4px;
  color: var(--text-faint);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  pointer-events: none;
  overflow: hidden;
}
/* allow hover/tooltips on individual labels without the rail eating clicks elsewhere */
.soc-rail span { pointer-events: auto; cursor: help; }
.soc-rail b { color: var(--text-dim); font-weight: 600; }
.soc-rail .dot { color: var(--accent); }
.soc-rail .sep { opacity: 0.4; }
.soc-rail .live { color: var(--accent); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
@media (max-width: 620px) { .soc-rail .hide-sm { display: none; } }

/* hover/focus drawer for rail pieces — SOC-styled info panel */
.rail-item { position: relative; pointer-events: auto; cursor: help; }
.rail-item.pinned { color: var(--accent); text-shadow: 0 0 6px rgba(46,230,166,0.5); }
.rail-item.pinned::after {
  content: " 📌";
  font-size: 0.72em;
  vertical-align: super;
  filter: drop-shadow(0 0 3px rgba(46,230,166,0.6));
}
.rail-drawer {
  position: fixed; top: 30px; left: 0; z-index: 80;
  min-width: 240px; max-width: 340px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--bg) 92%, #000);
  border: 1px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(46,230,166,0.15);
  font-family: var(--mono); font-size: 11px; line-height: 1.5;
  color: var(--text-dim);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
}
.rail-drawer.show { opacity: 1; transform: translateY(0); }
.rail-drawer__title {
  color: var(--accent); font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 6px; text-transform: uppercase; font-size: 10px;
  border-bottom: 1px solid var(--border); padding-bottom: 4px;
}
.rail-drawer__body .kv { display: flex; justify-content: space-between; gap: 12px; }
.rail-drawer__body .kv .k { color: var(--text-faint); }
.rail-drawer__body .kv .v { color: var(--text-dim); text-align: right; }
.rail-drawer__body .src { margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 9.5px; }
.rail-drawer__body .dot { display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:5px; vertical-align:middle; }
.rail-drawer__body .dot.on { background: var(--accent); }
.rail-drawer__body .dot.off { background: #666; }

/* push page content below the rail so nothing hides under it */
body { padding-top: 26px; }

@media (prefers-reduced-motion: reduce) {
  .bg-sweep, .bg-ticker__track { animation: none; }
  .soc-rail .live { animation: none; }
}

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 48px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.nav--scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 78%, transparent); }
.nav__brand { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.5px; }
.nav__brand span { color: var(--accent); }
.nav__links { display: flex; gap: clamp(10px, 2.5vw, 26px); }
.nav__links a { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.theme-toggle {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1.1rem;
  display: grid; place-items: center; transition: transform 0.15s, border-color 0.2s;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--accent); }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---- Hero ---- */
.hero {
  min-height: 78vh; display: grid; place-items: center; text-align: center;
  padding: 60px clamp(18px, 5vw, 48px);
}
.hero__inner { max-width: 740px; }
.hero__avatar {
  width: 104px; height: 104px; margin: 0 auto 22px;
  border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 2.2rem; color: #14210c;
  background: var(--accent-grad); box-shadow: var(--shadow);
}
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 3px; font-size: 0.78rem;
  font-weight: 600; color: var(--accent); margin: 0 0 10px;
}
.hero__name {
  font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 800; line-height: 1.05;
  margin: 0 0 14px; letter-spacing: -1.5px;
}
.hero__tagline { color: var(--text-dim); font-size: clamp(1rem, 2.4vw, 1.2rem); max-width: 600px; margin: 0 auto 26px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 999px; font-size: 0.86rem;
}
.chip__label { color: var(--text-faint); }
.chip__value { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.btn--primary { background: var(--accent-grad); color: #07221a; box-shadow: 0 10px 30px rgba(46, 230, 166, 0.25); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---- Content / sections ---- */
.content { max-width: var(--maxw); margin: 0 auto; padding: 20px clamp(18px, 5vw, 48px) 60px; }
.section { padding: 52px 0; border-top: 1px solid var(--border); }
.section__title {
  font-size: 1.6rem; font-weight: 700; margin: 0 0 26px;
  display: flex; align-items: center; gap: 14px; letter-spacing: -0.5px;
}
.section__num {
  font-family: "JetBrains Mono", monospace; font-size: 0.85rem; color: var(--accent);
  border: 1px solid var(--border); border-radius: 8px; padding: 4px 9px;
}
.section__lead { color: var(--text-dim); font-size: 1.08rem; max-width: 740px; }

/* ---- Timeline ---- */
.timeline { display: flex; flex-direction: column; gap: 4px; position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline__item { position: relative; padding: 0 0 26px; }
.timeline__dot {
  position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-grad); box-shadow: 0 0 0 4px var(--bg);
}
.timeline__title { margin: 0; font-size: 1.12rem; font-weight: 700; }
.timeline__org { margin: 2px 0 8px; color: var(--accent-2); font-weight: 600; }
.timeline__period { color: var(--text-faint); font-weight: 400; font-size: 0.9rem; }
.timeline__summary { margin: 0; color: var(--text-dim); }

/* ---- Cards grid ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: transform 0.15s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card__icon { font-size: 1.5rem; margin-bottom: 10px; }
.card__title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card__tag { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; }
.card__sub { margin: 0 0 6px; color: var(--text-dim); font-size: 0.9rem; }
.card__note { margin: 8px 0 0; color: var(--text-dim); font-size: 0.92rem; line-height: 1.55; }

/* ---- Skills ---- */
.skills { display: flex; flex-direction: column; gap: 18px; }
.skill__head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.skill__name { font-weight: 600; }
.skill__pct { color: var(--text-faint); font-family: "JetBrains Mono", monospace; font-size: 0.85rem; }
.skill__track { height: 9px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.skill__fill { height: 100%; width: 0; background: var(--accent-grad); border-radius: 999px; transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1); }

/* ---- Core Competencies ---- */
.competencies { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.competency { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.competency__group { margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: var(--accent); }
.competency__items { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.competency__items li { color: var(--text-dim); font-size: 0.94rem; line-height: 1.4; }

/* ---- Home Lab Diagram ---- */
.diagram {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; overflow-x: auto;
}
.diagram__svg { width: 100%; min-width: 480px; height: auto; display: block; }
.diagram__caption { margin: 16px 0 0; color: var(--text-faint); font-size: 0.9rem; }

.zone-box { fill: rgba(56, 189, 248, 0.05); stroke: var(--border); stroke-width: 1.5; stroke-dasharray: 5 5; }
.zone-label { fill: var(--text-faint); font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 1.5px; font-weight: 500; }

.node-box { fill: #1b2734; stroke: #2c3e50; stroke-width: 1.5; }
.node-label { fill: var(--text); font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 600; }
.node-label .node-sub { fill: var(--text-faint); font-weight: 400; font-size: 9.5px; }
.link-line { stroke: var(--accent); stroke-width: 2; opacity: 0.55; }
.node--gateway .node-box { stroke: var(--accent); }
.node--edge .node-box { stroke: var(--accent-2); }
.node--storage .node-box { stroke: var(--accent-2); }
.node--svc .node-box { stroke: var(--accent-2); }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.legend__item { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: 0.84rem; }
.legend__swatch { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--border); background: var(--surface-2); }
.legend--gateway { border-color: var(--accent); }
.legend--node { border-color: var(--border); }
.legend--storage { border-color: var(--accent-2); }
.legend--svc { border-color: var(--accent-2); }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Footer ---- */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 30px clamp(18px, 5vw, 48px);
  border-top: 1px solid var(--border); display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px; color: var(--text-faint); font-size: 0.88rem;
}
.footer__top { color: var(--accent); font-weight: 600; }
.footer__top:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Contact form (native, clean) ---- */
.contact__availability { color: var(--accent-2); font-weight: 600; font-size: 0.96rem; margin: -14px 0 22px; }
.contact__form { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.contact__row { display: flex; gap: 16px; flex-wrap: wrap; }
.contact__row .contact__field { flex: 1 1 240px; min-width: 0; }
.contact__field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.contact__field > span { font-size: 0.82rem; font-weight: 600; color: var(--text-dim); letter-spacing: 0.2px; }
.contact__field input,
.contact__field textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  resize: vertical;
}
.contact__field input::placeholder,
.contact__field textarea::placeholder { color: color-mix(in srgb, var(--text-dim) 65%, transparent); }
.contact__field input:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(46, 230, 166, 0.18);
}
.contact__field input:invalid:not(:placeholder-shown),
.contact__field textarea:invalid:not(:placeholder-shown) { border-color: #e06b5b; }
.contact__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 2px; }
.contact__status { font-size: 0.9rem; min-height: 1.2em; }
.contact__status.is-ok { color: var(--accent); }
.contact__status.is-err { color: #e06b5b; }
.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ---- Footer motto ---- */
.footer__motto {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin: 6px 0 0;
  opacity: 0.85;
}

/* ---- Diagram node note line ---- */
.node-note { fill: var(--text-faint); font-family: "JetBrains Mono", monospace; font-size: 9.5px; }
