/* ============================================
   GKO Gaming - Design System & Styles
   ============================================ */

/* === CSS Variables === */
:root {
  /* Colors - Cyberpunk Neon Theme */
  --c-bg: #000000;
  --c-bg-secondary: #0a0f14;
  --c-bg-card: #0f1419;
  --c-fg: #b7f3ff;
  --c-fg-secondary: #8ec9d6;
  --c-accent: #00bfff;
  --c-accent-2: #00ffff;
  --c-accent-glow: rgba(0, 191, 255, 0.4);
  --c-warning: #ffbd2e;
  --c-success: #27c93f;
  --c-danger: #ff5f56;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Typography */
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Effects */
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --shadow-glow: 0 0 20px var(--c-accent-glow);
  --shadow-glow-strong: 0 0 30px var(--c-accent-glow), 0 0 60px rgba(0, 191, 255, 0.2);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-mono);
  background: var(--c-bg);
  color: var(--c-fg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}



/* === Matrix Background === */
#matrix {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  opacity: 0.6;
}

/* === Main Container === */
.site-wrapper {
  position: relative;
  z-index: 1;
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-accent);
  padding: var(--space-sm) var(--space-md);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  opacity: 0;
  pointer-events: none;
}

.nav.visible {
  opacity: 1;
  pointer-events: all;
}

.nav.hidden {
  transform: translateY(-100%);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 8px var(--c-accent));
  transition: transform var(--transition-fast);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--c-fg);
  text-decoration: none;
  font-size: 0.9rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--c-accent);
  transform: translateX(-50%);
  transition: width var(--transition-normal);
}

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

.nav-link:hover::after {
  width: 80%;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--c-accent);
  color: var(--c-accent);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

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

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 15, 20, 0.98);
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--c-accent);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-md);
  position: relative;
}

.terminal {
  width: min(680px, 92vw);
  max-height: 86vh;
  overflow: auto;
  background: var(--c-bg-secondary);
  border: 1.5px solid var(--c-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
  animation: fadeInUp 0.8s ease;
}

.panel-header {
  background: linear-gradient(90deg, #0f1c24, #091015);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--c-accent);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.red {
  background: var(--c-danger);
}

.dot.yellow {
  background: var(--c-warning);
}

.dot.green {
  background: var(--c-success);
}

.panel-title {
  margin-left: auto;
  opacity: 0.8;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid var(--c-accent);
  animation: typing 3.5s steps(30, end), blink 0.8s step-end infinite alternate;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.panel-body {
  padding: clamp(20px, 5vmin, 40px);
}

.logo {
  display: block;
  margin: 0 auto var(--space-md);
  width: clamp(80px, 20vw, 140px);
  filter: drop-shadow(0 0 12px var(--c-accent));
  animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  from {
    filter: drop-shadow(0 0 12px var(--c-accent));
  }

  to {
    filter: drop-shadow(0 0 20px var(--c-accent-2));
  }
}

.neon-header {
  text-align: center;
  line-height: 1.2;
  font-size: clamp(1.2rem, 5vw, 2rem);
  color: var(--c-accent);
  filter: drop-shadow(0 0 8px var(--c-accent));
  margin-bottom: var(--space-md);
  animation: neonFlicker 2.4s infinite;
}

@keyframes neonFlicker {

  0%,
  100% {
    opacity: 1;
  }

  45% {
    opacity: 0.55;
  }

  55% {
    opacity: 1;
  }

  70% {
    opacity: 0.8;
  }
}

.countdown {
  text-align: center;
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

.countdown b {
  color: var(--c-accent);
}

.countdown[aria-hidden="true"] {
  display: none;
}

.log {
  font-size: clamp(0.8rem, 2.6vw, 1rem);
  color: var(--c-fg-secondary);
}

.log-line {
  margin-bottom: var(--space-xs);
  white-space: pre-wrap;
  word-wrap: break-word;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* === Sections === */
.section {
  padding: var(--space-2xl) var(--space-md);
  position: relative;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--c-accent);
  text-align: center;
  margin-bottom: var(--space-xl);
  filter: drop-shadow(0 0 6px var(--c-accent));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  animation: neonFlicker 6s ease-in-out infinite;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  box-shadow: 0 0 10px var(--c-accent);
}

.section-title-logo {
  width: clamp(30px, 5vw, 50px);
  height: auto;
  filter: drop-shadow(0 0 10px var(--c-accent));
  animation: logoFloat 3s ease-in-out infinite;
  flex-shrink: 0;
}

.top-logo {
  display: block;
  margin: var(--space-xl) auto var(--space-lg);
  width: clamp(120px, 20vw, 200px);
  filter: drop-shadow(0 0 20px var(--c-accent));
  animation: logoFloat 3s ease-in-out infinite, logoGlow 2s ease-in-out infinite alternate;
}

/* === Cards === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.card {
  background: var(--c-bg-card);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  transition: left var(--transition-slow);
}

.card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.card:hover::before {
  left: 100%;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: block;
  filter: drop-shadow(0 0 8px currentColor);
}

.card-title {
  font-size: 1.3rem;
  color: var(--c-accent);
  margin-bottom: var(--space-sm);
  animation: neonFlicker 4s ease-in-out infinite;
}

.card-text {
  color: var(--c-fg-secondary);
  line-height: 1.6;
}

/* === Buttons === */
.btn {
  appearance: none;
  border: 1.5px solid var(--c-accent);
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.1), transparent);
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: clamp(12px, 3vmin, 16px) clamp(24px, 6vmin, 36px);
  border-radius: var(--radius-lg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-fast);
  animation: scan 2.5s infinite;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 191, 255, 0.5);
  background: rgba(0, 191, 255, 0.15);
}

.btn:hover::before {
  transform: translateX(100%);
}

@keyframes scan {

  0%,
  100% {
    box-shadow: 0 0 12px var(--c-accent-glow);
    border-color: var(--c-accent);
  }

  50% {
    box-shadow: 0 0 26px var(--c-accent-glow);
    border-color: var(--c-accent-2);
  }
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), rgba(0, 255, 255, 0.1));
}

