:root {
  --bg: #0f1115;
  --bg-panel: #14171d;
  --border: #262a33;
  --text: #e7e9ee;
  --text-dim: #9aa1ac;
  --accent: #5ec9a8;
  --accent-dim: #3c8a70;
  --radius: 8px;
  --sidebar-width: 220px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

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

/* LAYOUT */
.layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  padding: 28px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 36px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}

.nav-link::before {
  content: "# ";
  color: var(--accent-dim);
}

.nav-link:hover {
  background: #1b1f27;
  color: var(--text);
  text-decoration: none;
}

.nav-link.active {
  background: #1b1f27;
  color: var(--accent);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

/* CONTENT */
.content {
  flex: 1;
  padding: 60px 60px 40px;
  max-width: 820px;
}

.section {
  margin-bottom: 90px;
  scroll-margin-top: 40px;
}

.section h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

.section h2 {
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--accent);
}

.section h2::before {
  content: "## ";
  color: var(--accent-dim);
}

.subtitle {
  color: var(--text-dim);
  margin-bottom: 20px;
  font-size: 16px;
}

.section p {
  color: var(--text-dim);
  max-width: 640px;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.skill-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.skill-card h3 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}

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

/* PROJECTS */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s;
}

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

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.project-header h3 {
  font-size: 16px;
  color: var(--text);
}

.project-links {
  display: flex;
  gap: 14px;
  font-size: 13px;
}

.tags {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 3px 8px;
  border-radius: 999px;
}

/* EXPERIENCE / TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-left: 2px solid var(--border);
  padding-left: 20px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-date {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.timeline-item h3 {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

/* CONTACT */
.contact-links {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--text-dim);
  font-size: 12px;
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .content {
    padding: 80px 24px 40px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 90;
    box-shadow: 2px 0 12px rgba(0,0,0,0.4);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .layout {
    flex-direction: column;
  }
}
