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

/* ── Variables ───────────────────────────────────────────── */
:root {
  --bg:        #050505;
  --bg2:       #0b0f12;
  --bg3:       #111111;
  --glass:     rgba(255,255,255,0.03);
  --glass2:    rgba(255,255,255,0.06);
  --border:    rgba(255,255,255,0.06);
  --border2:   rgba(255,255,255,0.12);
  --accent:    #00ffb2;
  --accent2:   #00e5a8;
  --blue:      #3b82f6;
  --purple:    #8b5cf6;
  --text:      #ffffff;
  --text2:     #a1a1aa;
  --text3:     #52525b;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --sans:      'Space Grotesk', system-ui, sans-serif;
  --body:      'Inter', system-ui, sans-serif;
  --radius:    12px;
  --radius2:   8px;
}

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

/* ── Particle canvas ─────────────────────────────────────── */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .7;
}

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

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent2); }

/* ── Background effects ──────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* radial glow behind hero */
.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,178,.07) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  pointer-events: none;
}

/* ── Nav ─────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;  /* well above canvas (z-index: 0) */
  padding: 1rem 0;
  background: rgba(5,5,5,.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: .02em;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text2);
  font-size: 14px;
  font-family: var(--body);
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; gap: .6rem; align-items: center; }

.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: .5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s, transform .2s !important;
}

.nav-cta-ghost {
  background: transparent;
  color: var(--text2) !important;
  padding: .5rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid var(--border2);
  transition: border-color .2s, color .2s !important;
}

.nav-cta-ghost:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.nav-cta:hover {
  background: var(--accent2) !important;
  transform: translateY(-1px);
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

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

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}

.hero-heading {
  font-family: var(--sans);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--text);
  letter-spacing: -.02em;
}

.hero-heading .accent { color: var(--accent); }
.hero-heading .bracket { color: var(--text3); }

.hero-sub {
  font-size: 20px;
  color: var(--text2);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 520px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  padding: .85rem 2rem;
  border-radius: var(--radius2);
  font-weight: 600;
  font-size: 15px;
  transition: background .2s, transform .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.btn-primary:hover {
  background: var(--accent2);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,255,178,.25);
}

.btn-ghost {
  background: var(--glass2);
  color: var(--text);
  padding: .85rem 2rem;
  border-radius: var(--radius2);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--border2);
  transition: background .2s, border-color .2s, transform .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: var(--text);
  transform: translateY(-2px);
}

.hero-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 14px;
  transition: all .2s;
}

.social-link:hover {
  background: rgba(0,255,178,.08);
  border-color: rgba(0,255,178,.3);
  color: var(--accent);
}

/* ── Terminal card (hero right) ──────────────────────────── */
.term-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(0,255,178,.05);
}

.term-bar {
  background: var(--bg3);
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid var(--border);
}

.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #febc2e; }
.term-dot.g { background: #28c840; }
.term-bar-title { font-family: var(--mono); font-size: 12px; color: var(--text3); margin-left: .5rem; }

.term-body { padding: 1.5rem; font-family: var(--mono); font-size: 13px; line-height: 2; }

.t-prompt { color: var(--accent); }
.t-cmd    { color: var(--text); }
.t-out    { color: var(--text2); padding-left: 1rem; display: block; }
.t-blank  { display: block; height: .5rem; }

.cursor-blink {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  box-shadow: 0 0 8px var(--accent);
}

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

/* ── Section headers ─────────────────────────────────────── */
.section-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: .85rem;
  line-height: 1.1;
}

.section-sub {
  font-size: 18px;
  color: var(--text2);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.65;
}

/* ── Glassmorphism cards ─────────────────────────────────── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,255,178,.06), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;   /* never block clicks */
  z-index: 0;
}

/* card content sits above the ::before glow layer */
.glass-card > * { position: relative; z-index: 1; }

