/* ================================================================
   destbreso — GitHub Dashboard
   Dark theme · Cyan accent · Dashboard aesthetics
   ================================================================ */

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

:root {
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-card-hover: #16161f;
  --border: #1e1e2a;
  --border-hover: #2a2a3a;
  --text: #e0e0e8;
  --text-muted: #8888a0;
  --text-dim: #55556a;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.15);
  --accent-glow: rgba(34, 211, 238, 0.25);
  --green: #00ff41;
  --purple: #a78bfa;
  --red: #f87171;
  --yellow: #facc15;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --container: 1200px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: #67e8f9;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Full-page Matrix Rain canvas ─────────────────────────────── */
#matrix-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Navigation ───────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(10, 10, 15, 0.75);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 15, 0.92);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}
.logo-bracket {
  color: var(--accent);
}
.logo-sep {
  color: var(--text-dim);
  margin: 0 6px;
  font-weight: 400;
}
.logo-label {
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted) !important;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--accent) !important;
}
.nav-link svg {
  width: 16px;
  height: 16px;
}

.nav-link-ext {
  color: var(--accent) !important;
  font-weight: 600;
  border: 1px solid var(--accent-dim);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.nav-link-ext:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 255, 65, 0);
  }
}

/* ── Hero ─────────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 360px;
  overflow: hidden;
  margin-top: 56px;
}
/* hero gradient removed — rain flows freely */
.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ── Terminal ─────────────────────────────────────────────────── */
.terminal-window {
  background: rgba(17, 17, 24, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.06);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red {
  background: var(--red);
}
.dot.yellow {
  background: var(--yellow);
}
.dot.green {
  background: #4ade80;
}
.terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 14px 16px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--text-muted);
}
.prompt {
  color: #4ade80;
  font-weight: 700;
}
.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
#terminal-output {
  margin-top: 8px;
}
.t-line {
  font-size: 0.78rem;
  line-height: 1.8;
}
.t-ok {
  color: var(--accent);
  margin-right: 4px;
}
.t-accent {
  color: var(--accent);
  font-weight: 600;
}

/* ── Sections ─────────────────────────────────────────────────── */
section {
  position: relative;
  z-index: 1;
  padding: 28px 0;
}
#stats {
  padding-top: 0;
  margin-top: -20px;
  position: relative;
  z-index: 3;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text);
}
.section-header h2 svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.view-all {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 4px;
}
.view-all svg {
  width: 14px;
  height: 14px;
}

/* ── Stats Grid ───────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.stat-card {
  background: rgba(17, 17, 24, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transition: all 0.35s var(--ease);
}
.stat-card:hover {
  border-color: rgba(34, 211, 238, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.1);
}
.stat-card:hover::after {
  left: 10%;
  right: 10%;
  opacity: 0.6;
}

.stat-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(34, 211, 238, 0.1);
  flex-shrink: 0;
}
.stat-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}
.stat-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

/* ── Dashboard Card ───────────────────────────────────────────── */
.dash-card {
  background: rgba(17, 17, 24, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.dash-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}
.dash-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.006) 2px,
    rgba(255, 255, 255, 0.006) 4px
  );
  pointer-events: none;
  border-radius: 14px;
}
.dash-card:hover {
  border-color: rgba(34, 211, 238, 0.2);
  box-shadow:
    0 0 30px rgba(34, 211, 238, 0.06),
    inset 0 0 30px rgba(34, 211, 238, 0.02);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.card-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text);
  letter-spacing: 0.03em;
}
.card-header h2 svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.4));
}
.card-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Charts ───────────────────────────────────────────────────── */
.chart-box {
  position: relative;
  z-index: 1;
}
.chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-tabs {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}
.chart-tab {
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.chart-tab:hover {
  color: var(--text-muted);
}
.chart-tab.active {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}

.chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.chart-loading.hidden {
  display: none;
}
.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Grid layouts ─────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── Heatmap ──────────────────────────────────────────────────── */
.heatmap-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: 1fr auto;
  gap: 3px;
  min-height: 120px;
}
.hm-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1px 0;
}
.hm-y span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  text-align: right;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hm-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 2px;
}
.hm-cell {
  aspect-ratio: 1;
  min-width: 6px;
  min-height: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s var(--ease);
  cursor: default;
  position: relative;
}
.hm-cell.glow-hi {
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.35);
}
.hm-cell.glow-md {
  box-shadow: 0 0 5px rgba(34, 211, 238, 0.2);
}
.hm-cell:hover {
  transform: scale(1.4);
  z-index: 2;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}
.hm-cell[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--text);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}
.hm-x {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  padding: 2px 0 0;
}
.hm-x span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-dim);
  width: calc(100% / 12);
  text-align: center;
}
.hm-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}
.hm-scale {
  display: flex;
  gap: 2px;
}
.hm-scale i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* ── Contribution Graph (GitHub-style) ────────────────────────── */
.contrib-wrap {
  position: relative;
  min-height: 140px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.contrib-months {
  display: flex;
  padding-left: 32px;
  margin-bottom: 4px;
  gap: 0;
}
.contrib-months span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-dim);
  text-align: left;
}
.contrib-body {
  display: flex;
  gap: 4px;
}
.contrib-days {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  width: 28px;
  flex-shrink: 0;
}
.contrib-days span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-dim);
  height: var(--cell-size, 13px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 2px;
}
.contrib-grid {
  display: grid;
  grid-template-rows: repeat(7, var(--cell-size, 13px));
  grid-auto-flow: column;
  grid-auto-columns: var(--cell-size, 13px);
  gap: 3px;
  flex: 1;
}
.contrib-cell {
  width: var(--cell-size, 13px);
  height: var(--cell-size, 13px);
  border-radius: 2.5px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.15s var(--ease);
  cursor: default;
  position: relative;
}
.contrib-cell:hover {
  transform: scale(1.6);
  z-index: 10;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}
