:root {
  --primary-site-color: #1A2B4C;
  --secondary-site-color: #FFD700;

  --neon-primary: #00ffff; /* Default Cyan */
  --neon-secondary: #ff00ff; /* Default Magenta */
  --neon-accent: #ffff00; /* Default Yellow */

  --neon-cycle-1: #ff00ff, #00ffff, #ffff00, #ff0000, #00ff00, #0000ff;
  --neon-cycle-2: #00ffff, #ffff00, #ff00ff, #00ff00, #ff0000, #0000ff;
  --neon-cycle-3: #ffff00, #ff00ff, #00ffff, #ff0000, #00ff00, #0000ff;
}

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

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #fff;
  background-color: #000;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

/* Animations from prompt, adapted for variables */
@keyframes rainbow-border {
  0% {
    border-color: #ff0000;
    box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
  }
  16.6% {
    border-color: #ff8000;
    box-shadow: 0 0 10px #ff8000, 0 0 20px #ff8000;
  }
  33.3% {
    border-color: #ffff00;
    box-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00;
  }
  50% {
    border-color: #00ff00;
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
  }
  66.6% {
    border-color: #0000ff;
    box-shadow: 0 0 10px #0000ff, 0 0 20px #0000ff;
  }
  83.3% {
    border-color: #8000ff;
    box-shadow: 0 0 10px #8000ff, 0 0 20px #8000ff;
  }
  100% {
    border-color: #ff0000;
    box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
  }
}

@keyframes hue-spin {
  0% {
    filter: hue-rotate(0deg);
    box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary);
  }
  100% {
    filter: hue-rotate(360deg);
    box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary);
  }
}

@keyframes alternate-colors {
  0% {
    border-color: var(--neon-primary);
    box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary);
  }
  100% {
    border-color: var(--neon-secondary);
    box-shadow: 0 0 10px var(--neon-secondary), 0 0 20px var(--neon-secondary);
  }
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 0 10px #ff0000, 0 0 20px #ff8000;
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #0000ff;
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 10px #ff0000, 0 0 20px #ff8000;
  }
}

@keyframes random-glow {
  0% {
    border-color: #ff00ff;
    box-shadow: 0 0 20px #ff00ff;
  }
  20% {
    border-color: #00ffff;
    box-shadow: 0 0 20px #00ffff;
  }
  40% {
    border-color: #ffff00;
    box-shadow: 0 0 20px #ffff00;
  }
  60% {
    border-color: #00ff00;
    box-shadow: 0 0 20px #00ff00;
  }
  80% {
    border-color: #ff0000;
    box-shadow: 0 0 20px #ff0000;
  }
  100% {
    border-color: #ff00ff;
    box-shadow: 0 0 20px #ff00ff;
  }
}

@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-primary, #667eea);
    box-shadow: 0 0 10px var(--neon-primary, #667eea), 0 0 20px var(--neon-primary, #667eea), inset 0 0 10px rgba(102, 126, 234, 0.3);
  }
  33% {
    border-color: var(--neon-secondary, #764ba2);
    box-shadow: 0 0 10px var(--neon-secondary, #764ba2), 0 0 20px var(--neon-secondary, #764ba2), inset 0 0 10px rgba(118, 75, 162, 0.3);
  }
  66% {
    border-color: var(--neon-accent, #f093fb);
    box-shadow: 0 0 10px var(--neon-accent, #f093fb), 0 0 20px var(--neon-accent, #f093fb), inset 0 0 10px rgba(240, 147, 251, 0.3);
  }
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor, inset 0 0 15px currentColor;
  }
  20%, 24%, 55% {
    opacity: 0.8;
    box-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor, inset 0 0 10px currentColor;
  }
}

@keyframes pulse-glow {
  from {
    box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
  }
  to {
    box-shadow: 0 0 15px currentColor, 0 0 30px currentColor, 0 0 45px currentColor;
  }
}

@keyframes led-blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0.3;
  }
}