.glass-card:hover {
  border-color: rgba(0,255,178,.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(0,255,178,.1), 0 0 40px rgba(0,255,178,.05);
}

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

/* ── Project cards ───────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.proj-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.proj-icon {
  width: 40px; height: 40px;
  background: rgba(0,255,178,.08);
  border: 1px solid rgba(0,255,178,.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.proj-badge {
  font-family: var(--mono);
  font-size: 11px;
  padding: .2rem .6rem;
  border-radius: 20px;
  border: 1px solid;
}

.proj-badge.shipped { color: var(--accent); border-color: rgba(0,255,178,.3); background: rgba(0,255,178,.06); }
.proj-badge.wip     { color: #e3b341; border-color: rgba(227,179,65,.3); background: rgba(227,179,65,.06); }
.proj-badge.planned { color: var(--text3); border-color: rgba(255,255,255,.1); }

.proj-name {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}

.proj-result {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  background: rgba(0,255,178,.06);
  border: 1px solid rgba(0,255,178,.15);
  border-radius: 4px;
  padding: .3rem .75rem;
  margin-bottom: .75rem;
  display: inline-block;
}

.proj-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.25rem;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 4px;
  padding: .15rem .55rem;
}

.proj-links {
  display: flex;
  gap: 1rem;
}

.proj-links a {
  font-size: 13px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: color .2s;
}

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

/* ── Skills section ──────────────────────────────────────── */
.skills-section { background: var(--bg2); }

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

.skill-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 1.25rem;
  transition: border-color .2s;
}

.skill-card:hover { border-color: rgba(0,255,178,.2); }

.skill-category {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.chip {
  font-size: 12px;
  font-weight: 500;
  padding: .3rem .7rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  color: var(--text2);
  transition: all .2s;
}

.chip:hover {
  background: rgba(0,255,178,.06);
  border-color: rgba(0,255,178,.2);
  color: var(--accent);
}

/* ── About section ───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 1.25rem;
  text-align: center;
}

.stat-val {
  font-family: var(--sans);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: .4rem;
}

.stat-lbl {
  font-size: 12px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.cert-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; }

.cert-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  font-size: 13px;
  transition: border-color .2s;
}

.cert-item:hover { border-color: rgba(0,255,178,.2); }

.cert-icon {
  width: 32px; height: 32px;
  background: rgba(0,255,178,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.cert-name { color: var(--text); font-weight: 500; }
.cert-date { color: var(--text3); font-family: var(--mono); font-size: 11px; margin-left: auto; }

/* ── Blog posts ──────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.post-date { font-family: var(--mono); font-size: 12px; color: var(--text3); margin-bottom: .5rem; }
.post-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; }
.post-tag { font-family: var(--mono); font-size: 11px; color: var(--accent); }

.post-title-link {
  display: block;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
  transition: color .2s;
  line-height: 1.35;
}

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

.post-summary { font-size: 14px; color: var(--text2); line-height: 1.65; }

/* ── Single post ─────────────────────────────────────────── */
.post-hero {
  padding: 8rem 0 4rem;
}

.post-hero .post-date { margin-bottom: 1rem; }

.post-hero h1 {
  font-family: var(--sans);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.post-hero .post-desc { font-size: 19px; color: var(--text2); line-height: 1.6; }

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
  color: var(--text2);
  line-height: 1.8;
}

.post-body h2 {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}

.post-body h3 {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--text);
  margin: 2rem 0 .75rem;
}

.post-body p { margin-bottom: 1.25rem; }

.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.post-body code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: .15rem .45rem;
  color: var(--accent);
}

.post-body pre {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius2);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text2);
  font-size: 13px;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 14px;
}