.contrib-cell.lv-1 {
  background: rgba(34, 211, 238, 0.15);
}
.contrib-cell.lv-2 {
  background: rgba(34, 211, 238, 0.35);
}
.contrib-cell.lv-3 {
  background: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 5px rgba(34, 211, 238, 0.2);
}
.contrib-cell.lv-4 {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}
.contrib-cell[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--text);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  white-space: nowrap;
  z-index: 20;
  pointer-events: none;
}

/* ── Language Chart ───────────────────────────────────────────── */
.lang-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  min-height: 200px;
}
.lang-wrap canvas {
  flex-shrink: 0;
}
.lang-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}
.lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.lang-name {
  color: var(--text);
  flex: 1;
}
.lang-pct {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* ── Timeline ─────────────────────────────────────────────────── */
.timeline-feed {
  max-height: 340px;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.tl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.tl-item:last-child {
  border-bottom: none;
}
.tl-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--accent-dim);
  flex-shrink: 0;
}
.tl-icon svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.tl-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.tl-repo {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
}
.tl-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* ── Repos Grid ───────────────────────────────────────────────── */
.repos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  min-height: 100px;
}

.repo-card {
  background: rgba(17, 17, 24, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  color: var(--text);
}
.repo-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  color: var(--text);
}
.repo-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.repo-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}
.repo-icon {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
}
.repo-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.repo-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}
.repo-lang {
  display: flex;
  align-items: center;
  gap: 5px;
}
.repo-stat {
  display: flex;
  align-items: center;
  gap: 3px;
}
.repo-stat svg {
  width: 13px;
  height: 13px;
}

/* ── Insights Grid ────────────────────────────────────────────── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.insight-card {
  background: rgba(17, 17, 24, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.insight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
  transition: all 0.35s var(--ease);
}
.insight-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.1);
}
.insight-card:hover::before {
  left: 10%;
  right: 10%;
  opacity: 0.7;
}

.insight-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(34, 211, 238, 0.1);
  margin-bottom: 4px;
}
.insight-icon svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.insight-value {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}
.insight-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  line-height: 1.3;
}

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 20px 32px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
footer strong {
  color: var(--text-muted);
}
.foot-sub {
  margin-top: 4px;
  font-size: 0.7rem;
}

/* ── Project Analytics Heatmaps ───────────────────────────────── */
.proj-hm-wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 3px;
  min-height: 140px;
}
.proj-hm-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: flex-start;
  padding-right: 4px;
}
.proj-hm-labels span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-dim);
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.proj-hm-grid {
  display: grid;
  gap: 2px;
}
.proj-day-cols {
  grid-template-columns: repeat(7, 1fr);
}
.proj-hour-cols {
  grid-template-columns: repeat(6, 1fr);
}
.proj-hm-grid .hm-cell {
  aspect-ratio: auto;
  min-height: 18px;
  border-radius: 3px;
}
.proj-hm-x {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  padding: 4px 0 0;
}
.proj-hm-x span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-dim);
  text-align: center;
  flex: 1;
}

/* ── Project Insights Cards ───────────────────────────────────── */
.proj-insights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  min-height: 140px;
}
.proj-insight-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.25s var(--ease);
}
.proj-insight-row:hover {
  border-color: rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.03);
}
.proj-insight-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--accent-dim);
  flex-shrink: 0;
}
.proj-insight-icon svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.proj-insight-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.proj-insight-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-mono);
}
.proj-insight-desc {
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.proj-insight-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
  flex-shrink: 0;
}

/* ── Cascade Section Dividers (subtle — no visible line) ─────── */
#contributions,
#distribution,
#analytics,
#patterns,
#repos,
#projects,
#insights,
#daily-hours,
footer {
  padding-top: 32px;
}

/* Cascade particle container — invisible collision zone */
.cascade-wrap {
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 60px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

/* Individual falling matrix characters — subtle splash */
.cascade-char {
  position: absolute;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  pointer-events: none;
  animation: char-cascade linear forwards;
  will-change: transform, opacity;
}

@keyframes char-cascade {
  0% {
    transform: translateY(0) scale(0.9) rotate(0deg);
    opacity: 0.55;
    text-shadow: 0 0 5px rgba(34, 211, 238, 0.5);
  }
  30% {
    opacity: 0.35;
  }
  100% {
    transform: translateY(36px) scale(0.5) rotate(12deg);
    opacity: 0;
    text-shadow: 0 0 1px rgba(34, 211, 238, 0.05);
  }
}

/* ── Animations ───────────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .repos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .insights-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .repos-grid {
    grid-template-columns: 1fr;
  }
  .nav-link-ext {
    display: none;
  }
  .lang-wrap {
    flex-direction: column;
  }
  .lang-wrap canvas {
    width: 140px !important;
    height: 140px !important;
  }
  #hero {
    height: 280px;
  }
  .terminal-window {
    max-width: 400px;
  }
  .contrib-grid {
    --cell-size: 10px;
    gap: 2px;
  }
  .contrib-days span {
    height: 10px;
    font-size: 0.5rem;
  }
  .contrib-months span {
    font-size: 0.5rem;
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chart-tabs {
    flex-wrap: wrap;
  }
  .hm-grid {
    gap: 1px;
  }
  .nav-right .nav-link:not(.nav-link-ext) {
    font-size: 0.7rem;
  }
  .nav-right .live-badge {
    display: none;
  }
}
