/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d0d0d;
  --bg-alt: #111111;
  --surface: #181818;
  --surface-hover: #1f1f1f;
  --border: #242424;
  --accent: #00d4a0;
  --accent-dim: rgba(0, 212, 160, 0.12);
  --text: #e8e8e8;
  --text-muted: #888;
  --text-faint: #555;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 860px;
  --nav-h: 60px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
}

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

.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

/* ===== Hero ===== */
.hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-name {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 28px;
}

.hero-bio {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 36px;
}

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

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: #00e8b0;
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
}

.location-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ===== Skills Bar ===== */
.skills-bar {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 160, 0.2);
  white-space: nowrap;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 40px;
}

/* ===== Timeline ===== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline-item {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.2s;
}

.timeline-item:hover {
  border-color: rgba(0, 212, 160, 0.3);
}

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

.timeline-company {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.timeline-role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
  padding-top: 3px;
  flex-shrink: 0;
}

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

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

.timeline-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 1px;
  background: var(--accent);
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.project-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: rgba(0, 212, 160, 0.3);
  transform: translateY(-2px);
}

.project-header {
  margin-bottom: 14px;
}

.project-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

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

.project-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--surface-hover);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.project-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Speaking ===== */
.speaking-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.speaking-card {
  display: flex;
  gap: 28px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.2s;
}

.speaking-card:hover {
  border-color: rgba(0, 212, 160, 0.3);
}

.speaking-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 3px;
  min-width: 80px;
}

.speaking-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.speaking-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.speaking-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.speaking-link:hover {
  opacity: 1;
}

/* ===== Skills Detail ===== */
.skills-detail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.skill-group {
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.skill-group h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

.skill-group p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== Contact ===== */
.contact-section {
  background: var(--bg);
}

.contact-intro {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.2s;
  max-width: 480px;
}

.contact-item:hover {
  border-color: var(--accent);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  min-width: 60px;
  letter-spacing: 0.06em;
}

.contact-value {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 48px);
  }

  .timeline-header {
    flex-direction: column;
    gap: 4px;
  }

  .speaking-card {
    flex-direction: column;
    gap: 12px;
  }

  .skills-detail {
    grid-template-columns: 1fr;
  }
}
