:root {
  --bg: #0d1017;
  --bg-soft: #12161f;
  --surface: #171c26;
  --surface-hover: #1c2330;
  --border: #262e3d;
  --text: #e6e9ef;
  --text-muted: #9aa4b5;
  --accent: #cf4429;        /* VT burnt orange */
  --accent-2: #861f41;      /* VT chicago maroon */
  --gradient: linear-gradient(135deg, var(--accent-2), var(--accent));
  --radius: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(134, 31, 65, 0.18), transparent 60%),
    radial-gradient(800px 400px at 10% -10%, rgba(207, 68, 41, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 16, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.nav-brand span { color: var(--accent); }
.nav-brand:hover { text-decoration: none; }

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

.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: var(--accent);
}
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-primary {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.1); }

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 96px 0 72px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: var(--gradient) border-box;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  margin: 0 auto 32px;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

/* ---------- Sections ---------- */

.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.section > h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.section > h2::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient);
  margin-right: 14px;
  vertical-align: middle;
}

.subsection-title {
  margin: 40px 0 14px;
  font-size: 1.2rem;
}

.caption {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 10px;
}

/* ---------- Skills ---------- */

.skill-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.skill-group h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.chip:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Project cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.card {
  display: block;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--surface-hover);
  text-decoration: none;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--mono);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.lang {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--mono);
  padding: 3px 10px;
  border-radius: 999px;
}
.lang-python { background: rgba(53, 114, 165, 0.25); color: #79a8d4; }
.lang-html   { background: rgba(227, 76, 38, 0.20); color: #e88b6a; }
.lang-jupyter { background: rgba(218, 91, 11, 0.22); color: #e8965c; }
.lang-csharp { background: rgba(23, 134, 0, 0.22); color: #6fce62; }
.lang-kaggle { background: rgba(32, 190, 255, 0.18); color: #6fd2ff; }
.lang-neutral { background: rgba(154, 164, 181, 0.15); color: var(--text-muted); }

/* ---------- Media cards ---------- */

.card-media { padding-top: 0; overflow: hidden; }

.card-thumb {
  margin: 0 -24px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.card-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.card-thumb .video-wrap {
  border: 0;
  border-radius: 0;
}

/* ---------- Video ---------- */

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Mini list ---------- */

.mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mini-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.mini-list li:last-child { border-bottom: none; }
.mini-list strong { color: var(--text); }

/* ---------- Spotlight ---------- */

.spotlight {
  position: relative;
  padding: 32px;
  background:
    radial-gradient(600px 200px at 90% 0%, rgba(207, 68, 41, 0.12), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.spotlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.spotlight-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.spotlight h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.spotlight p {
  margin: 0 0 22px;
  color: var(--text-muted);
  max-width: 720px;
}

/* ---------- Timeline ---------- */

.timeline {
  display: grid;
  gap: 20px;
  border-left: 2px solid var(--border);
  padding-left: 28px;
  margin-left: 8px;
}

.entry {
  position: relative;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.entry::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px rgba(207, 68, 41, 0.15);
}

.entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.entry h3 { margin: 0; font-size: 1.08rem; }

.entry-meta {
  font-size: 0.82rem;
  color: var(--accent);
  font-family: var(--mono);
}

.entry p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.entry-with-image {
  display: flex;
  align-items: center;
  gap: 24px;
}

.entry-body { flex: 1; }

.entry-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 64px 0 48px; }
  .grid { grid-template-columns: 1fr; }
  .entry-with-image { flex-direction: column-reverse; align-items: flex-start; }
}
