/* ───────── RESET ───────── */
* {
  box-sizing: border-box;
}

:root {
  --bg: #000;
  --panel: #0a0a0a;
  --border: #141414;
  --text: #eaeaea;
  --muted: #6a6a6a;
  --accent: #4fd1ff;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(#0b0b0b 1px, transparent 1px),
    linear-gradient(90deg, #0b0b0b 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.15;
  pointer-events: none;
}

/* ───────── TOP BAR ───────── */
.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.brand:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}

.topbar-right {
  display: flex;
  gap: 20px;
}

.topbar-right a {
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.2s ease;
}

.topbar-right a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 1px;
}

.topbar-right a:hover::after {
  width: 100%;
  left: 0;
}

.topbar-right a:hover {
  color: var(--accent);
}

/* ───────── MAIN ───────── */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 24px;
  animation: rise 0.8s cubic-bezier(.2, .8, .2, 1) forwards;
  opacity: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.subtitle {
  margin-top: 10px;
  color: var(--muted);
  max-width: 520px;
}

.links {
  margin-top: 18px;
  display: flex;
  gap: 20px;
}

.links a {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
}

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

/* ───────── CARDS ───────── */
.cards {
  display: flex;
  gap: 28px;
  margin-top: 64px;
}

.card {
  position: relative;
  background: linear-gradient(180deg, #0a0a0a, #050505);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  min-width: 260px;
  transition: transform 0.4s ease, border 0.4s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%),
      rgba(79, 209, 255, 0.12),
      transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease, background-position 0.1s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #1f1f1f;
}

.card:hover::after {
  opacity: 1;
}

.card-title {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.stack {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stack small {
  font-size: 0.65rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.stack p {
  margin: 4px 0 0;
  font-size: 0.9rem;
}

/* ───────── STATUS ───────── */
.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.muted {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ───────── PROJECTS ───────── */
.projects-link {
  display: inline-block;
  margin-top: 56px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.projects-link:hover {
  color: var(--accent);
}

/* ───────── PROJECT CARDS ───────── */
.projects-page .card {
  overflow: hidden;
}

.projects-page .card:hover {
  transform: translateY(-8px);
}

.projects-page .card p {
  color: var(--muted);
}

.projects-page .card-button {
  position: absolute;
  inset: auto 18px 18px auto;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.projects-page .card:hover .card-button {
  opacity: 1;
}

.projects-page .card-button:hover {
  background: var(--accent);
  color: #000;
}

.card-link,
.card-link * {
  color: inherit;
  text-decoration: none;
}

/* ───────── PROJECTS SECTION ───────── */
.projects-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.projects-page .card {
  overflow: hidden;
  transition: transform 0.3s ease, border 0.3s ease;
}

.projects-page .card.hover,
.projects-page .card:hover {
  transform: scale(1.05);
  border-color: #1f1f1f;
}

.card-category {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #000;
}

.card-category.vs {
  background-color: #8A2BE2;
  color: #FFF;
}

.card-category.roblox {
  background-color: #e2231a;
  color: #FFF;
}

.card-category.py {
  background-color: #20B2AA;
  color: #fff;
}

.card-category.js {
  background-color: #F0DB4F;
  color: #000;
}

.card-category.default {
  background-color: #444;
  color: #fff;
}

.card-role,
.card-info {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
}

.card-role strong,
.card-info strong {
  color: var(--accent);
}

.card-game-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 2px;
  color: var(--text);
}

.project-filters {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.project-filters button {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project-filters button:hover,
.project-filters button.active {
  background: var(--accent);
  color: #000;
  transform: scale(1.05);
}

.project-group {
  margin-top: 64px;
}

.project-group h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.project-group .project-filters {
  margin-bottom: 24px;
}
