/* ════════════════════════════════════════════════════════════
   Rajeev Srivastava — AI Search Architect & Agentic AI
   Premium Dark Tech Design System
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Core palette — deep space dark with electric accents */
  --bg-primary: #06080f;
  --bg-secondary: #0a0e1a;
  --bg-tertiary: #0f1425;
  --bg-card: rgba(15, 20, 40, 0.65);
  --bg-card-hover: rgba(20, 28, 55, 0.75);
  --bg-glass: rgba(10, 14, 26, 0.72);

  /* Accent colors — electric cyan / violet / emerald */
  --accent-primary: #00d4ff;
  --accent-secondary: #7c3aed;
  --accent-tertiary: #10b981;
  --accent-warm: #f59e0b;
  --accent-rose: #f43f5e;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #f43f5e 100%);
  --grad-btn: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --grad-card-border: linear-gradient(135deg, rgba(0,212,255,.3), rgba(124,58,237,.2), rgba(16,185,129,.15));

  /* Text */
  --text-primary: #e8edf5;
  --text-secondary: #8b9cc0;
  --text-muted: #5a6a8a;
  --text-accent: #00d4ff;

  /* Borders & shadows */
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(0,212,255,0.15);
  --glow-cyan: 0 0 30px rgba(0,212,255,0.12);
  --glow-violet: 0 0 30px rgba(124,58,237,0.12);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,212,255,0.08);

  /* Layout */
  --max-w: 1200px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
code { font-family: 'JetBrains Mono', monospace; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip:focus { left: 16px; top: 16px; width: auto; height: auto; z-index: 2000; background: var(--bg-card); padding: 12px 16px; border-radius: 12px; border: 1px solid var(--accent-primary); }

/* ─── Header / Nav ─────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(6, 8, 15, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav {
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}

.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad-btn);
  box-shadow: var(--glow-cyan);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: ''; position: absolute; inset: 2px; border-radius: 10px;
  background: var(--bg-primary);
  opacity: 0.4;
}

.brand strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: 0.3px; }
.brand span { font-size: 12px; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; }

.nav-links {
  display: flex; gap: 4px; align-items: center;
}

.nav-links a {
  padding: 8px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease-out);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.06);
}

.nav-links a.active {
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.08);
}

.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
  position: relative; overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: var(--glow-cyan);
  background: var(--bg-card-hover);
}

.btn.primary {
  border: none;
  background: var(--grad-btn);
  color: #030712;
  font-weight: 800;
}

.btn.primary:hover {
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3), 0 0 60px rgba(124, 58, 237, 0.15);
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--accent-primary);
}

.btn.ghost:hover {
  background: rgba(0, 212, 255, 0.08);
}

.icon-btn {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: all 0.2s var(--ease-out);
}

.icon-btn:hover { background: var(--bg-card-hover); color: var(--accent-primary); border-color: var(--border-accent); }

/* ─── Mobile menu toggle ──────────────────────────────── */
.mobile-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

/* ─── Hero Section ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

#ai-bg {
  position: absolute; inset: 0; z-index: 0;
}

/* Ambient gradient orbs */
.hero::before {
  content: ''; position: absolute; z-index: 1; pointer-events: none;
  width: 800px; height: 800px;
  top: -200px; left: -100px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  filter: blur(60px);
  animation: float-orb 20s ease-in-out infinite;
}

.hero::after {
  content: ''; position: absolute; z-index: 1; pointer-events: none;
  width: 600px; height: 600px;
  bottom: -100px; right: -50px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  animation: float-orb 25s ease-in-out infinite reverse;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-inner { position: relative; z-index: 2; }

/* Status indicator */
.status-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-accent);
  background: rgba(0, 212, 255, 0.04);
  font-size: 13px; font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-tertiary);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(16, 185, 129, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 20px rgba(16, 185, 129, 0.8); }
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  max-width: 900px;
}

.grad-text {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 20px;
  max-width: 680px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 12px;
}

/* Tech pills */
.tech-stack {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 10px;
}

