:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --text-color: #ffffff;
  --link-color: #cccccc;
  --link-hover-color: var(--secondary-color);

  /* Dynamic Neon Colors - derived from primary/secondary */
  --neon-primary: var(--secondary-color); /* Bright Yellow */
  --neon-secondary: #00ffff; /* Bright Cyan */
  --neon-accent: #ff00ff; /* Bright Magenta */
  --neon-flicker-color: var(--neon-primary);
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--dark-bg-1);
  /* Padding to prevent fixed header from obscuring content */
  padding-top: 130px; /* Adjust based on actual header height + mobile buttons */
}

/* Utility classes for container */
.header-container,
.nav-container,
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* 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 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(255, 215, 0, 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(0, 255, 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, 0, 255, 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: var(--text-color);
  }
  50% {
    text-shadow:
      0 0 5px var(--neon-secondary),
      0 0 10px var(--neon-secondary),
      0 0 15px var(--neon-secondary);
    color: var(--text-color);
  }
  100% {
    text-shadow:
      0 0 5px var(--neon-accent),
      0 0 10px var(--neon-accent),
      0 0 15px var(--neon-accent);
    color: var(--text-color);
  }
}

/* Header Styles - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2)); /* Main header background */
}

.site-header .header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  border-bottom: 2px solid var(--neon-primary);
  animation: theme-colors 4s ease-in-out infinite;
  padding: 10px 0;
}

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

.site-header .logo {
  font-size: 2.2em;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-color);
  animation: text-glow-flow 3s ease-in-out infinite alternate, pulse-glow 2s ease-in-out infinite alternate;
  text-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary), 0 0 15px var(--neon-primary);
}

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

.site-header .main-nav {
  background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-2), var(--dark-bg-1)); /* Different dark gradient for visual distinction */
  border-top: 2px solid var(--neon-secondary);
  border-bottom: 2px solid var(--neon-secondary);
  animation: alternate-colors 4s ease-in-out infinite;
  padding: 10px 0;
  display: flex; /* Desktop default: visible, horizontal */
  flex-direction: row;
  position: static; /* Desktop default: static */
  width: 100%;
}

.site-header .main-nav .nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.site-header .nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1em;
  padding: 5px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.site-header .nav-link:hover {
  color: var(--link-hover-color);
  text-shadow: 0 0 5px var(--link-hover-color);
}

.site-header .btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  padding: 12px 25px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow:
    0 0 5px var(--text-color),
    0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap;
}

.site-header .btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--neon-secondary), var(--neon-accent));
}

.site-header .hamburger-menu,
.site-header .mobile-nav-buttons,
.site-header .mobile-menu-overlay {
  display: none; /* Hidden by default on desktop */
}

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

.site-footer a {
  color: var(--link-color);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--link-hover-color);
}

.site-footer h4 {
  color: var(--text-color);
  font-size: 1.1em;
  margin-bottom: 15px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

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

.site-footer .footer-top-area {
  margin-bottom: 30px;
}

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

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

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

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

.site-footer .payment-methods .payment-icons img,
.site-footer .game-providers-section .game-providers-icons img,
.site-footer .social-media-section .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;
}

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

.site-footer .footer-mid-area {
  background-color: var(--dark-bg-1);
  padding: 20px 0;
  margin-bottom: 30px;
}

.site-footer .footer-mid-area .footer-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-footer .game-providers-section,
.site-footer .social-media-section {
  width: 100%;
}

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

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

.site-footer .copyright {
  margin-right: 20px;
}

.site-footer .footer-legal-links a {
  margin-left: 15px;
  white-space: nowrap;
}

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

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

  .site-header .header-top .header-container {
    justify-content: space-between; /* Hamburger left, logo centered */
    position: relative;
  }

  .site-header .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1002;
    position: absolute;
    left: 15px;
    animation: theme-colors 4s ease-in-out infinite; /* Neon glow for hamburger */
    border-radius: 3px;
    padding: 3px;
    box-shadow:
      0 0 5px var(--neon-primary),
      0 0 10px var(--neon-primary);
  }

  .site-header .hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--neon-primary);
    border-radius: 5px;
    transition: all 0.3s ease;
  }

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

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

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

  .site-header .logo {
    flex-grow: 1;
    text-align: center;
    margin: 0;
    font-size: 1.8em;
    padding-left: 30px; /* Offset for hamburger */
  }

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

  .site-header .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, var(--dark-bg-3), var(--dark-bg-1));
    padding-top: 80px;
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-out;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    border-right: 2px solid var(--neon-secondary);
  }

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

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

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

  .site-header .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-bottom: 2px solid var(--neon-accent);
    animation: random-glow 5s linear infinite; /* Different glow for mobile buttons */
    flex-wrap: wrap;
  }

  .site-header .mobile-nav-buttons .btn {
    flex: 1 1 auto;
    min-width: 120px;
    text-align: center;
  }

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

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

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

  .site-footer .footer-bottom-area .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .site-footer .copyright {
    margin-right: 0;
  }

  .site-footer .footer-legal-links a {
    margin: 0 8px;
  }
}