/* ============================================================
   Noah Mathew, portfolio
   dark, quiet, one accent. mono for labels & numbers only.
   ============================================================ */

:root {
  --bg: #0a0e14;
  --surface: #10151d;
  --surface-2: #151b25;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8ecf1;
  --muted: #94a3b3;
  --accent: #2dd4bf;        /* text/UI accent */
  --accent-deep: #0d9488;   /* chart marks, validated vs dark surface */
  --accent-dim: rgba(45, 212, 191, 0.12);
  --red: #e5484d;           /* RBT node red */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

sup { font-size: 0.55em; }

/* ============ nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo { font-size: 0.95rem; color: var(--text); font-weight: 500; }
.nav-logo:hover { text-decoration: none; color: var(--accent); }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 5px 14px; border-radius: 99px;
}
.nav-cta:hover { background: var(--accent-dim); }

/* ============ hero ============ */
.hero { padding: 130px 0 110px; }
.eyebrow {
  color: var(--accent); font-size: 0.82rem; letter-spacing: 0.06em;
  text-transform: lowercase; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(3rem, 8vw, 5.2rem); font-weight: 800; margin-bottom: 24px; }
.hero-sub { max-width: 620px; color: var(--muted); font-size: 1.15rem; margin-bottom: 34px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 42px; }
.chip {
  font-size: 0.8rem; color: var(--muted);
  border: 1px solid var(--border-strong); border-radius: 99px;
  padding: 7px 15px; background: var(--surface);
}
.chip-num { color: var(--accent); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; font-weight: 600; font-size: 0.95rem;
  padding: 11px 22px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #04211c; }
.btn-primary:hover { background: #46e0cd; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 6px 13px; font-size: 0.8rem; border-radius: 6px; }

/* ============ sections ============ */
.section { padding: 110px 0; border-top: 1px solid var(--border); }
.section-eyebrow {
  font-size: 0.82rem; color: var(--muted); letter-spacing: 0.08em;
  text-transform: lowercase; margin-bottom: 16px;
}
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 48px; }

/* ============ cards ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--border-strong); }
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card p + p { margin-top: 12px; }
.card-tag {
  font-size: 0.75rem; color: var(--accent); letter-spacing: 0.05em;
  margin-bottom: 14px; text-transform: lowercase;
}
.card-link { display: inline-block; margin-top: 18px; font-size: 0.82rem; overflow-wrap: anywhere; word-break: break-word; }
.card-compact { padding: 24px; }
.card-compact h3 { font-size: 1.05rem; }
.card-compact p { font-size: 0.9rem; }

/* experience / leadership logos */
.exp-logo {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--surface);
}
.exp-head { display: flex; align-items: center; gap: 15px; }
.exp-head .exp-logo { width: 52px; height: 52px; }
.card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.card-head .card-tag { margin-bottom: 3px; }
.card-head h3 { margin-bottom: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card { padding: 40px; margin-bottom: 20px; }

/* ============ NCL feature ============ */
.feature-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; margin-bottom: 34px; flex-wrap: wrap;
}
.feature-head h3 { font-size: 1.4rem; margin-bottom: 6px; }
.feature-head .muted { font-size: 0.92rem; }
.verify {
  font-size: 0.8rem; white-space: nowrap;
  border: 1px solid var(--border-strong); border-radius: 99px; padding: 7px 15px;
  color: var(--accent);
}
.verify:hover { border-color: var(--accent); text-decoration: none; background: var(--accent-dim); }

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-bottom: 40px;
}
.stat {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-value { font-size: 2.1rem; font-weight: 600; color: var(--text); line-height: 1; }
.stat-unit { font-size: 1rem; color: var(--accent); margin-left: 2px; }
.stat-label { font-size: 0.82rem; color: var(--muted); }
.stat-ctx { opacity: 0.65; font-size: 0.75rem; }

/* chart: single-series horizontal bars, direct-labeled */
.chart-title { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 18px; }
.chart-ctx { opacity: 0.65; letter-spacing: 0; }
.bar-row {
  display: grid; grid-template-columns: 220px 1fr 56px 52px;
  align-items: center; gap: 14px; padding: 5px 0;
}
.bar-label { font-size: 0.85rem; color: var(--muted); text-align: right; }
.bar-track { display: block; background: var(--surface-2); border-radius: 4px; height: 14px; position: relative; overflow: hidden; }
.bar-fill {
  display: block; height: 100%; background: var(--accent);
  border-radius: 0 4px 4px 0;
  width: 0; transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-row:hover .bar-fill { background: #5eead4; }
.bar-value { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text); }
.bar-rank { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); text-align: right; }
.bar-row.perfect .bar-value { color: var(--accent); }
.bar-row.perfect .bar-rank { color: var(--text); }

/* ============ projects ============ */
.project-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.project-split-reverse .project-info { order: 2; }
.project-info h3 { font-size: 1.4rem; }
.project-info strong { color: var(--text); }

/* terminal */
.terminal {
  background: #0c1017; border: 1px solid var(--border-strong);
  border-radius: 10px; overflow: hidden; min-width: 0;
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.terminal-bar p { font-size: 0.7rem; color: var(--muted); margin-left: 8px; }
.terminal-body {
  padding: 18px; font-size: 0.78rem; line-height: 1.7; color: #b9c4d0;
  height: 300px; overflow: hidden; white-space: pre-wrap; word-break: break-all;
}
.terminal-body .t-prompt { color: var(--accent); }
.terminal-body .t-dim { color: #5c6b7a; }

/* ============ credentials & skills ============ */
.cred-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 48px; }
.cred-card { display: flex; align-items: center; gap: 22px; }
.cred-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.cred-card p { font-size: 0.88rem; }
.cred-logo { width: 92px; height: auto; flex-shrink: 0; }
.cred-logo-baylor { width: 54px; }

.skills-grid h4 {
  font-size: 0.8rem; color: var(--accent); font-weight: 500;
  letter-spacing: 0.07em; margin-bottom: 14px; text-transform: lowercase;
}
.skill-list { list-style: none; }
.skill-list li {
  font-size: 0.85rem; color: var(--muted); padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

/* ============ contact & footer ============ */
.section-contact { padding-bottom: 140px; }
.section-contact h2 { margin-bottom: 20px; }
.section-contact .hero-sub { margin-bottom: 36px; }

.footer { border-top: 1px solid var(--border); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-inner p { font-size: 0.75rem; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--accent); }
.made-with { width: 100%; text-align: center; margin-top: 16px; }
.made-with a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); transition: color 0.15s ease, border-color 0.15s ease;
}
.made-with a:hover { color: var(--text); border-color: #D97757; text-decoration: none; }
.made-with svg { flex-shrink: 0; }

/* ============ responsive ============ */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .project-split { grid-template-columns: 1fr; }
  .project-split-reverse .project-info { order: 0; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .cred-row { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 130px 1fr 44px 44px; }
  .bar-label { font-size: 0.75rem; }
  .bar-value, .bar-rank { font-size: 0.72rem; }
}
@media (max-width: 600px) {
  .nav-links { gap: 12px; }
  .nav-links li:nth-child(1),
  .nav-links li:nth-child(2),
  .nav-links li:nth-child(3),
  .nav-links li:nth-child(4) { display: none; }
  .nav-logo { font-size: 0.85rem; }
  .hero { padding: 90px 0 70px; }
  .section { padding: 80px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .feature-card { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
