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

:root {
  --bg: #111;
  --sidebar-bg: #1a1a1a;
  --accent: #f0c040;
  --text: #e0e0e0;
  --muted: #888;
  --border: #2a2a2a;
  --card-bg: #1e1e1e;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto;
  border: 3px solid var(--accent);
}

.sidebar-name {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0.75rem;
}

.sidebar-title {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--border);
}

.info-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
}

.info-table tr td { padding: 0.3rem 0; }
.info-table td:first-child { color: var(--muted); width: 50%; }
.info-table td:last-child { text-align: right; color: var(--text); }

.skills-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.skill-bar { margin-bottom: 0.75rem; }

.skill-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.skill-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}

.skill-bar-fill {
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: auto;
}

.social-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s;
}

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

/* ── Layout ── */
.layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── Top Nav ── */
.topnav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--sidebar-bg);
  padding: 0 2rem;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.topnav a:hover { color: var(--text); }
.topnav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Main ── */
.main {
  flex: 1;
  padding: 2.5rem 3rem;
  max-width: 900px;
}

/* ── Hero ── */
.hero {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.hero-greeting {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero h1 span { color: var(--accent); }

.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.hero-cta:hover { opacity: 0.85; }

/* ── Stats ── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

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

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

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

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.see-all {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.see-all:hover { text-decoration: underline; }

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s;
  display: block;
}

.project-card:hover { border-color: var(--accent); }
.project-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.project-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  background: var(--border);
  color: var(--muted);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.6rem;
  margin-right: 0.25rem;
}

/* ── Experience ── */
.timeline-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.timeline-content h3 { font-size: 0.95rem; font-weight: 700; }
.timeline-content .timeline-meta { font-size: 0.8rem; color: var(--muted); margin: 0.2rem 0 0.4rem; }
.timeline-content p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* ── Responsive ── */
@media (max-width: 768px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; min-height: auto; position: static; height: auto; }
  .main { padding: 1.5rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