.cta {
  text-align: center;
  margin-top: var(--space-lg);
}

/* Enhanced Discord Button */
.btn-discord {
  font-size: 1.15rem !important;
  padding: 18px 42px !important;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 189, 46, 0.25), rgba(255, 215, 0, 0.15)) !important;
  border: 2px solid var(--c-warning) !important;
  color: var(--c-warning) !important;
  box-shadow: 0 0 20px rgba(255, 189, 46, 0.5), 0 0 40px rgba(255, 189, 46, 0.3), inset 0 0 20px rgba(255, 189, 46, 0.15);
  animation: discordPulse 2s ease-in-out infinite !important;
  position: relative;
}

.btn-discord::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-lg);
  background: linear-gradient(45deg, var(--c-warning), #ffd700, var(--c-warning));
  background-size: 200% 200%;
  opacity: 0;
  z-index: -1;
  animation: borderGlow 3s linear infinite;
  transition: opacity var(--transition-normal);
}

.btn-discord:hover::after {
  opacity: 0.6;
}

.btn-discord:hover {
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 0 30px rgba(255, 189, 46, 0.7), 0 0 60px rgba(255, 189, 46, 0.4), inset 0 0 30px rgba(255, 189, 46, 0.25) !important;
  background: linear-gradient(135deg, rgba(255, 189, 46, 0.35), rgba(255, 215, 0, 0.25)) !important;
}

@keyframes discordPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 189, 46, 0.5), 0 0 40px rgba(255, 189, 46, 0.3), inset 0 0 20px rgba(255, 189, 46, 0.15);
  }

  50% {
    box-shadow: 0 0 30px rgba(255, 189, 46, 0.7), 0 0 60px rgba(255, 189, 46, 0.4), inset 0 0 30px rgba(255, 189, 46, 0.25);
  }
}

@keyframes borderGlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Enhanced CTA container for better vertical centering */
.cta-enhanced {
  text-align: center;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

/* === About Section === */
.about-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.about-description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.8;
  color: var(--c-fg-secondary);
  margin-bottom: var(--space-lg);
}

.about-highlight {
  color: var(--c-accent);
  font-weight: bold;
  text-shadow: 0 0 8px var(--c-accent-glow);
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.value-badge {
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid var(--c-accent);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  color: var(--c-accent);
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
  transition: all var(--transition-fast);
}

.value-badge:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

/* === Footer === */
.footer {
  background: var(--c-bg-secondary);
  border-top: 1px solid var(--c-accent);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.footer.visible {
  opacity: 1;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  color: var(--c-fg-secondary);
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer-link {
  color: var(--c-accent);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-link:hover {
  text-shadow: 0 0 8px var(--c-accent);
  transform: scale(1.1);
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes neonFlicker {

  0%,
  100% {
    opacity: 1;
  }

  2% {
    opacity: 0.8;
  }

  4% {
    opacity: 1;
  }

  8% {
    opacity: 0.85;
  }

  10% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }

  52% {
    opacity: 1;
  }

  54% {
    opacity: 0.75;
  }

  56% {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease;
}

/* === Utility Classes === */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--c-accent);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

[hidden] {
  display: none !important;
}

/* === Responsive === */
@media (max-width: 768px) {
  .section {
    padding: var(--space-xl) var(--space-sm);
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .values-list {
    flex-direction: column;
    align-items: center;
  }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}