:root {
  --site-primary-base: #007bff;
  --site-secondary-base: #28a745;
  --neon-primary-glow: #00eaff; /* Bright Cyan, derived from blue */
  --neon-secondary-glow: #ff00ff; /* Bright Magenta */
  --neon-accent-glow: #fff000; /* Bright Yellow */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --text-color-light: #f0f0f0;
  --text-color-dark: #cccccc;
  --footer-bg: #1c1c1c;
  --footer-text: #cccccc;
}

/* Animations for dynamic neon colors and effects */
@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-glow), 0 0 20px var(--neon-primary-glow); }
  100% { filter: hue-rotate(360deg); box-shadow: 0 0 10px var(--neon-primary-glow), 0 0 20px var(--neon-primary-glow); }
}

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

@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-glow);
    box-shadow:
      0 0 10px var(--neon-primary-glow),
      0 0 20px var(--neon-primary-glow),
      inset 0 0 10px rgba(0, 234, 255, 0.3);
  }
  33% {
    border-color: var(--neon-secondary-glow);
    box-shadow:
      0 0 10px var(--neon-secondary-glow),
      0 0 20px var(--neon-secondary-glow),
      inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
  66% {
    border-color: var(--neon-accent-glow);
    box-shadow:
      0 0 10px var(--neon-accent-glow),
      0 0 20px var(--neon-accent-glow),
      inset 0 0 10px rgba(255, 240, 0, 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-glow),
      0 0 10px var(--neon-primary-glow),
      0 0 15px var(--neon-primary-glow);
    color: #ffffff;
  }
  50% {
    text-shadow:
      0 0 5px var(--neon-secondary-glow),
      0 0 10px var(--neon-secondary-glow),
      0 0 15px var(--neon-secondary-glow);
    color: #ffffff;
  }
  100% {
    text-shadow:
      0 0 5px var(--neon-accent-glow),
      0 0 10px var(--neon-accent-glow),
      0 0 15px var(--neon-accent-glow);
    color: #ffffff;
  }
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg-1);
  color: var(--text-color-light);
  line-height: 1.6;
  padding-top: 100px; /* Default for desktop fixed header (header-top + main-nav height) */
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  min-height: 60px; /* Minimum height for header-top */
}

.header-container, .nav-container, .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header Top - Neon Style */
.header-top {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  border-bottom: 2px solid var(--neon-primary-glow);
  box-shadow:
    0 0 10px var(--neon-primary-glow),
    0 0 20px var(--neon-primary-glow),
    0 0 30px var(--neon-primary-glow),
    inset 0 0 15px rgba(0, 234, 255, 0.2);
  padding: 10px 0;
}

.header-top .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--neon-primary-glow); /* Base color for dynamic text glow */
  text-decoration: none;
  text-shadow:
    0 0 5px var(--neon-primary-glow),
    0 0 10px var(--neon-primary-glow),
    0 0 15px var(--neon-primary-glow);
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  order: 1; /* Desktop: Logo left */
  padding-left: 0; /* Handled by container padding */
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  order: 2; /* Desktop: Buttons right */
  padding-right: 0; /* Handled by container padding */
}

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

/* Main Navigation - Regular Style on desktop, different glow */
.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-1));
  border-top: 1px solid var(--neon-secondary-glow); /* Separator */
  border-bottom: 2px solid var(--neon-secondary-glow);
  box-shadow:
    0 0 8px var(--neon-secondary-glow),
    0 0 16px var(--neon-secondary-glow),
    inset 0 0 8px rgba(255, 0, 255, 0.15);
  padding: 8px 0;
  display: flex; /* Desktop: Displayed */
  flex-direction: row; /* Desktop: Horizontal */
  position: static; /* Desktop: Normal flow */
}

.main-nav .nav-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.nav-link {
  color: var(--text-color-light);
  text-decoration: none;
  font-size: 1.05em;
  padding: 5px 10px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover {
  color: var(--neon-accent-glow);
  text-shadow:
    0 0 5px var(--neon-accent-glow),
    0 0 10px var(--neon-accent-glow);
}

/* Hamburger Menu (Hidden on desktop) */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001; /* Above logo and buttons */
  order: 0; /* Mobile: Left */
  margin-right: 15px; /* Space between burger and logo */
  color: var(--neon-primary-glow);
  animation: theme-colors 4s ease-in-out infinite;
  border-radius: 3px;
  box-shadow:
    0 0 5px var(--neon-primary-glow),
    0 0 10px var(--neon-primary-glow);
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-color-light);
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}

.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Buttons - Neon Style */
.btn {
  position: relative;
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  background: linear-gradient(135deg, var(--neon-primary-glow), var(--neon-secondary-glow));
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary-glow);
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping on desktop */
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.2);
}

/* Footer Styles */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 0 20px 0;
  font-size: 0.9em;
}

.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 {
  margin-bottom: 20px;
}

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

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

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

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-nav-list a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav-list a:hover {
  color: var(--neon-primary-glow);
}

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

.payment-methods .payment-icons img,
.game-providers-section .game-providers-icons img,
.social-media-section .social-media-icons img {
  max-height: 40px;
  height: auto;
  width: auto;
  filter: grayscale(100%) brightness(150%); /* For a techy, uniform look */
  transition: filter 0.3s ease;
}

.payment-methods .payment-icons img:hover,
.game-providers-section .game-providers-icons img:hover,
.social-media-section .social-media-icons img:hover {
  filter: grayscale(0%) brightness(100%); /* Color on hover */
}

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

.game-providers-section h4,
.social-media-section h4 {
  color: #ffffff;
  font-size: 1.1em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

.copyright {
  margin: 0;
  color: var(--footer-text);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  body {
    padding-top: 150px; /* Adjust for mobile fixed header (header-top + mobile-nav-buttons) */
  }

  .header-container, .nav-container, .footer-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
  }

  .header-top .header-container {
    justify-content: space-between; /* Hamburger left, Logo center, empty right */
  }

  .hamburger-menu {
    display: block;
  }

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

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
    border-top: 1px solid var(--neon-primary-glow);
    border-bottom: 1px solid var(--neon-primary-glow);
    box-shadow:
      0 0 5px var(--neon-primary-glow),
      0 0 10px var(--neon-primary-glow);
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-nav-buttons .btn {
    flex: 1 1 auto;
    max-width: calc(50% - 5px); /* Two buttons per row, with gap */
    min-width: 140px;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.9em;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: var(--dark-bg-1);
    padding-top: 80px; /* Space for header-top above menu */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000; /* Above overlay */
    border-right: 2px solid var(--neon-secondary-glow);
    box-shadow:
      5px 0 15px rgba(0, 0, 0, 0.5),
      0 0 10px var(--neon-secondary-glow);
  }

  .main-nav.active {
    display: flex; /* Must be block/flex when active */
    transform: translateX(0);
  }

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

  .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999; /* Below menu, above content */
  }

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

  .footer-top .footer-container {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-nav-list {
    text-align: center;
  }

  .payment-methods .payment-icons,
  .game-providers-section .game-providers-icons,
  .social-media-section .social-media-icons {
    justify-content: center;
  }

  .payment-methods .payment-icons img,
  .game-providers-section .game-providers-icons img,
  .social-media-section .social-media-icons img {
    max-height: 35px;
  }
}

/* Responsive color intensity adjustment (example from prompt) */
@media (max-width: 768px) {
  .rainbow-flow,
  .hue-rotate,
  .alternate-glow,
  .color-stream,
  .random-colors,
  .theme-flow {
    box-shadow:
      0 0 5px currentColor,
      0 0 10px currentColor !important;
  }
}
