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

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #c9d1d9;
  --text-bright: #e6edf3;
  --text-muted: #8b949e;
  --text-faint: #484f58;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --tag-bg: #1f2937;
  --tag-border: #374151;
  --green: #3fb950;
  --max-width: 740px;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

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

/* Nav */
nav {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav .nav-name {
  font-weight: 600;
  color: var(--text-bright);
  font-size: 0.95rem;
}

nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

nav a:hover { color: var(--text-bright); }
nav a.active { color: var(--text-bright); }

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.25rem;
}

.hero .title {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero .meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero .meta svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  flex-shrink: 0;
}

.hero .meta a { color: var(--text-muted); }
.hero .meta a:hover { color: var(--accent); }

/* Summary */
.summary {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
}

/* Section */
section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-child { border-bottom: none; }

section h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* Experience */
.job {
  margin-bottom: 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--border);
}

.job:last-child { margin-bottom: 0; }

.job .role {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-bright);
}

.job .company {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.job .period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.job .tenure {
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 500;
}

.job p {
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.job ul {
  list-style: none;
  padding: 0;
}

.job ul li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
  line-height: 1.55;
}

.job ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--text-faint);
}

.job .tech {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Skills */
.skill-group {
  margin-bottom: 1.25rem;
}

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

.skill-group h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background-color: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--text);
  white-space: nowrap;
}

/* Education */
.edu {
  margin-bottom: 1.25rem;
}

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

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

.edu .school {
  font-size: 0.9rem;
  color: var(--text);
}

.edu .year {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.highlight {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background-color: var(--surface);
  border: 1px solid var(--border);
}

.highlight .number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.highlight .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Project cards */
.project {
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  transition: border-color 0.15s;
}

.project:hover { border-color: var(--accent); }
.project:last-child { margin-bottom: 0; }

.project h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.35rem;
}

.project h3 a { color: var(--text-bright); }
.project h3 a:hover { color: var(--accent); }

.project p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

/* Page header */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-bright);
}

.page-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* Responsive */
@media (max-width: 600px) {
  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero .meta { gap: 0.75rem; }
  section { padding: 2rem 0; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
}
