:root {
  --primary-site-color: #1A202C;
  --auxiliary-site-color: #FFD700;

  --neon-primary: var(--auxiliary-site-color); /* Gold/Yellow */
  --neon-secondary: #FF6600; /* Neon Orange */
  --neon-accent: #FF00FF; /* Neon Magenta */

  /* Neon cycle colors for animations */
  --neon-cycle-1: var(--neon-primary), var(--neon-secondary), var(--neon-accent), #00ffff, #00ff00;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background-color: #0a0a0a;
  color: #ffffff;
  line-height: 1.6;
  padding-top: 120px; /* Placeholder, adjusted by JS */
}

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

ul {
  list-style: none;
}

/* Neon Glow Animations (from prompt) */
@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, #ff00ff),
      0 0 20px var(--neon-primary, #ff00ff);
  }
  100% {
    filter: hue-rotate(360deg);
    box-shadow:
      0 0 10px var(--neon-primary, #ff00ff),
      0 0 20px var(--neon-primary, #ff00ff);
  }
}

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

@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, #ff00ff);
    box-shadow:
      0 0 10px var(--neon-primary, #ff00ff),
      0 0 20px var(--neon-primary, #ff00ff);
  }
  33% {
    border-color: var(--neon-secondary, #00ffff);
    box-shadow:
      0 0 10px var(--neon-secondary, #00ffff),
      0 0 20px var(--neon-secondary, #00ffff);
  }
  66% {
    border-color: var(--neon-accent, #ffff00);
    box-shadow:
      0 0 10px var(--neon-accent, #ffff00),
      0 0 20px var(--neon-accent, #ffff00);
  }
}

@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 */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex; /* Desktop default */
  flex-direction: column; /* Desktop default, will be row for mobile */
}

.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  border-bottom: 2px solid var(--neon-primary);
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border glow */
  padding: 15px 0;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  text-transform: uppercase;
  animation: text-glow-flow 3s ease-in-out infinite alternate; /* Dynamic text glow */
  padding: 5px 0;
}

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

.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; /* Dynamic border glow */
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap;
}

.btn:hover {
  animation-duration: 2s; /* Faster glow on hover */
  transform: translateY(-2px);
}

.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border-top: 2px solid var(--neon-secondary);
  border-bottom: 2px solid var(--neon-secondary);
  animation: theme-colors 5s linear infinite; /* Dynamic border glow */
  padding: 10px 0;
  display: flex; /* Desktop default */
  justify-content: center;
  align-items: center;
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row; /* Desktop default */
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap;
}

.nav-link {
  color: #ffffff;
  padding: 10px 15px;
  font-weight: bold;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--neon-primary);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.mobile-menu-toggle {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 1002;
  padding: 5px 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--neon-primary);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  box-shadow:
    0 0 3px var(--neon-primary),
    0 0 8px var(--neon-primary);
}

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

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

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

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

.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Footer Styles */
.site-footer {
  background-color: #1a1a2e;
  color: #cccccc;
  padding: 40px 0 20px;
  font-size: 14px;
}

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

.footer-top {
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top .footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--neon-primary);
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}

.footer-description {
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.footer-nav-links ul li a {
  color: #cccccc;
  transition: color 0.3s ease;
}

.footer-nav-links ul li a:hover {
  color: var(--neon-primary);
}

.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;
  filter: grayscale(100%) brightness(150%); /* For subtle glow effect */
  transition: filter 0.3s ease;
}

.payment-icons img:hover, .game-providers-icons img:hover, .social-media-icons img:hover {
  filter: grayscale(0%) brightness(100%) drop-shadow(0 0 5px var(--neon-primary));
}

.game-providers-section, .social-media-section {
  padding: 30px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-providers-section h4, .social-media-section h4 {
  margin-bottom: 20px;
}

.footer-bottom {
  padding-top: 20px;
  text-align: center;
  color: #888888;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
  }

  .header-container {
    padding: 10px 15px;
    justify-content: space-between;
    width: 100%; /* Ensure full width on mobile */
    max-width: none; /* Remove max-width on mobile */
  }

  .mobile-menu-toggle {
    display: flex; /* Show hamburger on mobile */
    order: 1;
    align-self: center;
  }

  .logo {
    order: 2;
    flex: 1; /* Allow logo to take available space and center */
    text-align: center;
    font-size: 24px;
  }

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

  .mobile-buttons-area {
    display: flex; /* Show mobile buttons */
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #111111; /* Slightly different dark background */
    border-bottom: 2px solid var(--neon-accent);
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic border glow */
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical menu items */
    position: fixed;
    top: 0;
    left: 0;
    width: 75%; /* Menu width */
    height: 100%;
    background: linear-gradient(180deg, #1a1a2e, #0f3460);
    padding-top: 60px;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.7);
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease-out;
    z-index: 1001;
    border: none; /* Remove desktop borders for mobile menu */
  }

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

  .nav-container {
    flex-direction: column;
    padding: 20px 15px;
    width: 100%; /* Ensure full width on mobile */
    max-width: none; /* Remove max-width on mobile */
  }

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

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

  .footer-top .footer-container {
    grid-template-columns: 1fr; /* Single column layout for footer on mobile */
    gap: 20px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col ul {
    padding-left: 0;
  }

  .footer-logo {
    margin: 0 auto 15px;
  }

  .game-providers-section, .social-media-section {
    padding: 20px 0;
  }

  .footer-container {
    padding: 0 15px; /* Adjust padding for mobile */
    width: 100%; /* Ensure full width on mobile */
    max-width: none; /* Remove max-width on mobile */
  }
}

/* Ensure body padding-top is updated by JS for accurate header height */
body.no-scroll {
  overflow: hidden;
}
