﻿:root {
  --bg-main: #0a0a0a;
  --bg-alt: #111111;
  --purple-main: #7a00ff;
  --purple-deep: #5d00c2;
  --violet-intense: #9f3dff;
  --blue-violet: #4a6cff;
  --text-main: #e7e3f4;
  --text-soft: #9e95bc;
  --line: rgba(138, 70, 255, 0.3);
  --panel: rgba(18, 14, 28, 0.82);
  --online: #20d37b;
  --idle: #ffbf3f;
  --dnd: #ff5f5f;
  --offline: #5f6478;

  --glow-soft: 0 0 16px rgba(122, 0, 255, 0.35);
  --glow-strong: 0 0 28px rgba(122, 0, 255, 0.55);
  --radius: 14px;
  --container: 1140px;
}

:root.neon-mode {
  --glow-soft: 0 0 22px rgba(159, 61, 255, 0.55);
  --glow-strong: 0 0 36px rgba(159, 61, 255, 0.75);
  --line: rgba(184, 94, 255, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Rajdhani", sans-serif;
  background: radial-gradient(1200px 700px at 15% 0%, rgba(122, 0, 255, 0.17), transparent 60%),
    radial-gradient(900px 500px at 85% 10%, rgba(74, 108, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-main), var(--bg-alt));
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.fog {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.fog-a {
  width: 380px;
  height: 380px;
  top: -80px;
  right: -120px;
  background: rgba(122, 0, 255, 0.18);
  animation: driftA 18s ease-in-out infinite;
}

.fog-b {
  width: 420px;
  height: 420px;
  left: -160px;
  top: 35vh;
  background: rgba(74, 108, 255, 0.15);
  animation: driftB 22s ease-in-out infinite;
}

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.62);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(122, 0, 255, 0.35));
}

.brand-text,
.hero h1,
.section-title,
.server-card h3,
.project-card h3 {
  font-family: "Orbitron", sans-serif;
}

.brand-text {
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.nav-menu a {
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.nav-menu a:hover {
  color: var(--violet-intense);
  text-shadow: var(--glow-soft);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-main), var(--blue-violet));
  transition: width 180ms ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.join-link {
  border: 1px solid var(--line);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--text-main);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section {
  padding: 5.5rem 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 74px;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(122, 0, 255, 0.22), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(74, 108, 255, 0.16), transparent 40%);
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 8vw, 6rem);
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: var(--glow-strong);
}

.hero-subtitle {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 2.8vw, 1.5rem);
  color: #c7bde6;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-metrics {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 0.7rem;
}

.hero-metric {
  border: 1px solid var(--line);
  background: rgba(18, 14, 28, 0.65);
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
}

.hero-metric p {
  color: var(--text-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-metric strong {
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.72rem 1.15rem;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--purple-main), var(--violet-intense));
  color: #fff;
  box-shadow: var(--glow-soft);
}

.btn-primary:hover {
  box-shadow: var(--glow-strong);
}

.btn-outline {
  border-color: var(--line);
  background: rgba(122, 0, 255, 0.08);
}

.btn-outline:hover {
  border-color: var(--violet-intense);
  box-shadow: var(--glow-soft);
}

.btn-card {
  margin-top: 1rem;
  background: rgba(122, 0, 255, 0.18);
  border-color: rgba(122, 0, 255, 0.4);
  color: var(--text-main);
}

.btn-small {
  font-size: 0.88rem;
  padding: 0.55rem 0.9rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 20px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  transform: translateX(-50%);
}

.scroll-indicator::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 7px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: var(--violet-intense);
  animation: wheel 1.5s infinite;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.section-subtitle {
  margin-top: -1.1rem;
  margin-bottom: 1.1rem;
  color: var(--text-soft);
  max-width: 700px;
}

.section-servers {
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.6), rgba(10, 10, 10, 0.4));
}

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

.section-projects .projects-grid {
  max-width: 420px;
}

.server-card,
.project-card,
.stat-card,
.community-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.server-card {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 250px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.server-card:hover {
  border-color: var(--violet-intense);
  box-shadow: var(--glow-soft);
  transform: translateY(-3px);
}

.server-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.server-card h3 {
  font-size: 1rem;
}

.server-game {
  border: 1px solid rgba(159, 61, 255, 0.45);
  border-radius: 999px;
  padding: 0.24rem 0.55rem;
  font-size: 0.76rem;
  white-space: nowrap;
  color: #ccb8ff;
}

.server-state {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--online);
  font-weight: 600;
}

