:root {
  --bg: #0a0e14;
  --bg-elevated: #11161f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6e9ef;
  --text-muted: #9aa4b2;
  --accent: #8b5cf6;
  --accent-contrast: #ffffff;
  --max-width: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
  color: var(--text);
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem max(1.5rem, calc((100% - var(--max-width)) / 2));
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.nav__brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 1.25rem;
}

.nav__links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

.nav__links a.is-active {
  color: var(--accent);
}

/* Layout */

main {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
}

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

.section h2 {
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
}

.section__subtitle {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

/* Hero */

.hero {
  padding: 5rem 0 3rem;
  text-align: left;
}

.hero__eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  margin: 0 0 1rem;
}

.hero__tagline {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 46ch;
  margin: 0 0 2rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
}

.button:hover {
  text-decoration: none;
  opacity: 0.9;
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.button--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.timeline__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
}

.timeline__dates {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.timeline__body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.timeline__body p {
  margin: 0;
  color: var(--text-muted);
}

/* Skills */

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

.skills__group h3 {
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tag-list li {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem;
}

/* Education */

.education-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.education-list h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.education-list p {
  margin: 0;
  color: var(--text-muted);
}

/* Architecture */

.arch-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.arch-flow__step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem;
}

.arch-flow__label {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.arch-flow__step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.arch-note {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */

.footer {
  padding: 3rem max(1.5rem, calc((100% - var(--max-width)) / 2)) 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer__note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Responsive */

@media (max-width: 560px) {
  .nav__links {
    gap: 0.85rem;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}
