:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;

  --neon-primary: #667eea;
  --neon-secondary: #764ba2;
  --neon-accent: #f093fb;
  --neon-cycle-1: #ff00ff, #00ffff, #ffff00, #ff0000, #00ff00, #0000ff;
  --neon-cycle-2: #00ffff, #ffff00, #ff00ff, #00ff00, #ff0000, #0000ff;
  --neon-cycle-3: #ffff00, #ff00ff, #00ffff, #ff0000, #00ff00, #0000ff;

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

  --text-color-light: #ffffff;
  --text-color-faded: #cccccc;
  --text-color-neon-menu: #e0e0e0;

  --header-height-top-desktop: 60px;
  --header-height-main-nav-desktop: 50px;
  --header-height-desktop: calc(var(--header-height-top-desktop) + var(--header-height-main-nav-desktop));

  --header-height-mobile-top: 60px;
  --header-height-mobile-buttons: 55px;
  --header-height-mobile: calc(var(--header-height-mobile-top) + var(--header-height-mobile-buttons));
}

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

body {
  font-family: 'Arial', sans-serif;
  background-color: var(--dark-bg-1);
  color: var(--text-color-light);
  line-height: 1.6;
  padding-top: var(--header-height-desktop);
}

body.no-scroll {
  overflow: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--text-color-light);
}

/* Neon Glow Animations */
@keyframes rainbow-border {
  0% {
    border-color: #ff0000;
    box-shadow:
      0 0 10px #ff0000,
      0 0 20px #ff0000;
  }
  16.6% {
    border-color: #ff8000;
    box-shadow:
      0 0 10px #ff8000,
      0 0 20px #ff8000;
  }
  33.3% {
    border-color: #ffff00;
    box-shadow:
      0 0 10px #ffff00,
      0 0 20px #ffff00;
  }
  50% {
    border-color: #00ff00;
    box-shadow:
      0 0 10px #00ff00,
      0 0 20px #00ff00;
  }
  66.6% {
    border-color: #0000ff;
    box-shadow:
      0 0 10px #0000ff,
      0 0 20px #0000ff;
  }
  83.3% {
    border-color: #8000ff;
    box-shadow:
      0 0 10px #8000ff,
      0 0 20px #8000ff;
  }
  100% {
    border-color: #ff0000;
    box-shadow:
      0 0 10px #ff0000,
      0 0 20px #ff0000;
  }
}

@keyframes hue-spin {
  0% {
    filter: hue-rotate(0deg);
    box-shadow:
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary);
  }
  100% {
    filter: hue-rotate(360deg);
    box-shadow:
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary);
  }
}

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

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
    box-shadow:
      0 0 10px #ff0000,
      0 0 20px #ff8000;
  }
  50% {
    background-position: 100% 50%;
    box-shadow:
      0 0 10px #00ffff,
      0 0 20px #0000ff;
  }
  100% {
    background-position: 0% 50%;
    box-shadow:
      0 0 10px #ff0000,
      0 0 20px #ff8000;
  }
}

@keyframes random-glow {
  0% {
    border-color: #ff00ff;
    box-shadow: 0 0 20px #ff00ff;
  }
  20% {
    border-color: #00ffff;
    box-shadow: 0 0 20px #00ffff;
  }
  40% {
    border-color: #ffff00;
    box-shadow: 0 0 20px #ffff00;
  }
  60% {
    border-color: #00ff00;
    box-shadow: 0 0 20px #00ff00;
  }
  80% {
    border-color: #ff0000;
    box-shadow: 0 0 20px #ff0000;
  }
  100% {
    border-color: #ff00ff;
    box-shadow: 0 0 20px #ff00ff;
  }
}

@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(102, 126, 234, 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(118, 75, 162, 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(240, 147, 251, 0.3);
  }
}

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

/* Header Styles (Desktop First) */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column; /* Stack top and main nav */
}

.header-top {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    inset 0 0 10px rgba(255, 255, 255, 0.1);
  height: var(--header-height-top-desktop);
  display: flex;
  align-items: center;
}

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

.logo {
  font-family: 'Electrolize', sans-serif; /* Placeholder for a techy font */
  font-size: 24px;
  font-weight: bold;
  color: var(--text-color-light);
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  text-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
}

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

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

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

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-4));
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite reverse;
  box-shadow:
    0 0 8px var(--neon-secondary),
    0 0 15px var(--neon-secondary),
    inset 0 0 8px rgba(255, 255, 255, 0.05);
  height: var(--header-height-main-nav-desktop);
  display: flex; /* Desktop default: visible */
  align-items: center;
}

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

.nav-link {
  color: var(--text-color-neon-menu);
  padding: 8px 15px;
  transition: color 0.3s, text-shadow 0.3s;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--neon-primary);
  text-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
}

/* Hamburger Menu (Desktop Hidden) */
.hamburger-menu {
  display: none;
}

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

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

/* Footer Styles */
.site-footer {
  background-color: var(--dark-bg-2);
  padding: 40px 20px 20px;
  color: var(--text-color-faded);
  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: var(--text-color-light);
  margin-bottom: 15px;
  font-size: 16px;
}

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

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

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

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

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

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

.payment-icons, .game-providers-icons, .social-media-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.payment-icons img, .game-providers-icons img, .social-media-icons img {
  max-height: 40px;
  height: auto;
  width: auto;
}

.game-providers-section, .social-media-section {
  max-width: 1200px;
  margin: 20px auto;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
}

.footer-legal-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}

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

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

.copyright {
  font-size: 13px;
}

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

  .site-header {
    flex-direction: column;
  }

  .header-top {
    height: var(--header-height-mobile-top);
  }

  .header-container {
    padding: 0 15px;
    max-width: none;
    width: 100%;
    justify-content: space-between;
    position: relative;
  }

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

  .hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color-light);
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--neon-accent);
  }

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

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

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

  .logo {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 20px;
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    width: 70%;
    max-width: 300px; /* Limit sidebar width */
    height: calc(100% - var(--header-height-mobile));
    background-color: var(--dark-bg-2);
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    overflow-y: auto;
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    z-index: 1000; /* Above overlay */
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
  }

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

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

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background-color: var(--dark-bg-1);
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite reverse;
    box-shadow:
      0 0 8px var(--neon-accent),
      0 0 15px var(--neon-accent),
      inset 0 0 8px rgba(255, 255, 255, 0.05);
  }

  .mobile-nav-buttons .btn {
    flex: 1 1 auto;
    max-width: calc(50% - 5px); /* Allow two buttons per row, with gap */
    min-width: 0;
    white-space: normal;
    word-wrap: break-word;
    font-size: 14px;
    padding: 10px 15px;
  }

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

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

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

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

  .footer-col ul {
    padding: 0;
  }

  .footer-logo {
    margin-bottom: 10px;
  }

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