:root {
  --primary-site-color: #FFD700; /* Gold */
  --secondary-site-color: #8B0000; /* Dark Red */
  --accent-site-color: #FF6600; /* Orange */

  --neon-primary: var(--primary-site-color);
  --neon-secondary: var(--secondary-site-color);
  --neon-accent: var(--accent-site-color);

  /* Dark backgrounds */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --dark-bg-4: #0f3460; /* Slightly different dark blue for contrast */

  --header-top-height: 60px; /* Approximate height of header-top */
  --main-nav-height: 50px; /* Approximate height of main-nav */
  --mobile-button-height: 60px; /* Approximate height of mobile buttons */
}

/* Base styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #f0f0f0;
  background-color: #000000;
  padding-top: calc(var(--header-top-height) + var(--main-nav-height)); /* Desktop padding */
}

/* 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 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;
  }
}

@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(139, 0, 0, 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, 102, 0, 0.3);
  }
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--dark-bg-1); /* Fallback dark background */
}

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

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

.logo {
  font-size: 1.8em;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  transition: all 0.3s ease;
}

.logo:hover {
  filter: brightness(1.2);
  animation-duration: 2s; /* Speed up glow on hover */
}

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

/* Main Navigation */
.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-4), var(--dark-bg-2));
  padding: 5px 0;
  border-top: 2px solid var(--neon-secondary);
  border-bottom: 2px solid var(--neon-secondary);
  animation: theme-colors 5s linear infinite alternate;
  display: flex; /* Desktop default: show */
  flex-direction: row; /* Desktop default: horizontal */
  position: static; /* Desktop default: normal flow */
  min-height: var(--main-nav-height);
}

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

.nav-link {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  padding: 8px 15px;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 5px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--neon-primary);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-accent));
  padding: 12px 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: bold;
  white-space: nowrap;
  overflow: hidden; /* For glow effect not to expand outside */
}

.btn:hover {
  animation-duration: 2s; /* speed up glow on hover */
  transform: translateY(-2px);
  filter: brightness(1.2);
}

/* Hamburger Menu (Mobile Only) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

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

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

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

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

/* Mobile Navigation specific styles */
.mobile-nav-buttons-container {
  display: none; /* Hidden on desktop */
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  padding: 15px 20px;
  justify-content: center;
  gap: 15px;
  border-bottom: 2px solid var(--neon-accent);
  animation: theme-colors 4s ease-in-out infinite reverse;
  flex-wrap: wrap;
}

.mobile-menu-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

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

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

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

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

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

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

.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(--primary-site-color);
}

.payment-methods, .game-providers-section, .social-media-section {
  margin-top: 30px;
}

.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-bottom {
  border-top: 1px solid #333333;
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
}

.copyright {
  margin-bottom: 10px;
  color: #aaaaaa;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-top: calc(var(--header-top-height) + var(--mobile-button-height)); /* Mobile padding */
  }

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

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

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

  .hamburger-menu {
    display: flex;
    order: -1; /* Place hamburger on the left */
    margin-right: auto; /* Push logo to center */
  }

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column; /* Vertical for mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    max-width: 300px;
    height: 100%;
    background: linear-gradient(180deg, var(--dark-bg-1), var(--dark-bg-3));
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-in-out;
    border: none; /* Remove border for cleaner mobile menu */
    animation: none; /* Remove animation for mobile menu */
    padding-top: calc(var(--header-top-height) + var(--mobile-button-height) + 20px); /* Adjust for fixed header and buttons */
    overflow-y: auto;
  }

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

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

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

  .mobile-nav-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: sticky; /* Or fixed, but sticky below header-top is better */
    top: var(--header-top-height);
    z-index: 900; /* Below main-nav */
    padding: 10px 15px;
  }

  .mobile-nav-buttons-container .btn {
    flex: 1;
    max-width: 180px;
    text-align: center;
  }

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

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