: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;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.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; }

.cv-link {
  margin-top: auto;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.cv-link:hover { text-decoration: underline; }

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

.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: 1.5rem;
  display: inline-block;
}

.project-card {
  background: #fff;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.project-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.tech-tag {
  background: rgba(45, 212, 191, 0.12);
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.project-card p { line-height: 1.6; color: var(--text-dark); margin-bottom: 1rem; }

.card-links { display: flex; gap: 1rem; align-items: center; }
.demo-link {
  background: var(--accent);
  color: var(--sidebar-bg);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: opacity 0.15s;
}
.demo-link:hover { opacity: 0.85; }

.source-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.source-link:hover { color: var(--text-dark); text-decoration: underline; }

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