.server-state.offline {
  color: #ff8181;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.status-dot.online {
  color: var(--online);
  background: var(--online);
  animation: pulse 1.8s infinite;
}

.status-dot.offline {
  color: #ff5f5f;
  background: #ff5f5f;
  box-shadow: 0 0 8px rgba(255, 95, 95, 0.6);
}

.server-extra {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.server-note {
  margin-top: 0.2rem;
  min-height: 1.2rem;
  color: #ad9ccf;
  font-size: 0.78rem;
}

.server-ip {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.server-ip span {
  color: #d8cdff;
}

.server-ip code {
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
}

.server-actions {
  margin-top: auto;
  padding-top: 0.8rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.section-community {
  background: linear-gradient(180deg, rgba(15, 10, 24, 0.8), rgba(10, 10, 10, 0.7));
}

.community-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-card {
  padding: 1rem;
}

.stat-label {
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.73rem;
}

.stat-value {
  margin-top: 0.35rem;
  font-size: 1.55rem;
  font-weight: 700;
  text-shadow: var(--glow-soft);
}

.widget-updated {
  color: var(--text-soft);
  font-size: 0.84rem;
  margin-bottom: 0.8rem;
}

.community-panel {
  padding: 1rem;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.panel-top h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
}


.discord-error {
  background: rgba(255, 95, 95, 0.14);
  border: 1px solid rgba(255, 95, 95, 0.4);
  padding: 0.65rem;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  color: #ffd8d8;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}


.member-card {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0.6rem;
  border: 1px solid rgba(122, 0, 255, 0.22);
  border-radius: 12px;
  background: rgba(14, 10, 22, 0.8);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.member-card:hover {
  border-color: var(--violet-intense);
  box-shadow: var(--glow-soft);
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(159, 61, 255, 0.4);
}

.member-info {
  min-width: 0;
  flex: 1;
}

.member-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-status {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.member-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.member-indicator.online { background: var(--online); }
.member-indicator.idle { background: var(--idle); }
.member-indicator.dnd { background: var(--dnd); }
.member-indicator.offline { background: var(--offline); }

.loading-text {
  color: var(--text-soft);
  padding: 0.8rem;
}


.section-projects {
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.75), rgba(10, 10, 10, 0.9));
}

.projects-intro {
  margin-top: -0.8rem;
  margin-bottom: 1.25rem;
  color: var(--text-soft);
  max-width: 680px;
}

.project-card {
  padding: 1rem;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.7rem;
  border-color: rgba(122, 0, 255, 0.35);
  background:
    linear-gradient(160deg, rgba(122, 0, 255, 0.12), rgba(74, 108, 255, 0.06)),
    var(--panel);
}

.project-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 62px;
  height: 62px;
  border-top: 2px solid rgba(159, 61, 255, 0.65);
  border-left: 2px solid rgba(159, 61, 255, 0.65);
  border-top-left-radius: 12px;
  opacity: 0.85;
}

.project-card::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 62px;
  height: 62px;
  border-right: 2px solid rgba(74, 108, 255, 0.5);
  border-bottom: 2px solid rgba(74, 108, 255, 0.5);
  border-bottom-right-radius: 12px;
  opacity: 0.75;
}

.project-card h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-card p {
  color: var(--text-soft);
}

.project-type {
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #cdbbff;
}

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.project-tags span {
  border: 1px solid rgba(159, 61, 255, 0.45);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  font-size: 0.72rem;
  color: #cfbfff;
}

.project-meter {
  margin-top: 0.15rem;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.project-meter span {
  display: block;
  height: 100%;
  width: var(--meter, 70%);
  background: linear-gradient(90deg, var(--purple-main), var(--blue-violet));
  box-shadow: var(--glow-soft);
}

.event-list {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.event-list li {
  color: #c9bde8;
  font-size: 0.94rem;
  border-left: 2px solid rgba(159, 61, 255, 0.45);
  padding-left: 0.5rem;
}

.footer {
  border-top: 1px solid var(--line);
  background: #0a0a0a;
  padding: 1.4rem 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
}

.footer-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.footer a {
  color: var(--violet-intense);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

@keyframes wheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 0; }
}

@keyframes driftA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 20px); }
}

@keyframes driftB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, -30px); }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 74px;
    left: 1rem;
    right: 1rem;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu.open {
    display: flex;
  }

  .community-head {
    flex-wrap: wrap;
  }

  #particleCanvas {
    opacity: 0.32;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.3rem, var(--container));
  }

  .brand-text {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .panel-top {
    flex-wrap: wrap;
  }
}
