:root {
  --primary-color: #007bff; /* Base blue */
  --secondary-color: #ffc107; /* Base yellow */

  --neon-primary: #00ffff; /* Cyan for primary neon, related to blue */
  --neon-secondary: #ffeb3b; /* Bright yellow for secondary neon, related to yellow */
  --neon-accent: #ff00ff; /* Magenta for accent neon */

  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
}

/* Base styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #f0f0f0;
  background-color: #000000;
  line-height: 1.6;
  padding-top: 120px; /* Default padding for fixed header on desktop */
}

/* Animations */
@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(0, 255, 255, 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(255, 235, 59, 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 theme-colors-border {
  0%, 100% { border-color: var(--neon-primary); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
  33% { border-color: var(--neon-secondary); box-shadow: 0 0 10px var(--neon-secondary), 0 0 20px var(--neon-secondary); }
  66% { border-color: var(--neon-accent); box-shadow: 0 0 10px var(--neon-accent), 0 0 20px var(--neon-accent); }
}

@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-span {
  0%, 100% { background-color: var(--neon-primary); }
  33% { background-color: var(--neon-secondary); }
  66% { background-color: var(--neon-accent); }
}

/* Header styles (Desktop First) */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

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

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

.logo {
  font-family: 'Impact', 'Arial Black', sans-serif; /* Example font for cyberpunk feel */
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  animation: text-glow-flow 3s 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);
}

.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;
  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;
  white-space: nowrap;
  font-weight: bold;
}

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

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

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

.main-nav {
  background-color: #1c1c1c; /* Regular dark background */
  border-top: 1px solid #333;
  padding: 10px 0;
  width: 100%;
  display: flex; /* Desktop: flex for horizontal menu */
  flex-direction: row;
  justify-content: center;
  position: static; /* Desktop: normal flow */
}

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

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

.nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.mobile-menu-overlay {
  display: none;
}

/* Footer styles */
.site-footer {
  background-color: #111;
  color: #ccc;
  padding: 40px 20px 20px;
  font-size: 14px;
}

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

.footer-col h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

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

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

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

.footer-col ul li a:hover {
  color: var(--primary-color);
}

.footer-logo {
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

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

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

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

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

.footer-bottom-copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  max-width: 1200px;
  margin: 0 auto;
}

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

  .header-container {
    padding: 0 15px;
  }

  .header-top {
    position: relative; /* For absolute positioning of hamburger */
    justify-content: center; /* Center logo */
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    left: 15px;
    border: 1px solid;
    animation: theme-colors-border 4s ease-in-out infinite;
    padding: 5px;
    border-radius: 3px;
  }

  .hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--neon-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    animation: theme-colors-span 4s ease-in-out infinite;
  }

  .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-grow: 1;
    text-align: center;
    font-size: 24px;
    margin: 0;
  }

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

  .header-container .desktop-nav-buttons {
    visibility: hidden;
    width: 30px; /* To balance hamburger width */
  }

  .mobile-buttons-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-2));
    border-bottom: 2px solid;
    animation: theme-colors-border 4s ease-in-out infinite;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%; /* Menu width */
    height: 100%;
    background-color: var(--dark-bg-2); /* Dark background for mobile menu */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease;
    z-index: 9999; /* Above overlay */
    padding-top: 80px; /* Space for fixed header content */
    overflow-y: auto; /* Enable scrolling for long menus */
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 15px;
    width: 100%; /* Ensure container takes full width */
  }

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

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

  .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: 9998;
  }

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

  body.no-scroll {
    overflow: hidden;
  }

  /* Footer responsive */
  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col ul {
    text-align: center;
  }

  .footer-col ul li a {
    display: inline-block;
  }

  .payment-icons, .game-providers-icons, .social-media-icons {
    justify-content: center;
  }
}