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

:root {
  --bg: #0f1117;
  --bg-card: #171a23;
  --bg-hover: #1e2230;
  --text: #e6e8ee;
  --text-muted: #8b90a0;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, .12);
  --border: #252936;
  --radius: 14px;
  --sidebar-w: 280px;
  --max-content: 760px;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

html { scroll-behavior: smooth; }

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

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  border-right: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.sidebar-inner {
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
}

.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.role {
  color: var(--accent);
  font-size: .95rem;
  font-weight: 500;
  margin-top: .25rem;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin: 2.5rem 0;
}

.nav-link {
  display: block;
  padding: .6rem 1rem;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover { color: var(--text); background: var(--bg-hover); }
.nav-link.active { color: var(--accent); background: var(--accent-soft); }

.socials {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  font-size: .85rem;
}
.socials a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.socials a:hover { color: var(--accent); }

/* ===== Main content ===== */
.content {
  margin-left: var(--sidebar-w);
  padding: 3rem 3rem 5rem;
  max-width: calc(var(--max-content) + var(--sidebar-w) + 6rem);
}

.section { margin-bottom: 3.5rem; }

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--border);
  letter-spacing: -.01em;
}

.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 60ch;
}

/* Info grid */
.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
}
.info-item { display: flex; flex-direction: column; gap: .2rem; }
.info-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.info-value { font-size: .95rem; font-weight: 500; }

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 2.25rem;
  border-left: 2px solid var(--border);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-head { margin-bottom: .75rem; }
.job-title { font-size: 1.1rem; font-weight: 600; }
.job-company { display: block; color: var(--accent); font-size: .9rem; font-weight: 500; margin-top: .15rem; }
.job-date { display: block; color: var(--text-muted); font-size: .85rem; margin-top: .15rem; }

.job-bullets { list-style: none; }
.job-bullets li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: .5rem;
}
.job-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.skill-group h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .75rem;
  color: var(--text);
}
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  padding: .35rem .8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* Contact */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  padding: .7rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
}
.contact-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Footer */
.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  :root { --sidebar-w: 100%; }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-inner { padding: 2rem; }
  .nav { flex-direction: row; flex-wrap: wrap; justify-content: center; margin: 1.5rem 0; }
  .content { margin-left: 0; padding: 2rem 1.5rem 4rem; }
  .skills-grid { grid-template-columns: 1fr; }
}
.info-value {overflow-wrap:anywhere;}
a:focus-visible {outline:2px solid var(--accent);outline-offset:4px;}
