@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap");

/* =========================================================
   Tuoyo Fabiyi — Portfolio
   External stylesheet (shared across every page)
   Visual language: Railway / Render / Resend blend —
   near-black canvas, oversized display type, soft gradient
   halos, product-mockup cards, pill nav.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg: #09090b;              /* near-black canvas */
  --bg-2: #0d0d10;            /* subtle banding under hero */
  --surface: #111114;         /* cards, nav */
  --surface-2: #17171c;       /* hover / raised */
  --surface-3: #1f1f26;       /* mockup inner panels */
  --border: #26262d;
  --border-strong: #35353e;
  --text: #f4f4f5;            /* near-white display */
  --text-dim: #a1a1aa;        /* body copy */
  --muted: #71717a;           /* captions */
  --accent: #a78bfa;          /* violet — primary accent */
  --accent-2: #22d3ee;        /* cyan — secondary accent */
  --accent-warm: #fb923c;     /* warm orange — step 3 */
  --accent-hover: #c4b5fd;
  --danger: #f87171;
  --nav-bg: rgba(9, 9, 11, 0.72);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(167, 139, 250, 0.18);
  --container: 1180px;
  --transition: 0.2s ease;
  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
}

/* Light theme — kept functional but intentionally quieter.
   Only colour tokens change; layout stays identical. */
[data-theme="light"] {
  --bg: #fafafa;
  --bg-2: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --surface-3: #ededf0;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #09090b;
  --text-dim: #3f3f46;
  --muted: #71717a;
  --accent: #7c3aed;
  --accent-2: #0891b2;
  --accent-warm: #ea580c;
  --accent-hover: #6d28d9;
  --nav-bg: rgba(250, 250, 250, 0.82);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.12);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text-dim);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: -0.03em;
  font-weight: 500;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  letter-spacing: -0.035em;
  font-weight: 400;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 500;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}


/* ---------- Layout container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
  padding: 1.5rem 0 5rem;
  position: relative;
}

/* ---------- Navigation (shared, Railway/Render-style pill) ---------- */
.site-nav {
  position: sticky;
  top: 1rem;
  z-index: 20;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
  max-width: var(--container);
  width: calc(100% - 0rem);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.55rem 0.55rem 0.55rem 1.1rem;
  background: var(--nav-bg);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-brand {
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.6);
}

.nav-brand span {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 auto 0 0.5rem;
  padding: 0;
}

.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
}

/* Hide the mobile-only Contact link on desktop (CTA pill handles it there) */
.nav-link-mobile-only {
  display: none;
}

/* Theme toggle — subtle circular button on the right of the pill */
.theme-toggle {
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition), border-color var(--transition),
    background var(--transition);
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-3);
}

/* Primary nav CTA (right-side pill, e.g. "Resume") */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-cta:hover {
  color: var(--bg);
  transform: translateY(-1px);
  opacity: 0.9;
}

/* Simple mobile toggle (checkbox hack — no JS needed) */
.nav-toggle,
.nav-toggle-label {
  display: none;
}

@media (max-width: 820px) {
  .site-nav {
    padding: 0 1rem;
  }

  .nav-inner {
    position: relative;
    border-radius: 999px;
    padding: 0.5rem 0.5rem 0.5rem 0.9rem;
    gap: 0.5rem;
  }

  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1;
    user-select: none;
    margin-left: auto;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
  }

  /* On mobile, collapse the right-side chrome into the dropdown menu. */
  .nav-inner > .theme-toggle,
  .nav-inner > .nav-cta {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    margin: 0;
    box-shadow: var(--shadow);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  /* Show the mobile-only Contact link inside the dropdown */
  .nav-link-mobile-only {
    display: block;
  }

  /* "Contact" item inside the dropdown gets emphasized since the
     desktop CTA is hidden on mobile. */
  .nav-links a[data-nav="contact.html"] {
    background: var(--text);
    color: var(--bg);
    text-align: center;
    margin-top: 0.25rem;
  }

  .nav-links a[data-nav="contact.html"]:hover {
    opacity: 0.9;
    color: var(--bg);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition),
    color var(--transition), border-color var(--transition);
  font-size: 0.95rem;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  color: var(--bg);
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--text-dim);
}

