/* ============================================================
   jeremymgarcia.com — Design System
   Palette: ink navy / steel / amber accent
   Type: Space Grotesk (display) / Inter (body) / IBM Plex Mono (labels)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:           #0B1320;
  --panel:        #1B2638;
  --panel-light:  #243248;
  --line:         #2C3A52;
  --text:         #EDEFF2;
  --text-secondary: #8A94A6;
  --accent:       #E8A33D;
  --accent-dim:   #C4872A;
  --accent-glow:  rgba(232, 163, 61, 0.12);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius:       4px;
  --radius-md:    8px;
  --nav-h:        64px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a   { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text); }

/* ── Utilities ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono  { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
}
.section-subtitle {
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: 3rem;
}

section { padding: 80px 0; }
section:first-of-type { padding-top: 0; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(11, 19, 32, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -.01em;
}
.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color .2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--text); }
.nav__links a.active { color: var(--accent); }

.nav__resume {
  font-size: .8125rem;
  font-weight: 600;
  padding: 6px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent) !important;
  transition: background .2s, color .2s;
}
.nav__resume:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform .25s, opacity .25s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1.5rem 24px;
    gap: 1.25rem;
  }
  .nav__links.open { display: flex; }
  .nav__hamburger { display: flex; }
  .nav__resume { display: none; }
}

/* ── Status Line ─────────────────────────────────────────── */
.status-line {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  overflow: hidden;
}
.status-line__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--text-secondary);
}
.status-line__item { white-space: nowrap; }
.status-line__item strong { color: var(--accent); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 0;
  animation: fadeUp .6s ease both;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: .75rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.hero__mission {
  max-width: 56ch;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-dim); color: var(--bg); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Metrics strip ──────────────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 4rem;
}
.metric {
  background: var(--panel);
  padding: 1.5rem;
  text-align: center;
}
.metric__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .25rem;
}
.metric__label {
  font-size: .75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color .2s, transform .2s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.card__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.card__body {
  font-size: .9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }

/* ── Timeline ───────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.timeline__item {
  position: relative;
  margin-bottom: 3rem;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: -2.375rem;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}
.timeline__item.current::before { box-shadow: 0 0 0 1px var(--accent), 0 0 10px var(--accent-glow); }
.timeline__date {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  letter-spacing: .07em;
  margin-bottom: .25rem;
}
.timeline__role {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .125rem;
}
.timeline__org {
  font-size: .875rem;
  color: var(--text-secondary);
  margin-bottom: .875rem;
}
.timeline__body {
  font-size: .9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.timeline__body ul { padding-left: 1.25rem; margin-top: .5rem; }
.timeline__body li { margin-bottom: .375rem; }

/* ── Tags / Chips ───────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* ── Cert badges ────────────────────────────────────────── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.cert-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: border-color .2s;
}
.cert-card:hover { border-color: var(--accent); }
.cert-card__abbr {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.cert-card__name {
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
}
.cert-card__issuer {
  font-size: .8rem;
  color: var(--text-secondary);
}
.cert-card__status {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #4ade80;
}

/* ── Skills matrix ──────────────────────────────────────── */
.skill-domain {
  margin-bottom: 2.5rem;
}
.skill-domain__title {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.skill-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-pill {
  background: var(--panel-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 12px;
  font-size: .8125rem;
  color: var(--text-secondary);
  transition: border-color .2s, color .2s;
}
.skill-pill:hover { border-color: var(--accent); color: var(--text); }

/* ── Contact form ───────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: .5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9375rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 140px; }

/* ── Page header (inner pages) ──────────────────────────── */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 64px;
  animation: fadeUp .5s ease both;
}
.page-header .label { margin-bottom: .75rem; }

/* ── Empty state ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}
.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: .4;
}
.empty-state__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.empty-state__body { color: var(--text-secondary); max-width: 40ch; margin: 0 auto 1.5rem; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 80px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy {
  font-size: .8125rem;
  color: var(--text-secondary);
}
.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer__links a {
  font-size: .8125rem;
  color: var(--text-secondary);
}
.footer__links a:hover { color: var(--accent); }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hero { padding: 56px 0 0; }
  .page-header { padding: 48px 0 36px; margin-bottom: 48px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