.post-body th {
  background: var(--bg2);
  color: var(--accent);
  padding: .6rem 1rem;
  text-align: left;
  border: 1px solid var(--border2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.post-body td {
  padding: .5rem 1rem;
  border: 1px solid var(--border);
  color: var(--text2);
}

.post-body tr:nth-child(even) td { background: rgba(255,255,255,.015); }

.post-body ul, .post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.post-body li { margin-bottom: .3rem; }

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(0,255,178,.03);
  border-radius: 0 var(--radius2) var(--radius2) 0;
  color: var(--text2);
  font-style: italic;
}

/* ── CV page ─────────────────────────────────────────────── */
.cv-hero { padding: 8rem 0 4rem; }

.cv-hero h1 {
  font-family: var(--sans);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: .5rem;
}

.cv-body { padding: 2rem 0 6rem; }

.cv-section { margin-bottom: 3rem; }

.cv-section-header {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.cv-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.cv-date-col {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  padding-top: .15rem;
}

.cv-title { font-family: var(--sans); font-weight: 600; color: var(--text); font-size: 15px; }
.cv-org   { font-size: 13px; color: var(--text3); margin-bottom: .5rem; }

.cv-bullets { list-style: none; }
.cv-bullets li {
  font-size: 13px;
  color: var(--text2);
  padding-left: 1rem;
  position: relative;
  margin-bottom: .25rem;
  line-height: 1.6;
}
.cv-bullets li::before { content: '▸'; color: var(--accent); position: absolute; left: 0; }

.skill-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.skill-row:last-child { border-bottom: none; }
.skill-row-label { color: var(--accent); font-family: var(--mono); font-size: 12px; }
.skill-row-val { color: var(--text2); }

/* ── Contact section ─────────────────────────────────────── */
.contact-inner {
  max-width: 680px;
}

.contact-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Homelab floating icons ──────────────────────────────── */
.hl-float-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 1.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.hl-float-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.hl-float-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0,255,178,.05);
  border: 1.5px solid rgba(0,255,178,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  animation: hl-float 3.5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition: border-color .25s, box-shadow .25s, background .25s;
}

@keyframes hl-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.hl-float-item:hover .hl-float-icon-wrap {
  border-color: var(--accent);
  background: rgba(0,255,178,.1);
  box-shadow: 0 0 28px rgba(0,255,178,.25), 0 0 0 4px rgba(0,255,178,.06);
  animation-play-state: paused;
}

.hl-float-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  margin-top: .6rem;
  text-align: center;
  max-width: 90px;
  line-height: 1.4;
}

/* tooltip */
.hl-float-tooltip {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 280px;
  background: #0d1117;
  border: 1px solid rgba(0,255,178,.3);
  border-radius: var(--radius);
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 200;
  box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(0,255,178,.06);
}

.hl-float-item:hover .hl-float-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* tooltip arrow */
.hl-float-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: rgba(0,255,178,.3);
}

.hl-tt-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem;
}

.hl-tt-what {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .65rem;
}

.hl-tt-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: .85rem;
}

.hl-tt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

/* Grafana embed */
.hl-grafana-wrap {
  margin-top: 3rem;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg2);
}

.hl-grafana-label {
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  background: var(--bg3);
}

.hl-grafana-frame {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

.hl-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 1rem;
}

.hl-benefit-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s;
}

.hl-benefit-card:hover { border-color: rgba(0,255,178,.2); }

.hl-benefit-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(0,255,178,.06);
  border: 1px solid rgba(0,255,178,.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hl-benefit-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .35rem;
}

.hl-benefit-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
}

@media (max-width: 600px) {
  .hl-benefits { grid-template-columns: 1fr; }
  .homelab-grid { grid-template-columns: 1fr; }
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 13px;
  color: var(--text3);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a { color: var(--text3); transition: color .2s; font-size: 13px; }
.footer-links a:hover { color: var(--accent); }

/* ── Scroll reveal animations ────────────────────────────── */
/* CSS fallback: animate in after 0.2s regardless of JS */
@keyframes revealIn {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
  animation: revealIn .6s ease forwards;
  animation-delay: .15s;
}

/* JS adds .visible — takes over from the animation */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

.reveal-delay-1 { animation-delay: .2s;  transition-delay: .1s; }
.reveal-delay-2 { animation-delay: .3s;  transition-delay: .2s; }
.reveal-delay-3 { animation-delay: .4s;  transition-delay: .3s; }
.reveal-delay-4 { animation-delay: .5s;  transition-delay: .4s; }

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

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .term-card { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .cv-row { grid-template-columns: 1fr; gap: .25rem; }
  .skill-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .hero-heading { font-size: 36px; }
  .projects-grid, .blog-grid, .skills-grid { grid-template-columns: 1fr; }
}
/* v2 */