/* Arrow glyph used in CTAs (CSS-only, no icon dep) */
.btn .arrow,
.step-link .arrow {
  transition: transform var(--transition);
  display: inline-block;
}

.btn:hover .arrow,
.step-link:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Hero (home) — oversized headline, Resend-style ---------- */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

/* Soft radial glow backdrop — Railway signature */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(167, 139, 250, 0.18),
    rgba(34, 211, 238, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 2rem;
}

.hero .eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.hero h1 {
  max-width: 20ch;
  margin: 0 auto 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--text);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 56ch;
  margin: 0 auto 2rem;
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Logo strip under hero — "trusted by / stack" */
.logo-strip {
  margin-top: 4rem;
  text-align: center;
}

.logo-strip-label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.logo-strip-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.75;
}

.logo-strip-items span {
  transition: color var(--transition), opacity var(--transition);
}

.logo-strip-items span:hover {
  color: var(--text);
  opacity: 1;
}

/* ---------- Numbered steps (Render-style) ---------- */
.steps-section {
  padding: 5rem 0 3rem;
  position: relative;
}

.steps-eyebrow {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.005em;
}

.steps-heading {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 0 4rem;
}

.steps-heading em {
  font-style: italic;
  color: var(--text-dim);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
}

.step:nth-child(2) .step-num {
  color: var(--accent-2);
}

.step:nth-child(3) .step-num {
  color: var(--accent-warm);
}

.step h3 {
  font-size: 1.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.25rem;
}

.step p {
  color: var(--text-dim);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.step-link {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
}

.step-link:hover {
  color: var(--accent);
}

/* ---------- Product mockup cards (Railway-style) ---------- */
.mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.mockup::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 60%,
    rgba(9, 9, 11, 0.4)
  );
  pointer-events: none;
  border-radius: inherit;
}

[data-theme="light"] .mockup::after {
  background: linear-gradient(
    180deg,
    transparent 60%,
    rgba(255, 255, 255, 0.5)
  );
}

.mockup-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
}

.mockup-row + .mockup-row {
  margin-top: 0.25rem;
}

.mockup-row.active {
  background: var(--surface-2);
}

.mockup-row .check {
  margin-left: auto;
  color: #22c55e;
}

.mockup-row .glyph {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  background: var(--surface-3);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

/* Pipeline mockup (step 1 — Data Engineering) */
.mockup-pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.pipeline-node {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.5rem;
  text-align: center;
  font-size: 0.7rem;
  position: relative;
}

.pipeline-node strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.pipeline-node .count {
  color: var(--accent);
  font-size: 0.65rem;
}

.mockup-pipeline + .mockup-footer {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  position: relative;
  z-index: 1;
}

/* Agentic workflow mockup (step 2) */
.mockup-flow {
  position: relative;
  z-index: 1;
  padding: 0.4rem 0.2rem;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
}

.flow-node .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 6px rgba(34, 211, 238, 0.6);
  flex-shrink: 0;
}

.flow-node .meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.65rem;
}

.flow-connector {
  width: 1px;
  height: 10px;
  background: var(--border);
  margin: 0 auto 0.4rem 1rem;
}

/* Code mockup (step 3 — Software Engineering) */
.mockup-code {
  position: relative;
  z-index: 1;
  padding: 0.4rem 0.2rem;
  line-height: 1.6;
}

.mockup-code .line {
  display: block;
  padding: 0 0.5rem;
  color: var(--text-dim);
  white-space: pre;
}

.mockup-code .ln {
  display: inline-block;
  width: 1.5rem;
  color: var(--muted);
  opacity: 0.6;
  user-select: none;
}

