/* 
   voltx.css    Gaming design system  |  VoltX Site
   Fonts : Orbitron (display) + Inter (body)
   Accent: #9041f5 purple  /  #00d4ff cyan highlights
    */

/*  Variables  */
:root {
  --vx-bg:       #07070c;
  --vx-surface:  #0e0e1a;
  --vx-border:   rgba(255,255,255,0.07);
  --vx-accent:   #9041f5;
  --vx-accent-2: #5c6ef5;
  --vx-cyan:     #00d4ff;
  --vx-glow:     rgba(144,65,245,0.32);
  --vx-text:     #eeeef5;
  --vx-muted:    rgba(238,238,245,0.42);
  --vx-green:    #39ff8e;
  --vx-ease:     cubic-bezier(0.22,0.8,0.22,1);
  --nav-h:       62px;
}

/*  Reset  */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--vx-bg);
  color: var(--vx-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Custom Gaming Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #07070c;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--vx-accent) 0%, var(--vx-cyan) 100%);
  border-radius: 10px;
  border: 2px solid #07070c;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--vx-cyan) 0%, var(--vx-accent) 100%);
}

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

/*  Ambient background  */
.vx-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.vx-page-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at -5% -5%,  rgba(144,65,245,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 700px 500px at 108% 5%,  rgba(92,110,245,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 600px 500px at 50%  110%, rgba(0,212,255,0.06)  0%, transparent 65%);
}

/* subtle moving grid */
.vx-page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(144,65,245,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(144,65,245,0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  animation: vxGridDrift 18s linear infinite;
  opacity: 0.55;
}

/* Page Scanline Overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
  opacity: 0.15;
}

/* 
   NAV    3-column layout
   [Logo]   [centered links]   [actions]
    */
.vx-nav {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  background: rgba(7,7,12,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--vx-border);
}

/* animated accent line at bottom of nav */
.vx-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(144,65,245,0.6) 30%,
    rgba(0,212,255,0.6) 50%,
    rgba(144,65,245,0.6) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: vxNavLine 4s linear infinite;
}

/*  Logo (left col)  */
.vx-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
}

.vx-logo img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(144,65,245,0.5));
  transition: filter 0.3s ease;
}

.vx-logo:hover img {
  filter: drop-shadow(0 0 14px rgba(0,212,255,0.7));
}

.vx-logo span {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/*  Center links (middle col)  */
.vx-nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  justify-self: center;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 4px;
}

.vx-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 7px;
  color: rgba(255,255,255,0.48);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.vx-nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.vx-nav-links a.active {
  color: #fff;
  background: rgba(144,65,245,0.18);
  box-shadow: inset 0 0 0 1px rgba(144,65,245,0.28);
}

/* glow dot on active */
.vx-nav-links a.active::before {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vx-accent), var(--vx-cyan));
  box-shadow: 0 0 8px var(--vx-accent);
}

/*  Right actions (right col)  */
.vx-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}

.vx-nav-social {
  display: flex;
  gap: 4px;
}

.vx-nav-social a,
.vx-lang {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.4);
  border: 1px solid var(--vx-border);
  font-size: 0.78rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.vx-lang {
  font-family: 'Orbitron', sans-serif !important;
  font-size: 0.6rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-decoration: none;
}

.vx-nav-social a:hover,
.vx-lang:hover {
  color: #fff;
  border-color: rgba(0,212,255,0.5);
  background: rgba(0,212,255,0.08);
  box-shadow: 0 0 12px rgba(0,212,255,0.2);
}

.vx-nav-divider {
  width: 1px;
  height: 20px;
  background: var(--vx-border);
  flex-shrink: 0;
}

/* Dashboard action buttons in nav */
.vx-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid var(--vx-border);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.55);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.vx-nav-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.14);
}

.vx-nav-btn.accent {
  border-color: rgba(144,65,245,0.38);
  color: rgba(190,145,255,0.9);
}

