:root {
  --bg: #000;
  --fg: #f2f2f2;
  --muted: #8a8a8a;
  --line: #222;
}
* { box-sizing: border-box; margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 64px;
  padding: 64px;
  align-items: center;
}
.profile { text-align: center; }
.profile img {
  width: 220px; height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
}
.profile h1 { margin-top: 24px; font-size: 1.6rem; letter-spacing: .02em; }
.profile p { margin-top: 8px; color: var(--muted); }

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  --accent: #7c8cff;
  padding: 28px;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.card img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }
.card h2 { font-size: 1.4rem; }
.card p { margin-top: 6px; font-size: .9rem; color: var(--muted); }
.card:nth-child(1) { --accent: #7c8cff; }
.card:nth-child(2) { --accent: #4de0c4; }
.card:nth-child(3) { --accent: #ff7ce0; }
.card:nth-child(4) { --accent: #ffc857; }

@media (max-width: 800px) {
  body { grid-template-columns: 1fr; padding: 32px 16px; gap: 40px; }
  .projects { grid-template-columns: 1fr; }
}
