:root{
  --bg: #0b0b0c;
  --surface: #121214;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #c7b8ff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --border-subtle: rgba(255,255,255,.08);
}

* { box-sizing:border-box; }
html, body { margin:0; padding:0; font-family:"Inter", sans-serif; background:var(--bg); color:var(--text); line-height:1.6; }

.topbar {
  padding: 24px 20px;
  text-align:center;
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
}

.section {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

.projects-grid {
  display:grid;
  gap:24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}

.card .thumb {
  width:100%;
  height:180px;
  overflow:hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.card .thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: transform .45s ease;
}

.card:hover .thumb img {
  transform: scale(1.05);
}

.pad {
  padding:20px;
}

.card h2 {
  margin:0 0 10px;
  font-size:20px;
  font-weight:600;
}

.card p {
  margin:0 0 12px;
  color: var(--muted);
}

.btn {
  display:inline-block;
  padding:10px 16px;
  border-radius:999px;
  background: var(--accent);
  color:#0b0b0c;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  transition: background .2s ease, transform .2s ease;
}

.btn:hover {
  background:#e6dbff;
  transform: translateY(-2px);
}

footer {
  text-align:center;
  padding:30px 20px;
  color:var(--muted);
  font-size:14px;
}