.vx-nav-btn.accent:hover {
  background: rgba(144,65,245,0.14);
  color: #fff;
  box-shadow: 0 0 14px rgba(144,65,245,0.2);
}

/*  Footer  */
.vx-footer {
  padding: 16px 32px;
  border-top: 1px solid var(--vx-border);
  background: rgba(7,7,12,0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.24);
  font-size: 0.76rem;
  position: relative;
  z-index: 1;
}

.vx-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(144,65,245,0.4), rgba(0,212,255,0.4), rgba(144,65,245,0.4), transparent);
}

.vx-footer a {
  color: rgba(255,255,255,0.38);
  transition: color 0.18s;
}

.vx-footer a:hover { color: #fff; }

.vx-footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/*  Buttons  */
.vx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--vx-ease), box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* beam sweep on buttons */
.vx-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
  transform: translateX(-120%) skewX(-10deg);
  transition: transform 0s;
}

.vx-btn:hover::after {
  transform: translateX(140%) skewX(-10deg);
  transition: transform 0.45s ease;
}

.vx-btn-primary {
  background: linear-gradient(135deg, #9041f5 0%, #5c6ef5 100%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(144,65,245,0.38);
}

.vx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(144,65,245,0.55), 0 0 0 1px rgba(144,65,245,0.4);
}

.vx-btn-ghost {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.65);
  border: 1px solid var(--vx-border);
}

.vx-btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

/* Cyber Glitch Button */
.vx-btn-cyber {
  background: #ff0055;
  color: #fff;
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
  border: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.2s;
}

.vx-btn-cyber:hover {
  background: #00d4ff;
  transform: skew(-5deg);
  box-shadow: 5px 0px 0px #ff0055;
}

/* 
   GAMING ANIMATIONS
    */

/* 1. page element entrance */
@keyframes vxFadeUp {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* 2. ambient grid drift */
@keyframes vxGridDrift {
  from { background-position: 0 0; }
  to   { background-position: 52px 52px; }
}

/* 3. nav accent line sweep */
@keyframes vxNavLine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 4. neon glow pulse (cards, badges, logos) */
@keyframes vxGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(144,65,245,0.25), 0 8px 24px rgba(0,0,0,0.30); }
  50%       { box-shadow: 0 0 40px rgba(144,65,245,0.55), 0 0 20px rgba(0,212,255,0.18), 0 8px 28px rgba(0,0,0,0.38); }
}

/* 5. status dot pulse */
@keyframes vxPulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(144,65,245,0.5); }
  50%       { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(144,65,245,0); }
}

/* 6. shimmer beam sweep (cards) */
@keyframes vxBeam {
  0%   { transform: translateX(-130%) skewX(-12deg); }
  100% { transform: translateX(160%)  skewX(-12deg); }
}

/* 7. floating / levitate */
@keyframes vxFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* 8. scanlines flicker (subtle CRT feel) */
@keyframes vxScan {
  0%   { background-position: 0 0; }
  100% { background-position: 0 4px; }
}

/* 9. border neon trace (card hover) */
@keyframes vxBorderTrace {
  0%   { border-color: rgba(144,65,245,0.25); }
  33%  { border-color: rgba(0,212,255,0.45); }
  66%  { border-color: rgba(92,110,245,0.45); }
  100% { border-color: rgba(144,65,245,0.25); }
}

/* 10. text neon flicker */
@keyframes vxFlicker {
  0%, 98%, 100% { opacity: 1; filter: drop-shadow(0 0 8px var(--vx-accent)); }
  99%            { opacity: 0.7; filter: none; }
}

/* 11. Rotating gradient border */
@keyframes vxBorderRotate {
  from { --angle: 0deg; }
  to { --angle: 360deg; }
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Floating Discord Widget */
.vx-discord-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #5865F2;
  color: #fff !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(88,101,242,0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  animation: vxFloat 3s ease-in-out infinite;
  text-decoration: none;
}