.mockup-code .kw { color: var(--accent); }
.mockup-code .str { color: #86efac; }
.mockup-code .fn { color: var(--accent-2); }
.mockup-code .cm { color: var(--muted); font-style: italic; }

[data-theme="light"] .mockup-code .str { color: #15803d; }

/* ---------- Divider used between sections ---------- */
.section-rule {
  height: 1px;
  background: var(--border);
  margin: 4rem 0;
  opacity: 0.5;
}

/* ---------- Page header block ---------- */
.page-header {
  text-align: center;
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.page-header p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- About page: two-column bio + skills ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
}

/* Portrait at the top of the biography column — centered */
.about-photo {
  margin: 0 auto 2rem;
  width: 180px;
  height: 180px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 2px;
  box-shadow: var(--shadow-glow);
  display: block;
}

.about-photo img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  background: var(--surface);
  display: block;
}

@media (max-width: 900px) {
  .about-photo {
    width: 140px;
    height: 140px;
  }
}

.about-grid h2 {
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
}

.about-grid ul,
.about-grid ol {
  padding-left: 1.25rem;
  color: var(--muted);
}

.about-grid li {
  margin-bottom: 0.4rem;
}

.about-grid li strong {
  color: var(--text);
}

/* CSS multi-column list (satisfies "use of CSS columns") */
.skills-list {
  column-count: 2;
  column-gap: 1.5rem;
  list-style: square;
  margin-bottom: 1.25rem;
}

.skills-category {
  color: var(--text);
  font-size: 1rem;
  margin: 1rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Resume page ---------- */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  align-items: start;
}

.resume-summary {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.resume-summary h3 {
  color: var(--accent);
}

.resume-summary ul {
  padding-left: 1.1rem;
  color: var(--muted);
}

.resume-embed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 720px;
}

.resume-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.resume-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ---------- Projects grid ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.project-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 2.5rem;
  font-weight: 700;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Logo-style thumbs: pad the mark and let the brand background show through */
.project-thumb--logo img {
  object-fit: contain;
  padding: 1.25rem;
}

.project-thumb--hochela { background: #164a9a; }
.project-thumb--virden  { background: #0f172a; }
.project-thumb--js47    { background: #1f6b2a; }
.project-thumb--research {
  background: linear-gradient(135deg, #0f172a, #14b8a6);
  color: #f8fafc;
  font-size: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.project-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.project-body h3 {
  margin: 0;
  color: var(--text);
}

.project-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-list li {
  background: var(--surface-2);
  color: var(--accent);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}

/* ---------- Blog listing / post template ---------- */
.blog-featured {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: center;
}

.blog-featured .thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), #6366f1);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card .thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #334155, #1e293b);
}

.blog-card-body {
  padding: 1.25rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.post-meta .dot {
  margin: 0 0.4rem;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
}

.contact-form {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-info h3 {
  color: var(--accent);
}

.socials {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  gap: 0.75rem;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.socials a:hover {
  background: var(--accent);
  color: #0b1120;
  transform: translateY(-2px);
}

.socials svg {
  width: 20px;
  height: 20px;
}

/* ---------- Footer (shared) — minimal, Resend-style ---------- */
.site-footer {
  background: transparent;
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.footer-brand h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.footer-brand p {
  color: var(--muted);
  margin: 0;
  max-width: 36ch;
  font-size: 0.9rem;
}

.footer-grid h4 {
  color: var(--text);
  margin: 0 0 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 720px) {
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ---------- Responsive breakpoints ---------- */
@media (max-width: 900px) {
  .about-grid,
  .resume-grid,
  .contact-grid,
  .blog-featured {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .steps-section {
    padding: 3rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .socials {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .skills-list {
    column-count: 1;
  }

  .resume-embed {
    height: 500px;
  }
}

/* ---------- Phase 3: dynamic post cards ---------- */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.post-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.post-title-row h3 {
  margin: 0;
  color: var(--text);
}

.badge-latest {
  display: inline-block;
  background: var(--accent);
  color: #0b1120;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.post-full {
  color: var(--muted);
  font-size: 0.95rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
  margin: 0.75rem 0;
}

.read-more {
  align-self: flex-start;
  background: transparent;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: color var(--transition);
}

.read-more:hover {
  color: var(--accent-hover);
}

.post-error {
  color: var(--danger);
  text-align: center;
}

/* ---------- Phase 3: contact form validation ---------- */
.error-msg {
  display: block;
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  min-height: 1em;
}

.contact-form input.field-invalid,
.contact-form textarea.field-invalid {
  border-color: var(--danger);
}

.form-success {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.form-success h3 {
  color: var(--accent);
  margin-top: 0;
}

.form-success p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Phase 3: filter bar / search ---------- */
.filter-bar {
  margin-bottom: 1.5rem;
}

.filter-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), background var(--transition);
}

.filter-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}

.filter-input::placeholder {
  color: var(--muted);
}

.no-results {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
  font-style: italic;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
