:root {
  --sidebar-bg: #141a20;
  --content-bg: #fafafa;
  --text-dark: #1c2530;
  --text-light: #e8ecef;
  --accent: #2dd4bf;
  --accent-warm: #f5a623;
  --muted: #8a94a0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--content-bg);
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: var(--text-light);
  padding: 2.5rem 1.75rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--sidebar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.75rem;
  font-weight: 700;
}

.sidebar h1 { font-size: 1.4rem; line-height: 1.3; }
.sidebar .title { color: var(--muted); font-size: 0.95rem; }
.sidebar .location { color: var(--accent); font-size: 0.85rem; }

.contact { list-style: none; font-size: 0.85rem; display: flex; flex-direction: column; gap: 0.35rem; }
.contact a { color: var(--text-light); text-decoration: none; }
.contact a:hover { color: var(--accent); }

.section-nav { display: flex; flex-direction: column; gap: 0.6rem; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85rem; }
.section-nav a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.section-nav a:hover { color: var(--text-light); }
.section-nav a.active { color: var(--accent); font-weight: 600; }

.download-btn {
  margin-top: auto;
  background: var(--accent);
  color: var(--sidebar-bg);
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s;
}
.download-btn:hover { opacity: 0.85; }

.content {
  flex: 1;
  max-width: 760px;
  padding: 3rem 2.5rem;
}

.content section { margin-bottom: 3rem; }
.content h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
  display: inline-block;
}
.content p, .content li { line-height: 1.6; color: var(--text-dark); }
.content ul { padding-left: 1.2rem; }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.skills-grid h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }

.timeline-entry { margin-bottom: 1.75rem; }
.entry-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.4rem; }
.entry-head h3 { font-size: 1rem; }
.entry-head .dates { color: var(--muted); font-size: 0.85rem; font-family: ui-monospace, "SF Mono", Menlo, monospace; }

#certifications h3 { margin-top: 1rem; margin-bottom: 0.3rem; font-size: 0.95rem; }
#certifications h3:first-of-type { margin-top: 0; }

@media (max-width: 800px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; }
  .content { padding: 2rem 1.25rem; max-width: none; }
}

@media print {
  .sidebar .section-nav, .download-btn { display: none; }
  body { display: block; padding: 0.6in 0.7in; }
  .sidebar, .content { color: #000; background: #fff; padding: 0; }
  .sidebar { height: auto; position: static; margin-bottom: 1.5rem; }
  .contact a, .avatar { color: #000; }
  .avatar { background: var(--accent); color: #000; }
}

@page {
  margin: 0;
}
