@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #080c12;
  --bg2: #0d1420;
  --bg3: #111926;
  --surface: #141e2e;
  --surface2: #1a2640;
  --border: #1e2f47;
  --border-bright: #2a4060;
  --text: #d8e8f5;
  --text-muted: #6a88a8;
  --text-dim: #3a5470;
  --accent: #4fc3f7;
  --accent2: #80deea;
  --accent-glow: rgba(79, 195, 247, 0.15);
  --accent-glow2: rgba(79, 195, 247, 0.05);
  --snow: #e8f4fd;
  --red: #ef5350;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(8, 12, 18, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  gap: 2rem;
}

nav .logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none;
}
nav .logo img {
  height: 36px; width: auto;
  filter: drop-shadow(0 0 8px rgba(79,195,247,0.4));
}
nav .logo span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--snow);
}

nav .links {
  display: flex; gap: 0.25rem; margin-left: auto;
  list-style: none;
}
nav .links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0.6rem;
  white-space: nowrap;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
nav .links a:hover, nav .links a.active {
  color: var(--accent);
  background: var(--accent-glow2);
}

nav .discord-btn {
  margin-left: 0.5rem;
  background: var(--accent);
  color: var(--bg) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.1rem !important;
}
nav .discord-btn:hover {
  background: var(--accent2) !important;
  color: var(--bg) !important;
}

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: all 0.3s; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,195,247,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(26,38,64,0.9) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(13,20,32,0.8) 0%, transparent 60%);
}

.hero-banner {
  position: absolute; inset: 0; z-index: 0;
}
.hero-banner img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0.22;
  filter: saturate(0.6) brightness(0.8);
}
.hero-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(8,12,18,0.3) 0%,
    rgba(8,12,18,0.1) 40%,
    rgba(8,12,18,0.7) 75%,
    rgba(8,12,18,1) 100%
  );
}

/* snow particles */
.snowflakes {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.snowflake {
  position: absolute; top: -10px;
  background: white; border-radius: 50%;
  opacity: 0;
  animation: fall linear infinite;
}

@keyframes fall {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(110vh) translateX(40px); opacity: 0; }
}

.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
  padding: 0 1.5rem;
  animation: heroIn 1s ease both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-bright);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  background: var(--accent-glow2);
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  color: var(--snow);
  text-shadow: 0 0 60px rgba(79,195,247,0.3), 0 2px 4px rgba(0,0,0,0.8);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 520px;
  font-weight: 300;
}

.hero-buttons {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,195,247,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  animation: bounce 2s ease infinite;
}
.scroll-hint span { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); }
.scroll-hint svg { color: var(--text-dim); }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ─── SECTIONS ─── */
section { padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem); }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.04em;
  color: var(--snow);
  line-height: 1;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  max-width: 500px;
}

/* ─── GAMES GRID ─── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(79,195,247,0.12);
}
.game-card-img {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  position: relative;
}
.game-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.game-card:hover .game-card-img img { transform: scale(1.04); }
.game-card-img .badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(8,12,18,0.85); backdrop-filter: blur(8px);
  border: 1px solid var(--border-bright);
  border-radius: 6px; padding: 0.2rem 0.6rem;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}
.game-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.game-card-body h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.05em; color: var(--snow); }
.game-card-body p { color: var(--text-muted); font-size: 0.9rem; font-weight: 300; flex: 1; }
.game-card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--accent); font-size: 0.78rem; font-weight: 600; text-decoration: none;
  margin-top: auto;
}
.game-card-link svg { transition: transform 0.2s; }
.game-card:hover .game-card-link svg { transform: translateX(4px); }

/* coming soon card */
.game-card.coming-soon { opacity: 0.6; cursor: default; }
.game-card.coming-soon:hover { transform: none; border-color: var(--border); box-shadow: none; }

