/* ═══════════════════════════════════════════
   jasonlazerus.com — Design Tokens
   ═══════════════════════════════════════════ */
:root {
  --bg-primary: #0B0F1A;
  --bg-surface: #111827;
  --bg-elevated: #1E293B;
  --bg-card: #1A2332;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent: #3B82F6;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-hover: #60A5FA;
  --gold: #D4A843;
  --gold-dim: rgba(212, 168, 67, 0.15);
  --teal: #14B8A6;
  --teal-dim: rgba(20, 184, 166, 0.12);
  --border: rgba(148, 163, 184, 0.08);
  --border-hover: rgba(148, 163, 184, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

/* ═══════════ Reset ═══════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }

/* ═══════════ Nav ═══════════ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 48px; height: 64px; display: flex; align-items: center; justify-content: space-between; background: rgba(11, 15, 26, 0.85); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid var(--border); }
.nav-brand { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: var(--text-primary); text-decoration: none; }
.nav-brand span { color: var(--text-muted); font-weight: 400; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a[aria-current="page"]::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--accent); border-radius: 1px; }

/* ═══════════ Hero ═══════════ */
.hero { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 120px 48px 60px; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 800px 600px at 30% 20%, rgba(59,130,246,0.06), transparent), radial-gradient(ellipse 600px 400px at 70% 70%, rgba(20,184,166,0.04), transparent); pointer-events: none; }
.hero-content { max-width: 900px; text-align: center; position: relative; z-index: 1; }
.hero-label { font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; font-family: var(--font-mono); }
.hero-title { font-size: clamp(48px, 6vw, 80px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 24px; background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 18px; color: var(--text-secondary); max-width: 620px; margin: 0 auto 16px; line-height: 1.7; }
.hero-meta { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; font-size: 14px; color: var(--text-secondary); }
.hero-meta .dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); vertical-align: middle; margin: 0 8px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; }

/* ═══════════ Buttons ═══════════ */
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; font-family: var(--font-sans); border: none; border-radius: var(--radius-md); cursor: pointer; text-decoration: none; transition: all 0.2s; }
.btn-primary { padding: 14px 28px; background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 30px rgba(59,130,246,0.3); }
.btn-ghost { padding: 14px 28px; background: transparent; color: var(--text-secondary); border: 1px solid var(--border-hover); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--text-muted); background: rgba(255,255,255,0.03); }

/* ═══════════ Sections ═══════════ */
.section { padding: 80px 48px; max-width: 1280px; margin: 0 auto; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; font-family: var(--font-mono); }
.section-title { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.section-desc { font-size: 16px; color: var(--text-secondary); max-width: 600px; margin-bottom: 48px; }
.divider { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.divider hr { border: none; border-top: 1px solid var(--border); }

/* ═══════════ WeaveHub Banner ═══════════ */
.wh-banner { background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated)); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 48px; margin-bottom: 40px; }
.wh-banner h3 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.wh-role { font-size: 14px; color: var(--gold); font-weight: 500; margin-bottom: 12px; }
.wh-banner p { font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; max-width: 640px; }
.wh-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; }
.wh-link:hover { color: var(--accent-hover); }

/* ═══════════ Filter Pills ═══════════ */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-pill { padding: 8px 16px; font-size: 13px; font-weight: 500; font-family: var(--font-sans); border: 1px solid var(--border); background: transparent; color: var(--text-muted); border-radius: 100px; cursor: pointer; transition: all 0.2s; }
.filter-pill:hover { color: var(--text-secondary); border-color: var(--border-hover); }
.filter-pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ═══════════ Project Cards ═══════════ */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--teal)); opacity: 0; transition: opacity 0.3s; }
.card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.card:hover::before { opacity: 1; }
.card[data-category="pocket"]::before { background: linear-gradient(90deg, var(--gold), #E4CC7A); }
.card[data-category="pocket"] { border-color: rgba(212,168,67,0.1); }
.card[data-category="pocket"]:hover { border-color: rgba(212,168,67,0.25); }
.card.hidden { display: none; }

.card-icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tag { padding: 4px 10px; font-size: 11px; font-weight: 500; font-family: var(--font-mono); border-radius: 4px; background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border); }
.card-links { display: flex; gap: 12px; }
.card-links a { font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; transition: color 0.2s; }
.card-links a:hover { color: var(--accent-hover); }

/* ═══════════ About ═══════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-text p { font-size: 16px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; }
.stat-num { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.stat-num.blue { color: var(--accent); }
.stat-num.gold { color: var(--gold); }
.stat-num.teal { color: var(--teal); }
.stat-num.purple { color: #8B5CF6; }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.about-links { display: flex; gap: 12px; margin-top: 24px; }
.about-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; font-size: 13px; font-weight: 500; color: var(--text-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; transition: all 0.2s; }
.about-link:hover { color: var(--text-primary); border-color: var(--border-hover); background: rgba(255,255,255,0.02); }

/* ═══════════ Resume Page ═══════════ */
.resume-page { padding: 120px 48px 80px; max-width: 860px; margin: 0 auto; }
.resume-header { margin-bottom: 48px; }
.resume-summary { font-size: 16px; color: var(--text-secondary); line-height: 1.8; border-left: 3px solid var(--accent); padding-left: 20px; }
.resume-doc { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px 56px; }
.resume-doc h2 { font-size: 20px; font-weight: 700; margin-top: 40px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.resume-doc h2:first-child { margin-top: 0; }
.job { margin-bottom: 28px; }
.job-title { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.job-meta { font-size: 13px; color: var(--accent); font-family: var(--font-mono); font-weight: 500; margin-bottom: 8px; }
.job-section-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 12px; margin-bottom: 6px; }
.resume-doc ul { padding-left: 20px; margin-bottom: 12px; }
.resume-doc li { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; line-height: 1.6; }
.resume-doc p { font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.7; }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cert-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg-elevated); border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); }
.cert-item a { color: var(--accent); text-decoration: none; }
.cert-item a:hover { color: var(--accent-hover); }
.cert-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.skill-pill { padding: 5px 12px; font-size: 12px; font-weight: 500; font-family: var(--font-mono); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 100px; color: var(--text-secondary); }
.skill-pill a { color: var(--accent); text-decoration: none; }
.project-entry { margin-bottom: 20px; }
.project-entry h3 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.project-year { font-size: 12px; color: var(--accent); font-family: var(--font-mono); font-weight: 500; }
.awards-list { list-style: none; padding: 0; }
.awards-list li { font-size: 14px; color: var(--text-secondary); padding: 6px 0; border-bottom: 1px solid var(--border); }
.awards-list li:last-child { border-bottom: none; }
.awards-list a { color: var(--accent); text-decoration: none; }
.resume-download { display: flex; justify-content: flex-end; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ═══════════ Footer ═══════════ */
.footer { border-top: 1px solid var(--border); padding: 48px; text-align: center; }
.footer p { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }

/* ═══════════ Responsive ═══════════ */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .hero { padding: 100px 20px 60px; }
  .section { padding: 60px 20px; }
  .hero-title { font-size: 36px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .resume-page { padding: 100px 20px 60px; }
  .resume-doc { padding: 32px 24px; }
  .cert-grid { grid-template-columns: 1fr; }
  .divider { padding: 0 20px; }
  .wh-banner { padding: 32px 24px; }
}

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