:root {
  --primary-color: #0A2463;
  --secondary-color: #E3B505;
  --neon-yellow: #FFFF00;
  --neon-blue: #00FFFF;
  --neon-red: #FF0000;
  --neon-purple: #8A2BE2;
  --neon-orange: #FFA500;

  --neon-primary: var(--secondary-color); /* Derived from E3B505 */
  --neon-secondary: var(--primary-color); /* Derived from 0A2463 */
  --neon-accent: #FF00FF; /* Vibrant pink for contrast */

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

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #c0c0c0;
  background-color: #0a0a0a;
  padding-top: 120px; /* Adjust for sticky header + mobile buttons */
  direction: ltr;
}

body.no-scroll {
  overflow: hidden;
}

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

ul {
  list-style: none;
}

/* Neon Glow Animations */
@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 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(227, 181, 5, 0.3);
  }
  33% {
    border-color: var(--neon-blue);
    box-shadow:
      0 0 10px var(--neon-blue),
      0 0 20px var(--neon-blue),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  66% {
    border-color: var(--neon-red);
    box-shadow:
      0 0 10px var(--neon-red),
      0 0 20px var(--neon-red),
      inset 0 0 10px rgba(255, 0, 0, 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-blue),
      0 0 10px var(--neon-blue),
      0 0 15px var(--neon-blue);
    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: 1001;
  background: var(--header-bg-dark);
}

.header-top {
  width: 100%;
  background: var(--header-bg-dark);
  border-bottom: 2px solid var(--neon-yellow);
  box-shadow:
    0 0 10px var(--neon-yellow),
    0 0 20px var(--neon-yellow),
    0 0 30px var(--neon-yellow),
    inset 0 0 20px rgba(255, 255, 0, 0.1);
  animation: theme-colors 8s linear infinite alternate; /* Dynamic glow for header-top */
}

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

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

.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;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic button glow */
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

.main-nav {
  width: 100%;
  background: var(--nav-bg-dark);
  border-top: 2px solid var(--neon-red);
  border-bottom: 2px solid var(--neon-red);
  box-shadow:
    0 0 10px var(--neon-red),
    0 0 20px var(--neon-red),
    0 0 30px var(--neon-red),
    inset 0 0 20px rgba(255, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  animation: theme-colors 6s linear infinite reverse; /* Dynamic glow for main-nav */
}

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

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

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

.hamburger-menu,
.mobile-nav-buttons,
.mobile-menu-overlay {
  display: none;
}

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

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

.footer-top-section {
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

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

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

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
  display: inline-block;
}

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

.footer-col ul {
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #c0c0c0;
  transition: color 0.3s;
}

.footer-col 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: 40px;
  height: auto;
  width: auto;
  filter: brightness(0.8) contrast(1.2);
  transition: filter 0.3s;
}

.payment-icons img:hover,
.game-providers-icons img:hover,
.social-media-icons img:hover {
  filter: brightness(1) contrast(1.5) drop-shadow(0 0 5px var(--neon-yellow));
}

.footer-mid-section {
  padding: 30px 0;
  border-bottom: 1px solid #333;
}

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

.game-providers-section:last-child,
.social-media-section:last-child {
  margin-bottom: 0;
}

.footer-bottom-section {
  padding-top: 20px;
}

.footer-bottom-section .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.copyright {
  margin-bottom: 10px;
  flex-basis: 100%;
  order: 2;
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  flex-basis: 100%;
  margin-bottom: 15px;
  order: 1;
}

.footer-legal-nav li a {
  color: #c0c0c0;
  transition: color 0.3s;
}

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

/* Mobile styles */
@media (max-width: 768px) {
  body {
    padding-top: 140px; /* Adjusted for mobile header + button row */
  }

  .site-header {
    display: flex;
    flex-direction: column;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 10px 15px;
    justify-content: space-between;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002; /* Above mobile menu */
    animation: pulse-glow 2s ease-in-out infinite alternate, theme-colors 4s ease-in-out infinite; /* Dynamic glow for hamburger */
    border-radius: 3px;
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--neon-yellow);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 5px var(--neon-yellow), 0 0 10px var(--neon-yellow);
  }

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

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

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

  .logo {
    flex: 1;
    text-align: center;
    font-size: 24px;
    margin: 0;
  }

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--nav-bg-dark);
    border-bottom: 2px solid var(--neon-red);
    box-shadow:
      0 0 5px var(--neon-red),
      0 0 10px var(--neon-red);
  }

  .mobile-nav-buttons .btn {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 120px; /* Ensure buttons are not too small */
    padding: 10px 15px;
    font-size: 14px;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
  }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 70%; /* Slide in from left */
    height: 100vh;
    background: var(--nav-bg-dark);
    flex-direction: column;
    padding-top: 80px; /* Space for fixed header content */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    border-right: 2px solid var(--neon-blue);
    box-shadow:
      0 0 10px var(--neon-blue),
      0 0 20px var(--neon-blue);
  }

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

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

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

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

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

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

  .footer-bottom-section .footer-container {
    flex-direction: column;
  }

  .copyright {
    order: 2;
    margin-top: 15px;
  }

  .footer-legal-nav {
    order: 1;
    margin-bottom: 15px;
  }
}