:root {
  --primary-color: #007BFF;
  --secondary-color: #28A745;
  --accent-color: #ff00ff;

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

  --neon-primary-rgb: 0, 123, 255;
  --neon-secondary-rgb: 40, 167, 69;
  --neon-accent-rgb: 255, 0, 255;

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

  --text-light: #ffffff;
  --text-muted: #cccccc;
  --text-dark: #333333;
}

/* General Reset & Body */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background-color: #0a0a0a; /* Ensure dark background for main content */
  padding-top: 150px; /* Adjusted dynamically by JS for fixed header */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

/* Keyframe Animations for Neon Effects */
@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(var(--neon-primary-rgb), 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(var(--neon-secondary-rgb), 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(var(--neon-accent-rgb), 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-light);
  }
  50% {
    text-shadow:
      0 0 5px var(--neon-secondary),
      0 0 10px var(--neon-secondary),
      0 0 15px var(--neon-secondary);
    color: var(--text-light);
  }
  100% {
    text-shadow:
      0 0 5px var(--neon-accent),
      0 0 10px var(--neon-accent),
      0 0 15px var(--neon-accent);
    color: var(--text-light);
  }
}

@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 header-top-glow-anim {
  0%, 100% {
    border-bottom-color: var(--neon-primary);
    box-shadow:
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary),
      0 0 30px var(--neon-primary),
      inset 0 0 20px rgba(var(--neon-primary-rgb), 0.1);
  }
  33% {
    border-bottom-color: var(--neon-secondary);
    box-shadow:
      0 0 10px var(--neon-secondary),
      0 0 20px var(--neon-secondary),
      0 0 30px var(--neon-secondary),
      inset 0 0 20px rgba(var(--neon-secondary-rgb), 0.1);
  }
  66% {
    border-bottom-color: var(--neon-accent);
    box-shadow:
      0 0 10px var(--neon-accent),
      0 0 20px var(--neon-accent),
      0 0 30px var(--neon-accent),
      inset 0 0 20px rgba(var(--neon-accent-rgb), 0.1);
  }
}

@keyframes main-nav-glow-anim {
  0%, 100% {
    border-top-color: var(--neon-secondary);
    border-bottom-color: var(--neon-secondary);
    box-shadow:
      0 0 10px var(--neon-secondary),
      0 0 20px var(--neon-secondary),
      0 0 30px var(--neon-secondary),
      inset 0 0 20px rgba(var(--neon-secondary-rgb), 0.1);
  }
  33% {
    border-top-color: var(--neon-accent);
    border-bottom-color: var(--neon-accent);
    box-shadow:
      0 0 10px var(--neon-accent),
      0 0 20px var(--neon-accent),
      0 0 30px var(--neon-accent),
      inset 0 0 20px rgba(var(--neon-accent-rgb), 0.1);
  }
  66% {
    border-top-color: var(--neon-primary);
    border-bottom-color: var(--neon-primary);
    box-shadow:
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary),
      0 0 30px var(--neon-primary),
      inset 0 0 20px rgba(var(--neon-primary-rgb), 0.1);
  }
}

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

.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  padding: 15px 0;
  border-bottom: 2px solid;
  animation: header-top-glow-anim 6s ease-in-out infinite alternate;
}

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

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--text-light);
  text-transform: uppercase;
  transition: color 0.3s ease;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}

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

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

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

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  padding: 10px 0;
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: main-nav-glow-anim 6s ease-in-out infinite alternate;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: static;
  width: 100%;
}

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

.nav-link {
  color: var(--text-muted);
  padding: 10px 15px;
  font-size: 1.1em;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--neon-primary);
  transform: translateY(-2px);
}

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

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

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

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

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

.footer-col h4 {
  color: var(--text-light);
  font-size: 1.2em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

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

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

.footer-nav a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-nav 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-methods h4,
.game-providers-section h4,
.social-media-section h4 {
  margin-top: 0;
}

.game-providers-section,
.social-media-section {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-section {
  padding: 25px 0;
  text-align: center;
}

.copyright {
  font-size: 0.85em;
  color: var(--text-muted);
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  body {
    padding-top: 200px; /* Adjust for fixed header + mobile buttons */
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-top {
    padding: 10px 0;
    border-bottom: none;
  }

  .header-container {
    padding: 0 15px;
    justify-content: space-between;
  }

  .logo {
    font-size: 1.8em;
    flex: 1;
    text-align: center;
    order: 2;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
    order: 1;
    animation: theme-colors 4s ease-in-out infinite alternate; /* Neon glow for hamburger */
    border-radius: 3px;
  }

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

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

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

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

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-4));
    border-bottom: 2px solid;
    animation: header-top-glow-anim 6s ease-in-out infinite alternate; /* Same glow as header-top */
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-nav-buttons .btn {
    flex: 1 1 auto;
    min-width: 120px;
    max-width: calc(100% - 20px); /* Allow some space for multiple buttons */
    padding: 10px 15px;
    font-size: 0.9em;
    white-space: normal;
    word-wrap: break-word;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, var(--dark-bg-4), var(--dark-bg-1));
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000; /* Ensure it's above overlay */
    padding-top: 80px; /* Space for fixed header content */
    border-right: 2px solid;
    animation: main-nav-glow-anim 6s ease-in-out infinite alternate; /* Apply glow */
  }

  .main-nav.active {
    display: flex; /* Show when active */
    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 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1em;
  }

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

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

  body.no-scroll {
    overflow: hidden;
  }

  /* Footer Mobile Adjustments */
  .footer-top-section .footer-container {
    grid-template-columns: 1fr;
  }

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

  .footer-col ul {
    padding: 0;
  }

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

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