:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;

  --neon-primary: hsl(217, 100%, 70%); /* Bright blue derived from #007bff */
  --neon-secondary: hsl(45, 100%, 70%); /* Bright yellow derived from #ffc107 */
  --neon-accent: hsl(300, 100%, 70%); /* A vibrant accent, e.g., pink/magenta */

  --header-top-bg: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  --main-nav-bg: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);

  --glow-color-1: hsl(217, 100%, 70%);
  --glow-color-2: hsl(45, 100%, 70%);
  --glow-color-3: hsl(300, 100%, 70%);
  --glow-color-4: hsl(0, 100%, 70%);
}

/* Keyframe 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;
  }
  33% {
    text-shadow:
      0 0 5px var(--neon-secondary),
      0 0 10px var(--neon-secondary),
      0 0 15px var(--neon-secondary);
    color: #ffffff;
  }
  66% {
    text-shadow:
      0 0 5px var(--neon-accent),
      0 0 10px var(--neon-accent),
      0 0 15px var(--neon-accent);
    color: #ffffff;
  }
  100% {
    text-shadow:
      0 0 5px var(--neon-primary),
      0 0 10px var(--neon-primary),
      0 0 15px var(--neon-primary);
    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 hsla(217, 100%, 70%, 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 hsla(45, 100%, 70%, 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 hsla(300, 100%, 70%, 0.3);
  }
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #000;
  color: #fff;
  padding-top: 130px; /* Adjust for fixed header height on desktop */
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  min-height: auto;
  color: var(--neon-primary);
}

.header-top {
  background: var(--header-top-bg);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  padding: 10px 0;
}

.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;
  text-decoration: none;
  color: #fff;
  text-shadow:
    0 0 5px var(--neon-primary),
    0 0 10px var(--neon-primary),
    0 0 15px var(--neon-primary);
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  text-transform: uppercase;
}

.main-nav {
  background: var(--main-nav-bg);
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite reverse;
  padding: 10px 0;
  display: flex; /* Desktop default: flex */
  flex-direction: row; /* Desktop default: row */
  justify-content: center;
}

.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: #ccc;
  text-decoration: none;
  padding: 8px 15px;
  margin: 0 5px;
  font-size: 1em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--neon-primary);
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  padding: 10px 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;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  box-shadow:
    0 0 15px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Mobile specific elements (hidden by default on desktop) */
.mobile-header-bar,
.mobile-nav-buttons,
.mobile-menu-overlay {
  display: none;
}

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

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

.footer-col h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.1em;
}

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

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

.footer-nav-list {
  list-style: none;
}

.footer-nav-list li a {
  color: #aaa;
  text-decoration: none;
  padding: 5px 0;
  display: block;
}

.footer-nav-list li a:hover {
  color: #fff;
}

.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 auto;
  border-top: 1px solid #333;
  padding-top: 30px;
}

.game-providers-section,
.social-media-section {
  margin-bottom: 20px;
}

.game-providers-section h4,
.social-media-section h4 {
  margin-bottom: 15px;
  color: #fff;
}

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

.copyright {
  color: #888;
  font-size: 0.85em;
}

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

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

  .header-top {
    display: none; /* Hide desktop top bar */
  }

  .mobile-header-bar {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--header-top-bg);
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
  }

  .mobile-logo {
    font-size: 1.8em;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    flex-grow: 1;
    text-align: center;
    text-shadow:
      0 0 5px var(--neon-primary),
      0 0 10px var(--neon-primary),
      0 0 15px var(--neon-primary);
    animation: text-glow-flow 3s ease-in-out infinite alternate;
    text-transform: uppercase;
  }

  .hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1001;
    animation: theme-colors 4s ease-in-out infinite;
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    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(10.5px) rotate(45deg);
  }

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

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

  .mobile-nav-buttons {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--main-nav-bg);
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite reverse;
    z-index: 990;
  }

  .mobile-nav-buttons .btn {
    font-size: 0.9em;
    padding: 8px 18px;
  }

  .main-nav {
    display: none; /* Mobile default: hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #1a1a1a;
    flex-direction: column; /* Mobile: column */
    padding-top: 60px; /* Space for mobile header bar */
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex; /* CRITICAL: Must be flex to show */
    transform: translateX(0); /* Slide in */
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    max-width: none; /* CRITICAL: No max-width on mobile */
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 15px;
    margin: 0;
    border-bottom: 1px solid #333;
  }

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

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

  body.no-scroll {
    overflow: hidden;
  }

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

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

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-nav-list li a {
    text-align: center;
  }

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