.tech-pill {
  padding: 8px 14px; border-radius: 999px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.12);
  font-size: 12px; font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  transition: all 0.25s var(--ease-out);
}

.tech-pill:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.25);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

/* ─── Section Styles ───────────────────────────────────── */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--grad-btn);
  border-radius: 2px;
}

.section h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.section .sub {
  margin-top: 12px;
  color: var(--text-secondary);
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
}

/* ─── Grid Layout ──────────────────────────────────────── */
.grid {
  display: grid; gap: 20px;
}

.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ─── Cards ────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative; overflow: hidden;
  transition: all 0.35s var(--ease-out);
  backdrop-filter: blur(10px);
}

/* Subtle gradient border effect on hover */
.card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--grad-card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  position: relative;
}

.card-icon.cyan { background: rgba(0, 212, 255, 0.08); border: 1px solid rgba(0, 212, 255, 0.15); }
.card-icon.violet { background: rgba(124, 58, 237, 0.08); border: 1px solid rgba(124, 58, 237, 0.15); }
.card-icon.emerald { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.15); }
.card-icon.amber { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.15); }
.card-icon.rose { background: rgba(244, 63, 94, 0.08); border: 1px solid rgba(244, 63, 94, 0.15); }

.card h3 {
  font-size: 18px; font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.card ul {
  margin-top: 14px; padding-left: 0;
}

.card li {
  position: relative;
  padding-left: 20px;
  margin: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.card li::before {
  content: ''; position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--accent-primary);
  opacity: 0.6;
}

/* ─── Project Cards ────────────────────────────────────── */
.project {
  display: flex; flex-direction: column; gap: 12px;
}

.project-meta {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-weight: 800;
}

.project .arch {
  margin-top: 8px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.08);
  background: rgba(0, 212, 255, 0.02);
}

.project .arch strong {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.project .arch strong::before {
  content: '⚡'; font-size: 12px;
}

.project .arch ul { margin: 0; padding-left: 0; }
.project .arch li { font-size: 13px; margin: 6px 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.tag {
  font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  letter-spacing: 0.3px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.12);
  color: var(--accent-primary);
}

/* ─── LinkedIn Articles Section ────────────────────────── */
.article-card {
  display: flex; flex-direction: column; gap: 16px;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.35s var(--ease-out);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--grad-card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover);
}

.article-card:hover::before { opacity: 1; }

.article-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent-primary);
}

.article-badge svg {
  width: 16px; height: 16px;
  fill: currentColor;
}

.article-card h3 {
  font-size: 18px; font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.3;
  color: var(--text-primary);
}

.article-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.article-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  color: var(--accent-primary);
  transition: gap 0.2s var(--ease-out);
}

.article-card:hover .article-link { gap: 10px; }

/* ─── Insights preview cards ──────────────────────────── */
.insight-card {
  text-decoration: none;
  display: flex; flex-direction: column; gap: 12px;
}

.insight-card .card { transition: all 0.35s var(--ease-out); cursor: pointer; }
.insight-card:hover .card { transform: translateY(-4px); border-color: var(--border-accent); box-shadow: var(--shadow-hover); }

/* ─── Certifications Section ──────────────────────────── */
.cert-grid {
  display: flex; flex-wrap: wrap; gap: 12px;
}

.cert-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.25s var(--ease-out);
  backdrop-filter: blur(10px);
}

.cert-badge:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.cert-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.cert-badge .cert-name {
  font-size: 14px; font-weight: 700;
  color: var(--text-primary);
}

.cert-badge .cert-issuer {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ─── Optimize Callout ─────────────────────────────────── */
.optimize-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  margin-top: 32px;
}

.optimize-list { padding: 0; }

.optimize-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.optimize-item:last-child { border-bottom: none; }

.optimize-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.optimize-item strong {
  display: block;
  font-size: 15px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.optimize-item span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* CTA callout */
.cta-callout {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(124, 58, 237, 0.06));
  border: 1px solid rgba(0, 212, 255, 0.12);
  display: flex; flex-direction: column; gap: 12px;
  justify-content: center;
}

.cta-callout h3 {
  font-size: 20px; font-weight: 800;
  letter-spacing: -0.3px;
}

