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

:root {
  --bg: #0d0f14;
  --bg-alt: #111318;
  --bg-card: #16181f;
  --border: #1e2130;
  --accent: #4f7cff;
  --accent-hover: #6b94ff;
  --text: #e2e4ed;
  --text-muted: #7b8099;
  --text-dim: #4a4f66;
  --green: #3dd68c;
  --yellow: #f5a623;
  --purple: #a78bfa;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

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

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

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

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

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

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

/* ── Hero ── */
.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-eyebrow {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.hero-name {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #e2e4ed 0%, #7b8099 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 4px;
}

.hero-location {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

.hero-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.badge {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(79, 124, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(79, 124, 255, 0.25);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

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

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

.hero-avatar {
  flex-shrink: 0;
}

.avatar-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}

.avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ── Sections ── */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

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

.section-contact {
  background: var(--bg-alt);
  text-align: center;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 36px;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 24px;
  margin-top: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

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

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color 0.2s;
}

.timeline-card:hover {
  border-color: rgba(79, 124, 255, 0.35);
}

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

.timeline-role {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

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

.timeline-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 2px;
}

.timeline-location {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.skill-group-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.skill-tag {
  font-size: 13px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
}

.cert-list, .edu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.cert-icon {
  color: var(--accent);
  font-size: 12px;
  margin-top: 3px;
  flex-shrink: 0;
}

.edu-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.edu-item strong {
  font-size: 14px;
  font-weight: 600;
}

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

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: rgba(79, 124, 255, 0.4);
  transform: translateY(-2px);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-icon {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}

.project-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.project-lang {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}

.project-lang.typescript { background: rgba(49, 120, 198, 0.2); color: #60a5fa; }
.project-lang.python     { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.project-lang.docker     { background: rgba(79, 124, 255, 0.15); color: var(--accent); }
.project-lang.javascript { background: rgba(245, 166, 35, 0.15); color: var(--yellow); }

.project-name {
  font-size: 15px;
  font-weight: 600;
}

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

.project-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  transition: color 0.2s;
}

.project-link:hover {
  color: var(--accent-hover);
}

.projects-footer {
  margin-top: 32px;
  text-align: center;
}

/* ── Contact ── */
.contact-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 36px;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

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

/* ── Footer ── */
.footer {
  padding: 28px 0;
  background: var(--bg);
}

.footer .container {
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero-content {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .hero-bio {
    max-width: 100%;
  }

  .hero-certs, .hero-actions {
    justify-content: center;
  }

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

  .nav-links {
    gap: 16px;
  }

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