:root {
  --bg: #08050f;
  --panel: rgba(20, 12, 35, .72);
  --panel-solid: #120b20;
  --purple: #8b5cf6;
  --purple-bright: #a78bfa;
  --purple-dark: #5b21b6;
  --text: #f8f7ff;
  --muted: #aaa2bd;
  --line: rgba(167, 139, 250, .16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ============================
   BACKGROUND
   ============================ */

.bg-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .16;
  pointer-events: none;
  z-index: -1;
}

.glow-one {
  background: #7c3aed;
  top: -180px;
  left: -160px;
}

.glow-two {
  background: #c084fc;
  right: -220px;
  top: 35%;
}


/* ============================
   NAVBAR
   ============================ */

.navbar {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  letter-spacing: -.03em;
}

nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  transition: .2s;
}

nav a:hover {
  color: var(--text);
}


/* ============================
   MAIN
   ============================ */

main {
  width: min(1120px, calc(100% - 36px));
  margin: auto;
}


/* ============================
   HERO
   ============================ */

.hero {
  padding: 105px 0 70px;
  max-width: 800px;
}

.eyebrow {
  color: var(--purple-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  margin-bottom: 15px;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 88px);
  line-height: .98;
  letter-spacing: -.065em;
  max-width: 900px;
}

.hero h1 span {
  color: var(--purple-bright);
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 650px;
  margin-top: 25px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  transition: .2s;
  border: 1px solid var(--line);
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border-color: transparent;
}

.secondary {
  background: rgba(255, 255, 255, .025);
}


/* ============================
   STATS
   ============================ */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 15px 0 120px;
}

.stat {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  padding: 23px;
  border-radius: 18px;
}

.stat strong {
  display: block;
  font-size: 30px;
  letter-spacing: -.04em;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}


/* ============================
   SECTIONS
   ============================ */

.section {
  padding: 35px 0 110px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 28px;
}

.section h2 {
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -.05em;
}

.section-heading p {
  color: var(--muted);
}


/* ============================
   PROJECT CATEGORIES
   ============================ */

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tab {
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  transition: .2s;
}

.tab.active,
.tab:hover {
  color: white;
  background: rgba(139, 92, 246, .15);
  border-color: rgba(167, 139, 250, .35);
}


/* ============================
   PROJECTS
   ============================ */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  transition: .25s;
}

.project:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 139, 250, .34);
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #170d27;
}

.project-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(139, 92, 246, .3),
      transparent 55%
    ),
    #130b21;
  color: #c4b5fd;
  font-weight: 800;
  letter-spacing: .08em;
}

.project-body {
  padding: 21px;
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.project h3 {
  font-size: 19px;
}

.project-category {
  color: var(--purple-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  margin: 10px 0 17px;
}

.project-link {
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.project-link:hover {
  color: var(--purple-bright);
}


/* ============================
   DISCORD SERVERS
   ============================ */

.discord-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.discord-tab {
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  transition: .2s;
}

.discord-tab:hover,
.discord-tab.active {
  color: white;
  background: rgba(139, 92, 246, .15);
  border-color: rgba(167, 139, 250, .35);
}

.discord-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.discord-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  transition: .25s;
}

.discord-card:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 139, 250, .34);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

.discord-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #170d27;
}

.discord-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(139, 92, 246, .3),
      transparent 55%
    ),
    #130b21;
  color: #c4b5fd;
  font-weight: 800;
  letter-spacing: .08em;
}

.discord-body {
  padding: 21px;
}

.discord-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.discord-top h3 {
  font-size: 19px;
  line-height: 1.3;
}

.discord-type {
  flex-shrink: 0;
  color: var(--purple-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: right;
}

.discord-body p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  margin: 10px 0 17px;
}

.discord-link {
  color: white;
  font-size: 13px;
  font-weight: 700;
  transition: .2s;
}

.discord-link:hover {
  color: var(--purple-bright);
}


/* ============================
   ABOUT
   ============================ */

.about-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(
      135deg,
      rgba(139, 92, 246, .12),
      rgba(255, 255, 255, .025)
    );
  padding: clamp(25px, 5vw, 50px);
}

.about-card {
  max-width: 850px;
}

.about-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 700px;
  margin-top: 16px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.skill {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  color: #ddd6fe;
  background: rgba(255, 255, 255, .025);
}


/* ============================
   CONTACT
   ============================ */

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}


/* ============================
   FOOTER
   ============================ */

footer {
  width: min(1120px, calc(100% - 36px));
  margin: auto;
  padding: 28px 0 45px;
  border-top: 1px solid var(--line);
  color: #756d83;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}


/* ============================
   EMPTY
   ============================ */

.empty {
  padding: 55px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  grid-column: 1 / -1;
}


/* ============================
   MOBILE
   ============================ */

@media (max-width: 700px) {

  nav {
    display: none;
  }

  .hero {
    padding-top: 70px;
  }

  .stats,
  .project-grid,
  .discord-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .contact-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-card .button {
    width: 100%;
    justify-content: center;
  }

  .discord-top {
    flex-direction: column;
    gap: 7px;
  }

  .discord-type {
    text-align: left;
  }
}