@keyframes text-glow-flow {
  0% {
    text-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary), 0 0 15px var(--neon-primary);
    color: #ffffff;
  }
  50% {
    text-shadow: 0 0 5px var(--neon-secondary), 0 0 10px var(--neon-secondary), 0 0 15px var(--neon-secondary);
    color: #ffffff;
  }
  100% {
    text-shadow: 0 0 5px var(--neon-accent), 0 0 10px var(--neon-accent), 0 0 15px var(--neon-accent);
    color: #ffffff;
  }
}

/* Header styles (Desktop First) */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  font-family: 'Electrolize', sans-serif; /* Example futuristic font */
}

.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  padding: 15px 0;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  position: relative;
  z-index: 1001; /* Ensure header-top is above main-nav for desktop */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 2.2em;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  position: relative;
  padding: 5px 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* LED matrix effect for logo */
.logo.led-matrix::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: radial-gradient(circle at 0% 0%, currentColor 2px, transparent 3px),
              radial-gradient(circle at 100% 0%, currentColor 2px, transparent 3px),
              radial-gradient(circle at 0% 100%, currentColor 2px, transparent 3px),
              radial-gradient(circle at 100% 100%, currentColor 2px, transparent 3px);
  background-size: 20px 20px;
  animation: led-blink 1s steps(2) infinite;
  opacity: 0.1;
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow: 0 0 5px #ffffff, 0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--neon-primary), 0 0 30px var(--neon-secondary), inset 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Main Navigation (Desktop) */
.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: rainbow-border 6s linear infinite; /* Different dynamic border color */
  display: flex; /* Desktop default: flex */
  width: 100%;
  position: static; /* Desktop default: static */
  z-index: 999; /* Below header-top */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 18px;
  font-size: 1.05em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--neon-accent);
  text-shadow: 0 0 8px var(--neon-accent);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
}

.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
}

.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
}

/* Footer styles */
.site-footer {
  background-color: var(--primary-site-color);
  color: #cccccc;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
  font-size: 0.9em;
}

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

.footer-cols-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-about .footer-logo {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-site-color);
  text-decoration: none;
  margin-bottom: 15px;
  display: block;
  text-transform: uppercase;
}

.footer-description {
  font-size: 0.9em;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-col h4, .game-providers-section h4, .social-media-section h4 {
  color: var(--secondary-site-color);
  margin-bottom: 20px;
  font-size: 1.1em;
  text-transform: uppercase;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--secondary-site-color);
}

.payment-icons, .game-providers-icons, .social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.payment-icons img, .game-providers-icons img, .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.game-providers-section, .social-media-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
  font-size: 0.85em;
}

.copyright {
  color: #888888;
}

/* Mobile styles */
@media (max-width: 768px) {
  .header-container,
  .nav-container,
  .footer-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
  }

  .header-top {
    padding: 10px 0;
  }

  .logo {
    font-size: 1.8em;
    flex-grow: 1;
    text-align: center;
    padding: 0;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1002; /* Above logo and buttons */
    order: -1; /* Move to the left */
    margin-right: 10px;
    animation: theme-colors 4s ease-in-out infinite; /* Neon glow for hamburger */
    border-radius: 3px;
  }

  .hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
    box-shadow: 0 0 5px currentColor, 0 0 10px currentColor; /* Glow effect for bars */
  }

  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  .desktop-nav-buttons {
    display: none;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 70%; /* Side menu width */
    height: 100%;
    background: linear-gradient(180deg, #0a0a0a, #1a1a2e, #16213e);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
    padding-top: 80px; /* Space for fixed header content */
    box-shadow: 5px 0 15px rgba(0, 255, 255, 0.5);
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
    z-index: 1000;
  }

  .main-nav.active {
    display: flex;
    transform: translateX(0); /* Slide in */
  }

  .nav-container {
    flex-direction: column;
    padding: 20px 0;
    align-items: flex-start;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    background: linear-gradient(135deg, #16213e, #0f3460);
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
    position: relative; /* Relative to flow, but fixed header is above */
    width: 100%;
    z-index: 990; /* Below header-top and main-nav */
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
  }

  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }

  .footer-cols-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col {
    margin-bottom: 20px;
  }

  .footer-about .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-nav ul {
    padding: 0;
  }

  .footer-nav li {
    display: inline-block;
    margin: 0 10px 10px;
  }
}
