:root {
  --bg: #ffffff;
  --text: #111111;
  --card: #f6f6f6;
  --border: #cccccc;
  --accent: #1a73e8;
  --badge-bg: #e0e0e0;
  --badge-text: #111111;
}

.dark {
  --bg: #111111;
  --text: #eeeeee;
  --card: #1d1d1d;
  --border: #444444;
  --accent: #3ea6ff;
  --badge-bg: #333333;   /* flips to darker */
  --badge-text: #f1f1f1; /* flips to lighter */
}

body {
  font-family: Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  max-width: 960px;
  margin: auto;
  padding: 2rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  display: inline-block;
  background: #e0e0e0;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 999px;
  margin-right: 6px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: 0.2s;
}

#theme-toggle:hover {
  background: var(--border);
}


.project-grid .card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 999px;
  margin-right: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
