@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,700;1,400&display=swap');

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

:root {
  --bg: #0d0d0d;
  --bg2: #141414;
  --border: #2a2a2a;
  --text: #d4d4d4;
  --dim: #6a6a6a;
  --green: #4ec994;
  --blue: #569cd6;
  --yellow: #dcdcaa;
  --red: #f44747;
  --string: #ce9178;
}

html { font-size: 14px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  line-height: 1.65;
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

/* header */
header { margin-bottom: 3rem; }

.name-line {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.kw  { color: var(--blue); }
.fn  { color: var(--yellow); }
.str { color: var(--string); }
.cmt { color: var(--dim); font-style: italic; }

.contact-line {
  font-size: 0.82rem;
  color: var(--dim);
}

.contact-line a {
  color: var(--string);
  text-decoration: none;
}
.contact-line a:hover { text-decoration: underline; }

/* nav */
nav {
  display: flex;
  gap: 0;
  margin-bottom: 3rem;
  border: 1px solid var(--border);
  width: fit-content;
}

nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.78rem;
  padding: 0.4rem 1rem;
  border-right: 1px solid var(--border);
  transition: color 0.15s, background 0.15s;
}

nav a:last-child { border-right: none; }
nav a:hover { color: var(--green); background: var(--bg2); }

/* section */
section { margin-bottom: 3.5rem; }

.section-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.section-header h2 {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* experience entry */
.entry {
  margin-bottom: 2.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.15s;
}
.entry:hover { border-left-color: var(--green); }

.entry-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.entry-title { font-weight: 700; color: var(--yellow); font-size: 0.95rem; }
.entry-date  { font-size: 0.76rem; color: var(--dim); }
.entry-org   { font-size: 0.82rem; color: var(--string); margin-bottom: 0.7rem; }

ul { padding-left: 1.2rem; list-style: none; }

li {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.3rem;
  position: relative;
}

li::before {
  content: '–';
  position: absolute;
  left: -1rem;
  color: var(--dim);
}

code { color: var(--green); font-size: 0.9em; }

/* project card */
.project {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.2rem;
  transition: border-color 0.15s;
}
.project:hover { border-color: #3a3a3a; }

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.project-name { font-weight: 700; font-size: 0.95rem; color: var(--yellow); }

/* GitHub button */
.gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--dim);
  font-family: inherit;
  font-size: 0.75rem;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.gh-btn:hover { color: var(--green); border-color: var(--green); }
.gh-btn svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }

/* education */
.edu-entry {
  margin-bottom: 1.4rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.15s;
}
.edu-entry:hover { border-left-color: var(--blue); }

.edu-degree { font-weight: 700; color: var(--yellow); font-size: 0.9rem; }
.edu-school { font-size: 0.82rem; color: var(--string); }

/* footer */
footer { margin-top: 4rem; font-size: 0.75rem; color: var(--dim); }
