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

:root {
  --bg:           #0f1117;
  --bg-2:         #161b27;
  --bg-3:         #1e2536;
  --accent:       #e07b39;
  --accent-dim:   #a85a22;
  --text:         #d4dbe8;
  --text-muted:   #7a8ba0;
  --text-faint:   #4a5568;
  --nav-width:    320px;
  --border:       #2a3347;
  --radius:       6px;
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  display: flex;
  min-height: 100vh;
}

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

/* ─── Sidebar Nav ───────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 2.5rem;
  z-index: 100;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.sidebar-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

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

.sidebar-nav li a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 400;
  transition: color 0.15s, background 0.15s;
}

.sidebar-nav li a:hover {
  color: var(--text);
  background: var(--bg-3);
}

.sidebar-nav li a.active {
  color: var(--accent);
  background: rgba(224, 123, 57, 0.08);
  font-weight: 500;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  transition: color 0.15s;
}

.sidebar-links a:hover {
  color: var(--accent);
}

/* ─── Main Content ──────────────────────────────────────────────── */
.main-content {
  margin-left: var(--nav-width);
  flex: 1;
  padding: 3.5rem 4rem 3.5rem 3.5rem;
  max-width: 860px;
}

/* ─── Page Header ───────────────────────────────────────────────── */
.page-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #eef2f8;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.page-header .subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

/* ─── About / Index Page ────────────────────────────────────────── */
.about-hero {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.about-hero img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.about-hero-text h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #eef2f8;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.about-hero-text .role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.tag.accent {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: rgba(224, 123, 57, 0.07);
}

.tag i {
  font-size: 0.95em;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.about-bio {
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.about-bio p + p {
  margin-top: 1rem;
}

/* ─── Tech Stack ────────────────────────────────────────────────── */
.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 1.25rem;
}

.stack-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stack-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.stack-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  min-width: 180px;
  flex-shrink: 0;
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* ─── Certifications ─────────────────────────────────────────────── */
.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cert-list li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.cert-list li a:hover {
  color: var(--accent);
}

.cert-list li::before {
  content: "→ ";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ─── Career Page ───────────────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}

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

.timeline-item:last-child::before {
  display: none;
}

.timeline-date {
  text-align: right;
  padding-top: 2px;
}

.timeline-date .year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.timeline-dot {
  position: absolute;
  left: 143px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-body {
  padding-left: 1.25rem;
}

.timeline-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #eef2f8;
  margin-bottom: 0.15rem;
}

.timeline-body .company {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.timeline-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-body ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.6;
}

.timeline-body ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ─── Contact Page ──────────────────────────────────────────────── */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

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

.contact-card svg {
  color: var(--accent);
  flex-shrink: 0;
}

.contact-card-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.contact-card-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ─── Footer ────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  .sidebar-nav {
    flex-direction: row;
    flex: none;
    width: 100%;
  }

  .sidebar-nav li a {
    padding: 0.4rem 0.65rem;
  }

  .sidebar-links {
    flex-direction: row;
    border-top: none;
    border-left: 1px solid var(--border);
    padding-top: 0;
    padding-left: 1rem;
  }

  .main-content {
    margin-left: 0;
    padding: 2rem 1.25rem;
  }

  body { flex-direction: column; }

  .about-hero { flex-direction: column; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-item::before { display: none; }
  .timeline-dot { display: none; }
  .timeline-date { text-align: left; }
  .timeline-body { padding-left: 0; }
}