.cta-callout p {
  color: var(--text-secondary);
  font-size: 14px;
}

.cta-callout .hero-actions { margin-top: 16px; }

/* ─── Contact Section ──────────────────────────────────── */
.contact-block {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-block h2 {
  margin-bottom: 16px;
}

.contact-block p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-actions {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 14px;
}

/* ─── Footer ───────────────────────────────────────────── */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}

.footer-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links {
  display: flex; gap: 20px;
}

.footer-links a {
  font-size: 13px; font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent-primary); }

.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ─── Article/Post page styles ─────────────────────────── */
.article-page { padding-top: 110px; }

.breadcrumb {
  margin-top: 10px;
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
}

.breadcrumb a { color: var(--text-secondary); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-primary); }

.post {
  margin-top: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.post h1 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.post .post-meta {
  margin-top: 12px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
}

.post h2 {
  margin-top: 28px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.post p {
  margin-top: 12px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.post ul, .post ol {
  margin-top: 12px;
  padding-left: 0;
}

.post li {
  position: relative;
  padding-left: 20px;
  margin: 8px 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.post li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--accent-primary);
  opacity: 0.6;
}

.small { font-size: 13px; color: var(--text-muted); }

/* ─── section divider glow ─────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.1), transparent);
  margin: 0;
  border: none;
}

/* ─── Scroll animations ───────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for children */
.fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.32s; }
.fade-in:nth-child(6) { transition-delay: 0.40s; }

/* ─── Typing cursor animation ─────────────────────────── */
.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--accent-primary);
  font-weight: 400;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ─── Terminal-style code block ────────────────────────── */
.terminal-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  overflow-x: auto;
}

.terminal-block .prompt { color: var(--accent-tertiary); font-weight: 700; }
.terminal-block .cmd { color: var(--accent-primary); }
.terminal-block .flag { color: var(--accent-secondary); }
.terminal-block .output { color: var(--text-muted); }

/* ─── Meta label (reused) ──────────────────────────────── */
.meta {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-weight: 800;
}

/* ─── Resource Cards (AI Learning) ─────────────────────── */
.resource-card {
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.35s var(--ease-out);
  backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}

.resource-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--grad-card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover);
}

.resource-card:hover::before { opacity: 1; }

.resource-provider {
  display: flex; align-items: center; gap: 12px;
}

.resource-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid;
  transition: transform 0.25s var(--ease-spring);
}

.resource-card:hover .resource-logo {
  transform: scale(1.08);
}

.resource-name {
  font-size: 16px; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.resource-url {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.2px;
}

.resource-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.resource-card .article-link {
  margin-top: auto;
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .optimize-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .grid.cols-3,
  .grid.cols-2 { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .mobile-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(6, 8, 15, 0.96);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 8px;
    z-index: 999;
  }

  .nav-links.open a {
    padding: 14px 18px;
    font-size: 16px;
    border-radius: 12px;
    width: 100%;
  }

  .hero h1 { font-size: clamp(30px, 7vw, 48px); }
  .section { padding: 64px 0; }

  .cert-grid { gap: 10px; }
  .cert-badge { padding: 12px 14px; }
  .cert-badge .cert-name { font-size: 13px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { min-height: auto; padding: 100px 0 60px; }
  .tech-stack { gap: 8px; }
  .card { padding: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ─── Light theme override ─────────────────────────────── */
:root[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.72);

  --accent-primary: #0284c7;
  --accent-secondary: #6d28d9;
  --accent-tertiary: #059669;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-accent: #0284c7;

  --border: rgba(15, 23, 42, 0.08);
  --border-accent: rgba(2, 132, 199, 0.2);
  --glow-cyan: 0 0 30px rgba(2, 132, 199, 0.08);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .btn.primary { color: #fff; }
:root[data-theme="light"] .hero::before { background: radial-gradient(circle, rgba(2, 132, 199, 0.06) 0%, transparent 70%); }
:root[data-theme="light"] .hero::after { background: radial-gradient(circle, rgba(109, 40, 217, 0.05) 0%, transparent 70%); }
