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

:root {
  --bg: #0f0f0f;
  --surface: #161616;
  --surface2: #1e1e1e;
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.14);
  --text: #f0ede8;
  --muted: #8a8680;
  --accent: #4ade80;
  --accent2: #86efac;
  --tag-bg: rgba(74, 222, 128, 0.08);
  --tag-border: rgba(74, 222, 128, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

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

a:hover {
  color: var(--accent2);
}

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

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  padding: 14px 0;
}

nav .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}

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

/* HERO */
.hero {
  padding: 80px 0 64px;
  border-bottom: 0.5px solid var(--border);
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 strong {
  font-weight: 500;
  color: #fff;
}

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0a1f0f;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent2);
  color: #0a1f0f;
  border-color: var(--accent2);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 0.5px solid var(--border2);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--surface2);
}

/* SECTIONS */
section {
  padding: 56px 0;
  border-bottom: 0.5px solid var(--border);
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* EXPERIENCE */
.job {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 0.5px solid var(--border);
}

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

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.job-title {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.job-period {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 3px;
}

.job-company {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
}

.job-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-bullets li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.job-bullets li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.4;
}

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

.skill-group {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
}

.skill-group-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--tag-bg);
  border: 0.5px solid var(--tag-border);
  color: var(--accent2);
  font-family: 'DM Mono', monospace;
}

/* EDUCATION */
.edu-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.edu-degree {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 2px;
}

.edu-school {
  font-size: 13px;
  color: var(--muted);
}

.edu-year {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* PROJECTS */
.project-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
}

.project-title {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}

.project-context {
  font-size: 12px;
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  margin-bottom: 14px;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.contact-item {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 11px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-value {
  font-size: 13px;
  color: var(--accent);
  word-break: break-all;
}

/* FOOTER */
footer {
  padding: 32px 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow { animation: fadeUp 0.5s ease both; }
.hero h1      { animation: fadeUp 0.5s 0.1s ease both; }
.hero-sub     { animation: fadeUp 0.5s 0.2s ease both; }
.hero-links   { animation: fadeUp 0.5s 0.3s ease both; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .job-header { flex-direction: column; gap: 4px; }
  .edu-item { flex-direction: column; gap: 4px; }
}
