:root {
  --site-primary: #003366; /* Dark blue */
  --site-secondary: #FFD700; /* Gold */

  /* Base neon colors for dynamic effects */
  --neon-base-1: #00FFFF; /* Cyan */
  --neon-base-2: #FF00FF; /* Magenta */
  --neon-base-3: #FFFF00; /* Yellow */
  --neon-base-4: #FF0000; /* Red */
  --neon-base-5: #00FF00; /* Green */
  --neon-base-6: #0000FF; /* Blue */

  --header-height: 0px;
}

/* General Body Styles for Content Area Protection */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #0a0a0a;
  color: #f0f0f0;
  padding-top: var(--header-height);
  transition: padding-top 0.3s ease-in-out;
}

/* Animations for dynamic colors and glow effects */
@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-base-1);
    box-shadow: 0 0 10px var(--neon-base-1), 0 0 20px var(--neon-base-1), inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  33% {
    border-color: var(--neon-base-2);
    box-shadow: 0 0 10px var(--neon-base-2), 0 0 20px var(--neon-base-2), inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
  66% {
    border-color: var(--neon-base-3);
    box-shadow: 0 0 10px var(--neon-base-3), 0 0 20px var(--neon-base-3), inset 0 0 10px rgba(255, 255, 0, 0.3);
  }
}

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

@keyframes text-glow-flow {
  0% {
    text-shadow: 0 0 5px var(--neon-base-1), 0 0 10px var(--neon-base-1), 0 0 15px var(--neon-base-1);
    color: #ffffff;
  }
  50% {
    text-shadow: 0 0 5px var(--neon-base-2), 0 0 10px var(--neon-base-2), 0 0 15px var(--neon-base-2);
    color: #ffffff;
  }
  100% {
    text-shadow: 0 0 5px var(--neon-base-3), 0 0 10px var(--neon-base-3), 0 0 15px var(--neon-base-3);
    color: #ffffff;
  }
}

@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; }
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Base dark background */
}

.header-top {
  display: flex;
  align-items: center;
  padding: 10px 0;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  animation: theme-colors 4s ease-in-out infinite alternate; /* Dynamic glow for header-top */
  border-bottom: 2px solid; /* Border color animated by theme-colors */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* Padding for logo and buttons from container edges */
}

.logo {
  font-size: 2.5em;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  text-transform: uppercase;
  animation: text-glow-flow 3s ease-in-out infinite alternate; /* Dynamic text glow */
  order: 1; /* Default order for desktop */
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  order: 3; /* Default order for desktop */
}

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-base-1), var(--neon-base-2));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  text-shadow: 0 0 5px #ffffff, 0 0 10px currentColor;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: bold;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn.theme-flow {
  animation: theme-colors 4s ease-in-out infinite;
}

.btn.alternate-glow {
  animation: alternate-colors 2s ease-in-out infinite alternate;
}

.main-nav {
  display: flex; /* Desktop default */
  width: 100%;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  animation: alternate-colors 3s ease-in-out infinite alternate; /* Distinct dynamic glow for main-nav */
  border-top: 2px solid; /* Border color animated by alternate-colors */
  border-bottom: 2px solid; /* Border color animated by alternate-colors */
}

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

.nav-link {
  color: #f0f0f0;
  text-decoration: none;
  padding: 10px 15px;
  margin: 0 5px;
  font-size: 1.1em;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--site-secondary);
  background-color: rgba(255, 215, 0, 0.1);
  border-radius: 3px;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: 1px solid currentColor; /* Dynamic glow */
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  animation: pulse-glow 2s ease-in-out infinite alternate; /* Dynamic glow */
  border-radius: 3px;
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--neon-base-1);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.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);
}

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

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

/* Footer Styles */
.site-footer {
  background: linear-gradient(135deg, #1a1a2e, #0a0a0a, #16213e);
  color: #f0f0f0;
  padding: 40px 0 20px 0;
  font-size: 0.9em;
  border-top: 1px solid #333;
}

.site-footer a {
  color: #f0f0f0;
  text-decoration: none;
}

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

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

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

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

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

.footer-logo {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}

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

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

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

.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;
  filter: grayscale(100%) brightness(150%); /* Make icons fit dark theme */
  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-section {
  padding: 20px 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
}

.footer-middle-section .footer-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.copyright {
  text-align: center;
  font-size: 0.85em;
  color: #aaa;
  margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none;
    justify-content: space-between;
  }

  .logo {
    font-size: 2em;
    order: 2; /* Center logo on mobile */
    flex: 1;
    text-align: center;
  }

  .hamburger-menu {
    display: block;
    order: 1;
    margin-right: auto; /* Push logo to center */
  }

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

  .mobile-buttons-area {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    width: 100%;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite alternate;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 0; /* Will be adjusted by JS to be below header-top and mobile-buttons-area */
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    padding-top: 20px;
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    animation: alternate-colors 3s ease-in-out infinite alternate; /* Dynamic glow */
    border-right: 2px solid;
  }

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

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

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

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

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

  .site-footer {
    padding: 30px 0 15px 0;
  }

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

  .footer-col {
    margin-bottom: 20px;
  }

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

  .footer-middle-section .footer-container {
    flex-direction: column;
    gap: 15px;
  }

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