/* ─── BANNER / GALLERY ─── */
.gallery-strip {
  display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem;
  scrollbar-width: thin;
  margin-top: 3rem;
}
.gallery-strip img {
  height: 220px; width: auto; border-radius: 12px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: opacity 0.2s, border-color 0.2s;
  cursor: pointer;
}
.gallery-strip img:hover { opacity: 0.85; border-color: var(--accent); }

/* ─── STATS ROW ─── */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  margin-top: 5rem;
  background: var(--border);
}
.stat-item {
  background: var(--surface);
  padding: 2rem 1.5rem;
  text-align: center;
}
.stat-item .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
}
.stat-item .label {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); margin-top: 0.3rem;
}

/* ─── TEAM / ABOUT ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.bio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.bio-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.bio-card:hover { border-color: var(--border-bright); transform: translateY(-4px); }
.bio-card:hover::before { opacity: 1; }

.bio-avatar {
  width: 90px; height: 90px; border-radius: 12px;
  border: 2px solid var(--border-bright);
  object-fit: cover;
  transition: border-color 0.3s;
}
.bio-card:hover .bio-avatar { border-color: var(--accent); }

.bio-card .name { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.05em; color: var(--snow); }
.bio-card .role {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); font-family: 'Space Mono', monospace;
}
.bio-card .discord-tag { color: var(--text-dim); font-size: 0.78rem; }
.bio-card .roblox-tag { color: var(--text-muted); font-size: 0.78rem; }
.bio-card .bio-text { color: var(--text-muted); font-size: 0.88rem; font-weight: 300; line-height: 1.6; margin-top: 0.25rem; }

.bio-links { display: flex; gap: 0.5rem; margin-top: 0.25rem; }
.bio-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--text-dim); font-size: 0.75rem; text-decoration: none;
  padding: 0.3rem 0.7rem; border: 1px solid var(--border);
  border-radius: 6px; transition: all 0.2s;
}
.bio-link:hover { color: var(--accent); border-color: var(--accent); }

/* ─── NEWS ─── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
}
.news-card:hover { border-color: var(--border-bright); transform: translateY(-3px); }
.news-date { font-family: 'Space Mono', monospace; font-size: 0.68rem; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.news-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: 0.04em; color: var(--snow); margin-bottom: 0.5rem; }
.news-card p { color: var(--text-muted); font-size: 0.88rem; font-weight: 300; line-height: 1.6; }
.news-tag {
  display: inline-block; margin-top: 1rem;
  background: var(--accent-glow2); border: 1px solid var(--border-bright);
  color: var(--accent); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 100px;
}

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.contact-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.04em; color: var(--snow); }
.contact-card p { color: var(--text-muted); font-size: 0.9rem; font-weight: 300; }
.contact-card .big-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg3); border: 1px solid var(--border-bright);
  border-radius: 10px; text-decoration: none; color: var(--text);
  font-weight: 500; transition: all 0.2s; margin-top: auto;
}
.contact-card .big-link:hover { border-color: var(--accent); color: var(--accent); }
.contact-card .big-link svg { color: var(--accent); flex-shrink: 0; }

/* ─── HERO PAGE HEADER ─── */
.page-header {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 3rem;
  padding-left: clamp(1.5rem, 5vw, 4rem);
  padding-right: clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(79,195,247,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }

/* ─── DIVIDER ─── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
footer .footer-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
footer .footer-logo img { height: 28px; opacity: 0.7; }
footer .footer-logo span { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 0.08em; color: var(--text-dim); }
footer p { color: var(--text-dim); font-size: 0.78rem; }
footer .footer-links { display: flex; gap: 1.5rem; }
footer .footer-links a { color: var(--text-dim); font-size: 0.78rem; text-decoration: none; transition: color 0.2s; }
footer .footer-links a:hover { color: var(--accent); }

/* ─── MOBILE ─── */
@media (max-width: 1024px) {
  nav .links { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; flex-direction: column; background: rgba(8,12,18,0.97); padding: 2rem; gap: 0.5rem; }
  nav .links.open { display: flex; }
  nav .links a { font-size: 1.1rem; padding: 0.75rem 1rem; }
  .hamburger { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ─── FADE IN ─── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }