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

:root {
  --bg: #1a1a1a;
  --bg-subtle: #222222;
  --text: #bfbfbf;
  --text-bright: #e5e5e5;
  --accent: #645394;
  --accent-dim: #51477e;
  --divider: #2a2a2a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */

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

section {
  padding: 48px 0;
  border-bottom: 1px solid var(--divider);
}

section:last-of-type {
  border-bottom: none;
}

/* ── Fade-in on scroll ── */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero ── */

.hero {
  padding: 80px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.hero .tagline {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 24px;
}

.icon-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.icon-links a {
  color: var(--text);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}

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

.icon-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ── Section headings ── */

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ── About ── */

.about {
  font-size: 0.95rem;
  color: var(--text);
  max-width: 620px;
}

/* ── Education ── */

.edu-item {
  margin-bottom: 16px;
}

.edu-item:last-child {
  margin-bottom: 0;
}

.edu-item .school {
  font-weight: 600;
  color: var(--text-bright);
  font-size: 0.95rem;
}

.edu-item .degree {
  font-size: 0.875rem;
  color: var(--text);
}

.edu-item .date {
  font-size: 0.8rem;
  color: var(--accent-dim);
}

/* ── Experience ── */

.exp-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
}

.exp-item:last-child {
  border-bottom: none;
}

.exp-item .role {
  font-weight: 600;
  color: var(--text-bright);
  font-size: 0.95rem;
}

.exp-item .org {
  font-size: 0.8rem;
  color: var(--text);
}

.exp-item .dates {
  font-size: 0.8rem;
  color: var(--accent-dim);
  white-space: nowrap;
  margin-left: 16px;
  flex-shrink: 0;
}

/* ── Skills ── */

.skill-row {
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.skill-row:last-child {
  margin-bottom: 0;
}

.skill-label {
  font-weight: 600;
  color: var(--text-bright);
  margin-right: 6px;
}

.skill-tags {
  color: var(--text);
}

/* ── Footer ── */

footer {
  padding: 32px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
}

footer .icon-links {
  margin-bottom: 12px;
  gap: 16px;
}

footer .icon-links a {
  color: #666;
}

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

footer .icon-links svg {
  width: 16px;
  height: 16px;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .hero {
    padding: 56px 0 36px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  section {
    padding: 36px 0;
  }

  .exp-item {
    flex-direction: column;
    gap: 2px;
  }

  .exp-item .dates {
    margin-left: 0;
  }
}
