:root {
  --primary-color: #E44D26;
  --secondary-color: #336699;

  --neon-header-bg-start: #0a0a0a;
  --neon-header-bg-mid: #1a1a2e;
  --neon-header-bg-end: #16213e;

  --neon-nav-bg-start: #1a1a2e;
  --neon-nav-bg-mid: #16213e;
  --neon-nav-bg-end: #0f3460;

  --neon-border-color-1: #FFFF00; /* Yellow */
  --neon-border-color-2: #FF1493; /* DeepPink */
  --neon-border-color-3: #00FFFF; /* Cyan */

  --neon-text-glow-1: #FF4500; /* OrangeRed */
  --neon-text-glow-2: #00FF7F; /* SpringGreen */
  --neon-text-glow-3: #8A2BE2; /* BlueViolet */

  /* Dynamic color variables for animations */
  --neon-theme-primary: var(--primary-color);
  --neon-theme-secondary: var(--secondary-color);
  --neon-theme-accent: var(--neon-border-color-1);
}

/* Base Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #f0f0f0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animations for Neon Effects */
@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 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); }
  100% { filter: hue-rotate(360deg); }
}

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

@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-theme-primary);
    box-shadow: 0 0 10px var(--neon-theme-primary), 0 0 20px var(--neon-theme-primary), inset 0 0 10px rgba(255, 255, 255, 0.1);
  }
  33% {
    border-color: var(--neon-theme-secondary);
    box-shadow: 0 0 10px var(--neon-theme-secondary), 0 0 20px var(--neon-theme-secondary), inset 0 0 10px rgba(255, 255, 255, 0.1);
  }
  66% {
    border-color: var(--neon-theme-accent);
    box-shadow: 0 0 10px var(--neon-theme-accent), 0 0 20px var(--neon-theme-accent), inset 0 0 10px rgba(255, 255, 255, 0.1);
  }
}

@keyframes text-glow-flow {
  0% {
    text-shadow:
      0 0 5px var(--neon-text-glow-1),
      0 0 10px var(--neon-text-glow-1),
      0 0 15px var(--neon-text-glow-1);
    color: #ffffff;
  }
  50% {
    text-shadow:
      0 0 5px var(--neon-text-glow-2),
      0 0 10px var(--neon-text-glow-2),
      0 0 15px var(--neon-text-glow-2);
    color: #ffffff;
  }
  100% {
    text-shadow:
      0 0 5px var(--neon-text-glow-3),
      0 0 10px var(--neon-text-glow-3),
      0 0 15px var(--neon-text-glow-3);
    color: #ffffff;
  }
}

/* Header Styles - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column; /* Default for desktop, will be overridden for mobile */
}

.header-top {
  background: linear-gradient(135deg, var(--neon-header-bg-start), var(--neon-header-bg-mid), var(--neon-header-bg-end));
  border-bottom: 2px solid var(--neon-border-color-1);
  box-shadow:
    0 0 10px var(--neon-border-color-1),
    0 0 20px var(--neon-border-color-1),
    0 0 30px var(--neon-border-color-1),
    inset 0 0 20px rgba(255, 255, 0, 0.1);
  padding: 15px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.logo {
  text-decoration: none;
  font-size: 2.5em;
  font-weight: bold;
  color: #ffffff;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  text-shadow:
    0 0 5px var(--neon-text-glow-1),
    0 0 10px var(--neon-text-glow-1),
    0 0 15px var(--neon-text-glow-1);
}

/* Specific glow styles for logo, can be combined */
.logo.neon-pulse {
  animation: text-glow-flow 3s ease-in-out infinite alternate, pulse-glow 2s ease-in-out infinite alternate;
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-theme-primary), var(--neon-theme-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-theme-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 currentColor,
    0 0 30px currentColor,
    inset 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Specific glow styles for buttons */
.btn.neon-tube {
  animation: theme-colors 4s ease-in-out infinite, neon-flicker 2s infinite alternate;
}
.btn.alternate-glow {
  animation: alternate-colors 2s ease-in-out infinite alternate;
}

.main-nav {
  background: linear-gradient(135deg, var(--neon-nav-bg-start), var(--neon-nav-bg-mid), var(--neon-nav-bg-end));
  border-top: 2px solid var(--neon-border-color-2);
  border-bottom: 2px solid var(--neon-border-color-2);
  box-shadow:
    0 0 10px var(--neon-border-color-2),
    0 0 20px var(--neon-border-color-2),
    0 0 30px var(--neon-border-color-2),
    inset 0 0 20px rgba(255, 20, 147, 0.1);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

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

.nav-link {
  color: #ccc;
  text-decoration: none;
  padding: 8px 15px;
  font-weight: bold;
  transition: color 0.3s, text-shadow 0.3s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  text-shadow: 0 0 5px #fff, 0 0 10px var(--neon-border-color-3);
}

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

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

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

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

.footer-col h4 {
  color: #fff;
  font-size: 1.2em;
  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: 8px;
}

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

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

.footer-about .footer-logo {
  font-size: 1.8em;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

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

.payment-methods .payment-icons,
.game-providers-section .game-providers-icons,
.social-media-section .social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.payment-methods .payment-icons img,
.game-providers-section .game-providers-icons img,
.social-media-section .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
}

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

.footer-bottom-nav {
  border-top: 1px solid #333;
  padding-top: 20px;
  margin-top: 30px;
}

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

.footer-bottom-nav ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}

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

.copyright-section {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #333;
  color: #888;
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Ensure main content has enough top padding */
  body {
    padding-top: 170px; /* Adjust based on header-top + mobile-nav-buttons height */
  }

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

  .header-top {
    padding: 10px 15px;
    flex-wrap: wrap;
  }

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

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

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

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    order: 1;
    margin-left: 15px; /* Adjust for spacing */
    position: relative;
  }

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

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px 15px;
    gap: 10px;
    order: 3;
    background: linear-gradient(135deg, var(--neon-header-bg-mid), var(--neon-header-bg-end));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.9em;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px; /* Limit width for side menu */
    height: 100vh;
    flex-direction: column;
    background: var(--neon-nav-bg-start);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    z-index: 1001;
    padding-top: 80px; /* Space for potential fixed top elements */
    box-shadow:
      5px 0 15px rgba(0, 0, 0, 0.5),
      0 0 10px var(--neon-border-color-3);
    border-right: 2px solid var(--neon-border-color-3);
  }

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

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

  .nav-link {
    width: 100%;
    text-align: left;
    margin-bottom: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
  }

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

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
  }

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

  body.no-scroll {
    overflow: hidden;
  }

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

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

  .footer-bottom-nav ul li {
    text-align: center;
  }
}
