:root {
  --accent: #f97316;
  --accent-light: #fff7ed;
  --text: #1a1a2e;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --sidebar-bg: #1a1a2e;
  --sidebar-text: #e2e8f0;
  --sidebar-muted: #94a3b8;
  --radius: 8px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

/* ── Layout ── */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.sidebar-avatar img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.sidebar-avatar h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.sidebar-avatar .title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.sidebar-section h3 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
  margin-bottom: 0.75rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-list li {
  font-size: 0.82rem;
  color: var(--sidebar-muted);
}

.contact-list li a {
  color: var(--sidebar-text);
  word-break: break-word;
}
.contact-list li a:hover { color: var(--accent); text-decoration: none; }

.contact-list .label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sidebar-muted);
  margin-bottom: 1px;
}

.availability-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
  margin-top: 0.25rem;
}

nav.sidebar-nav {
  margin-top: auto;
}

nav.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

nav.sidebar-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sidebar-muted);
  transition: color 0.15s, background 0.15s;
}

nav.sidebar-nav a:hover,
nav.sidebar-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

/* ── Main content ── */
main {
  padding: 3rem 3.5rem;
  max-width: 760px;
}

section {
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4rem;
  margin-bottom: 1.75rem;
  display: inline-block;
}

/* ── About ── */
.about-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ── Timeline ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tl-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 1rem;
  position: relative;
  padding-left: 1.25rem;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.tl-item::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 1.1rem;
  width: 1px;
  bottom: -1.5rem;
  background: var(--border);
}

.tl-item:last-child::after { display: none; }

.tl-role {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.tl-company {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.1rem;
}

.tl-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 0.2rem;
  font-weight: 500;
}

.tl-desc {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.7;
}

/* ── Education ── */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.edu-item {}

.edu-degree {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.edu-school {
  font-size: 0.82rem;
  color: var(--accent);
  margin-top: 0.1rem;
}

.edu-year {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ── Skills ── */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-group {}

.skill-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.badge-neutral {
  background: var(--bg-alt);
  color: var(--text);
  border-color: var(--border);
}

/* ── Languages ── */
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lang-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
}

.lang-name { font-weight: 600; color: var(--text); }
.lang-level { color: var(--text-muted); font-size: 0.8rem; }

/* ── CV download ── */
.cv-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  transition: opacity 0.15s;
}

.cv-download:hover { opacity: 0.88; text-decoration: none; color: #fff; }

/* ── Mobile nav toggle ── */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sidebar-bg);
  padding: 1rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.mobile-header .site-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .mobile-header { display: flex; }

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

  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100%;
    z-index: 200;
    transition: left 0.25s ease;
    width: 280px;
    padding-top: 4rem;
  }

  .sidebar.open { left: 0; }

  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
  }
  .overlay.visible { display: block; }

  main {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 480px) {
  main { padding: 1.5rem 1rem; }
  .tl-item { grid-template-columns: 1fr; }
  .tl-period { padding-top: 0; }
}
