:root {
  --site-primary-color: #007BFF; /* Original primary blue */
  --site-secondary-color: #FFC107; /* Original secondary yellow */

  /* Neon color palette - derived from site colors, but more vibrant */
  --neon-dark-bg: #0a0a0a;
  --neon-dark-bg-light: #1a1a2e;
  --neon-dark-bg-accent: #16213e;

  --neon-primary: #00FFFF; /* Cyan for header-top glow */
  --neon-secondary: #FF00FF; /* Magenta for main-nav glow */
  --neon-accent: #FFFF00; /* Yellow for text/button accents */

  /* Dynamic color cycle for animations */
  --neon-cycle-1: #00FFFF, #FF00FF, #FFFF00, #FF6600, #00FF00, #0000FF;
  --neon-cycle-2: #FF00FF, #FFFF00, #00FFFF, #FF0000, #00FF00, #0000FF;
  --neon-cycle-3: #FFFF00, #00FFFF, #FF00FF, #FF0000, #00FF00, #0000FF;
}

/* Animations */
@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); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary), inset 0 0 10px rgba(0, 255, 255, 0.3); }
  33% { border-color: var(--neon-secondary); box-shadow: 0 0 10px var(--neon-secondary), 0 0 20px var(--neon-secondary), inset 0 0 10px rgba(255, 0, 255, 0.3); }
  66% { border-color: var(--neon-accent); box-shadow: 0 0 10px var(--neon-accent), 0 0 20px var(--neon-accent), inset 0 0 10px rgba(255, 255, 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), 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; }
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #f0f0f0;
  background-color: var(--neon-dark-bg);
  min-height: 150vh; /* For testing fixed header scroll */
}

/* Container for content width */
.header-container, .nav-container, .footer-top-grid, .footer-middle-sections, .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header - Fixed and Neon Style (Desktop First) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: var(--neon-dark-bg);
}

.header-top {
  background: linear-gradient(135deg, var(--neon-dark-bg-light), var(--neon-dark-bg-accent));
  border-bottom: 2px solid var(--neon-primary);
  box-shadow: 
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  width: 100%;
  padding: 10px 0;
  animation: theme-colors 8s ease-in-out infinite alternate;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* Adjusted padding for container */
}

.logo {
  color: #ffffff;
  font-size: 2.2em;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  white-space: nowrap;
  padding: 5px 0;
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  padding: 10px 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: 600;
  white-space: nowrap;
}

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

/* Main Navigation (Desktop First) */
.main-nav {
  background: linear-gradient(135deg, var(--neon-dark-bg-accent), var(--neon-dark-bg-light));
  border-top: 2px solid var(--neon-secondary);
  box-shadow: 
    0 0 10px var(--neon-secondary),
    0 0 20px var(--neon-secondary),
    0 0 30px var(--neon-secondary),
    inset 0 0 20px rgba(255, 0, 255, 0.1);
  width: 100%;
  display: flex; /* Default desktop display */
  flex-direction: row; /* Default desktop layout */
  justify-content: center;
  padding: 10px 0;
  animation: theme-colors 6s ease-in-out infinite alternate-reverse;
}

.nav-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.1em;
  padding: 8px 15px;
  transition: color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

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

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--neon-primary);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
  box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

.hamburger-menu span:nth-child(1) { top: 0px; }
.hamburger-menu span:nth-child(2) { top: 8px; }
.hamburger-menu span:nth-child(3) { top: 16px; }

.hamburger-menu.active span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}
.hamburger-menu.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

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

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

/* Footer Styles */
.site-footer {
  background-color: #1a1a1a;
  color: #cccccc;
  padding: 40px 0 20px 0;
  font-size: 0.9em;
  border-top: 1px solid #333;
}

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

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

.footer-logo {
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 10px;
  display: block;
  text-transform: uppercase;
}

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

.footer-nav, .footer-legal-nav {
  list-style: none;
}

.footer-nav li a, .footer-legal-nav li a {
  color: #cccccc;
  text-decoration: none;
  padding: 5px 0;
  display: block;
  transition: color 0.3s ease;
}

.footer-nav li a:hover, .footer-legal-nav li a:hover {
  color: var(--site-secondary-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: 40px;
  height: auto;
  width: auto;
  filter: grayscale(100%) brightness(150%); /* Subtle effect for icons */
  transition: filter 0.3s ease;
}

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

.footer-middle-sections {
  margin-bottom: 30px;
  border-top: 1px solid #2a2a2a;
  padding-top: 30px;
}

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

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  body {
    padding-top: 130px; /* Adjust based on header-top + mobile-buttons-area height */
  }

  .header-container, .nav-container, .footer-top-grid, .footer-middle-sections, .footer-bottom {
    max-width: none; /* Remove max-width on mobile */
    width: 100%;
    padding: 0 15px;
  }

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

  .header-container {
    justify-content: space-between;
    padding: 0 15px;
  }

  .logo {
    font-size: 1.8em;
    flex-grow: 1; /* Allow logo to take available space */
    text-align: center;
    order: 2; /* Position logo in center */
  }

  .hamburger-menu {
    display: block;
    order: 1; /* Position hamburger on left */
    margin-right: auto; /* Push logo to center */
    padding: 5px;
    z-index: 1001;
  }

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

  .mobile-buttons-area {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    width: 100%;
    background: linear-gradient(135deg, var(--neon-dark-bg-accent), var(--neon-dark-bg-light));
    border-bottom: 2px solid var(--neon-accent);
    box-shadow: 
      0 0 8px var(--neon-accent),
      0 0 15px var(--neon-accent),
      inset 0 0 10px rgba(255, 255, 0, 0.1);
    animation: theme-colors 5s ease-in-out infinite alternate;
    z-index: 990; /* Below main nav but above content */
  }

  .btn {
    padding: 8px 20px;
    font-size: 0.95em;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical layout for mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 70%; /* Menu width */
    height: 100%;
    background: var(--neon-dark-bg-light);
    padding-top: 150px; /* Space for header and mobile buttons */
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    border-right: 2px solid var(--neon-secondary);
    box-shadow: 
      0 0 10px var(--neon-secondary),
      0 0 20px var(--neon-secondary),
      inset 0 0 15px rgba(255, 0, 255, 0.1);
  }

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

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

  .nav-link {
    font-size: 1.2em;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

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

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

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-legal-nav {
    flex-direction: column;
    gap: 5px;
  }
}

/* For body scroll control */
body.no-scroll {
  overflow: hidden;
}