.vx-discord-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 32px rgba(88,101,242,0.6);
}

.vx-discord-float i {
  font-size: 1.2rem;
}

/* Enhanced Hero Text */
.vx-glitch-text {
  animation: vxFlicker 5s infinite;
  color: #fff;
  text-shadow: 0 0 10px rgba(144,65,245,0.5);
}

/* Dynamic Card Hover */
.vx-card-fancy {
  position: relative;
  background: var(--vx-surface);
  border: 1px solid var(--vx-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s var(--vx-ease);
}

.vx-card-fancy:hover {
  border-color: rgba(144,65,245,0.5);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(144,65,245,0.15);
}

.vx-card-fancy::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(144,65,245,0.12) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.vx-card-fancy:hover::before {
  opacity: 1;
}

/*  Scanlines overlay div (add to any card/section)  */
.vx-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.10) 0px,
    rgba(0,0,0,0.10) 1px,
    transparent   1px,
    transparent   4px
  );
  animation: vxScan 0.08s linear infinite;
  opacity: 0.35;
}

/*  Glow card helper  */
.vx-glow-card {
  animation: vxGlow 3.2s ease-in-out infinite;
}

/*  Cyber Border helper  */
.vx-cyber-border {
  position: relative;
  border: 1px solid var(--vx-border);
  clip-path: polygon(
    0 0, 
    calc(100% - 15px) 0, 100% 15px, 
    100% 100%, 
    15px 100%, 0 calc(100% - 15px)
  );
}

.vx-cyber-border::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--vx-accent), transparent 40%, transparent 60%, var(--vx-cyan));
  opacity: 0.2;
  pointer-events: none;
}

/*  Glowing Text  */
.vx-neon-text {
  color: #fff;
  text-shadow: 0 0 10px var(--vx-accent), 0 0 20px var(--vx-glow);
}

/*  Stagger delay helpers  */
.vx-d0 { animation-delay: 0s; }
.vx-d1 { animation-delay: 0.09s; }
.vx-d2 { animation-delay: 0.18s; }
.vx-d3 { animation-delay: 0.27s; }
.vx-d4 { animation-delay: 0.36s; }
.vx-d5 { animation-delay: 0.45s; }

/*  Entrance classes  */
.vx-animate {
  opacity: 0;
  animation: vxFadeUp 0.65s var(--vx-ease) both;
}

/* scroll-triggered */
.vx-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--vx-ease), transform 0.6s var(--vx-ease);
}

.vx-reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Stat Cards (Dashboard) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--vx-surface);
  border: 1px solid var(--vx-border);
  border-radius: 12px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(144,65,245,0.1);
  color: var(--vx-accent);
  font-size: 1.25rem;
  border: 1px solid rgba(144,65,245,0.2);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-info strong {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  color: #fff;
  line-height: 1;
}

.stat-info span {
  font-size: 0.75rem;
  color: var(--vx-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/*  Responsive  */
@media (max-width: 860px) {
  .vx-nav {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 0 16px;
  }
  .vx-nav-links {
    justify-self: end;
    background: transparent;
    border: none;
    padding: 0;
    gap: 0;
  }
  .vx-nav-links a {
    padding: 5px 8px;
    font-size: 0.76rem;
  }
  .vx-nav-links a.active::before { display: none; }
  .vx-nav-social { display: none; }
  .vx-lang { display: none; }
}

@media (max-width: 580px) {
  .vx-nav-links li:not(:first-child):not(:last-child):not(.vx-keep) {
    display: none;
  }
  .vx-footer { padding: 14px 16px; }
}

/*  Accessibility  */
@media (prefers-reduced-motion: reduce) {
  .vx-animate, .vx-reveal, .vx-btn, .vx-glow-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .vx-page-bg::after,
  .vx-nav::after,
  .vx-scanlines,
  .vx-btn::after { display: none !important; }
}
