:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --text: #202123;
  --muted: #6e6e80;
  --accent: #10a37f;
  --accent-light: #d9f5ec;
  --border: #e5e5e5;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.layout {
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px;
  min-height: 100vh;
}

/* Left sidebar */
.sidebar-left {
  position: sticky;
  top: 28px;
  height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 32px;
}

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

.tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}

.tab:hover { background: rgba(0,0,0,0.03); color: var(--text); }
.tab.active { background: var(--accent-light); color: var(--accent); }

.tab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.sidebar-footer a:hover { color: var(--text); }
.sidebar-footer svg { width: 18px; height: 18px; }

/* Main content */
.content { min-width: 0; }

.panel { display: none; animation: fade 0.25s ease; }
.panel.active { display: block; }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 28px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover { filter: brightness(1.05); }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover { background: rgba(0,0,0,0.02); }

/* Cards */
.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card, .project-card, .placeholder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

.project-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.project-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.project-card a:hover { text-decoration: underline; }

.project-card.placeholder { opacity: 0.7; }

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.section h2 { margin-top: 0; font-size: 1.5rem; }
.section-lead { color: var(--muted); margin: 0 0 24px; max-width: 700px; }

/* Timeline */
.timeline { border-left: 2px solid var(--border); margin-left: 8px; padding-left: 24px; }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}

.year {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.details h3 { margin: 0 0 6px; font-size: 1.05rem; }
.details p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.full-list { margin-top: 24px; }
.full-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.placeholder-card {
  text-align: center;
  color: var(--muted);
  padding: 48px 24px;
}

/* Right sidebar */
.sidebar-right {
  position: sticky;
  top: 28px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), #ffffff);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0 auto 18px;
  border: 3px solid var(--surface);
  box-shadow: 0 4px 16px rgba(16, 163, 127, 0.14);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-card h1 { margin: 0; font-size: 1.5rem; }
.role { margin: 4px 0 2px; color: var(--text); font-weight: 600; }
.tagline { margin: 0 0 18px; color: var(--muted); font-size: 0.9rem; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.profile-stats div {
  background: var(--bg);
  border-radius: 10px;
  padding: 10px;
}

.profile-stats strong { display: block; font-size: 1.1rem; color: var(--accent); }
.profile-stats span { font-size: 0.75rem; color: var(--muted); }

.bio { text-align: left; color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.bio p { margin: 0 0 10px; }

.profile-section { text-align: left; margin-top: 22px; }
.profile-section h3 { font-size: 0.95rem; margin: 0 0 12px; color: var(--text); }

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { margin-bottom: 12px; font-size: 0.9rem; }
.plain-list strong { color: var(--text); }
.plain-list span { color: var(--muted); font-size: 0.85rem; }

.skills { display: flex; flex-wrap: wrap; gap: 6px; }
.skills span {
  background: var(--bg);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.contact-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  word-break: break-word;
}

/* Responsive */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 200px 1fr; }
  .sidebar-right { display: none; }
}

@media (max-width: 800px) {
  .layout {
    display: flex;
    flex-direction: column;
    padding: 16px;
  }
  .sidebar-left {
    position: static;
    height: auto;
  }
  .tabs {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
  }
  .tab {
    white-space: nowrap;
    width: auto;
    flex: 0 0 auto;
  }
  .sidebar-footer { display: none; }
  .hero { padding: 28px; }
  .hero h1 { font-size: 2rem; }
}
