:root {
  --bg: #0a0c10;
  --fg: #e6e6eb;
  --muted: #9aa0aa;
  --line: #1f2430;
  --accent: #6e6eff;
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--fg);
  background:
    radial-gradient(1200px 600px at 70% -10%, #1a1f35 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 20%, #0f1324 0%, transparent 55%),
    radial-gradient(600px 400px at 80% 80%, #0b0e1d 0%, transparent 60%),
    var(--bg);
}

/* Subtle grain canvas */
canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
}

/* Layout */
.container {
  max-width: 960px;
  margin: auto;
  padding: 3rem 1.5rem 4rem;
}

/* Header */
.header h1 {
  font-size: 2.2rem;
  font-weight: 600;
}

.subtitle {
  color: var(--muted);
  margin-top: .3rem;
}

.summary {
  margin-top: .8rem;
  max-width: 560px;
  color: #cfcfd6;
}

/* Sections */
section {
  margin-top: 3rem;
}

h2 {
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #cfd2ff;
  margin-bottom: 1.2rem;
}

/* =========================
   Timeline (FIXED SPACING)
   ========================= */

.timeline {
  border-left: 1px solid var(--line);
  padding-left: 1.4rem; /* ← space between line and content */
}

.row {
  display: grid;
  grid-template-columns: 90px 24px 1fr;
  padding: .7rem 0;
  align-items: flex-start;
}

.time {
  font-size: .8rem;
  color: var(--muted);
  padding-top: .15rem;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: .45rem;
}

.content strong {
  display: block;
  font-weight: 500;
}

.content span {
  font-size: .85rem;
  color: var(--muted);
}

.content p {
  margin-top: .35rem;
  color: #c7c7cf;
  max-width: 520px;
}

/* Skills */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.skills h3 {
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: .3rem;
}

.skills p {
  font-size: .85rem;
  color: var(--muted);
}

/* Education */
.edu {
  font-size: .9rem;
}

.edu span {
  display: block;
  margin-top: .3rem;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 768px) {
  .row {
    grid-template-columns: 70px 20px 1fr;
  }

  .timeline {
    padding-left: 1.1rem;
  }
}
