:root {
  --site-primary: #003366;
  --site-secondary: #FFD700;

  --neon-glow-color-1: #00FFFF;
  --neon-glow-color-2: #FF00FF;
  --neon-glow-color-3: #FFFF00;
  --neon-glow-color-4: #FF3366;
  --neon-glow-color-5: #00FF00;
  --neon-glow-color-6: #0000FF;

  --header-top-bg: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  --main-nav-bg: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

/* Base Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding-top: 110px; /* Default for desktop header height */
  background-color: #0d1117;
  color: #e0e0e0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animations for dynamic colors and glow */
@keyframes rainbow-border {
  0% { border-color: var(--neon-glow-color-1); box-shadow: 0 0 10px var(--neon-glow-color-1), 0 0 20px var(--neon-glow-color-1); }
  16.6% { border-color: var(--neon-glow-color-5); box-shadow: 0 0 10px var(--neon-glow-color-5), 0 0 20px var(--neon-glow-color-5); }
  33.3% { border-color: var(--neon-glow-color-3); box-shadow: 0 0 10px var(--neon-glow-color-3), 0 0 20px var(--neon-glow-color-3); }
  50% { border-color: var(--neon-glow-color-4); box-shadow: 0 0 10px var(--neon-glow-color-4), 0 0 20px var(--neon-glow-color-4); }
  66.6% { border-color: var(--neon-glow-color-2); box-shadow: 0 0 10px var(--neon-glow-color-2), 0 0 20px var(--neon-glow-color-2); }
  83.3% { border-color: var(--neon-glow-color-6); box-shadow: 0 0 10px var(--neon-glow-color-6), 0 0 20px var(--neon-glow-color-6); }
  100% { border-color: var(--neon-glow-color-1); box-shadow: 0 0 10px var(--neon-glow-color-1), 0 0 20px var(--neon-glow-color-1); }
}

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

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

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes random-glow {
  0% { border-color: var(--neon-glow-color-1); box-shadow: 0 0 20px var(--neon-glow-color-1); }
  20% { border-color: var(--neon-glow-color-2); box-shadow: 0 0 20px var(--neon-glow-color-2); }
  40% { border-color: var(--neon-glow-color-3); box-shadow: 0 0 20px var(--neon-glow-color-3); }
  60% { border-color: var(--neon-glow-color-4); box-shadow: 0 0 20px var(--neon-glow-color-4); }
  80% { border-color: var(--neon-glow-color-5); box-shadow: 0 0 20px var(--neon-glow-color-5); }
  100% { border-color: var(--neon-glow-color-1); box-shadow: 0 0 20px var(--neon-glow-color-1); }
}

@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-glow-color-1);
    box-shadow:
      0 0 10px var(--neon-glow-color-1),
      0 0 20px var(--neon-glow-color-1),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  33% {
    border-color: var(--neon-glow-color-2);
    box-shadow:
      0 0 10px var(--neon-glow-color-2),
      0 0 20px var(--neon-glow-color-2),
      inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
  66% {
    border-color: var(--neon-glow-color-3);
    box-shadow:
      0 0 10px var(--neon-glow-color-3),
      0 0 20px var(--neon-glow-color-3),
      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-glow-color-1), 0 0 10px var(--neon-glow-color-1), 0 0 15px var(--neon-glow-color-1); color: #ffffff; }
  50% { text-shadow: 0 0 5px var(--neon-glow-color-2), 0 0 10px var(--neon-glow-color-2), 0 0 15px var(--neon-glow-color-2); color: #ffffff; }
  100% { text-shadow: 0 0 5px var(--neon-glow-color-3), 0 0 10px var(--neon-glow-color-3), 0 0 15px var(--neon-glow-color-3); color: #ffffff; }
}

/* Header Styles (Desktop First) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  min-height: 110px;
}

.header-top {
  background: var(--header-top-bg);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  padding: 10px 0;
}

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

.logo {
  font-size: 2.5em;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  animation: text-glow-flow 3s ease-in-out infinite alternate, neon-flicker 2s infinite alternate;
  text-shadow: 0 0 5px var(--neon-glow-color-1), 0 0 10px var(--neon-glow-color-1), 0 0 15px var(--neon-glow-color-1);
}

.desktop-nav-buttons {
  display: flex;
  gap: 15px;
  margin-left: auto;
}

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-glow-color-1), var(--neon-glow-color-2));
  padding: 12px 30px;
  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-glow-color-1);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap;
}

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

.main-nav {
  background: var(--main-nav-bg);
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 5s linear infinite reverse;
  padding: 10px 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

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

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  padding: 8px 15px;
  white-space: nowrap;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  font-weight: 500;
}

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

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

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

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

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 15px;
}

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

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

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

.footer-nav li a {
  color: #ccc;
  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);
}

.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 better visibility on dark background */
  transition: filter 0.3s ease;
}

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

.footer-middle-sections {
  max-width: 1200px;
  margin: 0 auto 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.game-providers-section, .social-media-section {
  border-top: 1px solid #333;
  padding-top: 25px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.footer-legal-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

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

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: 120px; /* Adjust for mobile header + button area */
  }

  .site-header {
    min-height: auto;
  }

  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none;
    justify-content: space-between;
    position: relative; /* For hamburger button positioning */
  }

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

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

  .hamburger-menu {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    order: 1;
    color: var(--neon-glow-color-3); /* Base color for glow */
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
    border-radius: 3px;
    position: relative;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hamburger-menu:hover {
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
  }

  .hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    position: relative;
    transition: background-color 0.3s ease-in-out;
  }

  .hamburger-icon::before, .hamburger-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    position: absolute;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
  }

  .hamburger-icon::before {
    top: -8px;
  }

  .hamburger-icon::after {
    top: 8px;
  }

  .hamburger-menu.active .hamburger-icon {
    background-color: transparent;
  }

  .hamburger-menu.active .hamburger-icon::before {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-menu.active .hamburger-icon::after {
    transform: translateY(-8px) rotate(-45deg);
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    overflow-y: auto;
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
    border-right: 2px solid;
    animation: theme-colors 5s linear infinite reverse;
    padding-top: 20px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    z-index: 1000; /* Ensure it's above overlay but below hamburger button */
  }

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

  .nav-container {
    flex-direction: column;
    padding: 0 15px;
    width: 100%;
    max-width: none;
    align-items: flex-start;
  }

  .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .mobile-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    background: var(--header-top-bg);
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
  }

  .mobile-nav-buttons .btn {
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 10px 15px;
    font-size: 14px;
  }

  .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;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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

/* No scroll for body when menu is open */
body.no-scroll {
  overflow: hidden;
}
