:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-color: #ffffff;
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --dark-bg-4: #0f3460;

  /* Dynamic Neon Colors - based on theme, but vibrant */
  --neon-primary: var(--primary-color);
  --neon-secondary: #FF1493; /* Deep Pink */
  --neon-accent: #00FFFF; /* Cyan */
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--dark-bg-1);
  min-height: 1500px; /* For demonstration of fixed header */
  padding-top: 130px; /* Adjust based on header + mobile button area height */
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

ul {
  list-style: none;
}

/* 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 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(255, 215, 0, 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, 20, 147, 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(0, 255, 255, 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;
}

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

.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 4s ease-in-out infinite;
  padding: 5px 0;
}

.header-top .header-container {
  justify-content: space-between;
}

.logo {
  font-size: 2.2em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-color);
  text-decoration: none;
  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);
}

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

.btn.neon-tube {
  animation: neon-flicker 2s infinite alternate, rainbow-border 3s linear infinite;
}

.btn.rainbow-flow {
  animation: rainbow-border 3s linear infinite;
}

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-4), var(--dark-bg-3), var(--dark-bg-2));
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite reverse;
  padding: 10px 0;
  display: flex; /* Desktop default: visible */
  width: 100%;
}

.main-nav .nav-container {
  justify-content: center;
  gap: 25px;
  padding: 0 20px;
}

.nav-link {
  color: #c0c0c0;
  font-size: 1.1em;
  font-weight: bold;
  padding: 8px 15px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1001;
  animation: neon-flicker 2s infinite alternate, theme-colors 4s ease-in-out infinite;
  border: 1px solid;
  border-radius: 3px;
  padding: 3px;
}

.hamburger-menu .bar {
  width: 100%;
  height: 3px;
  background-color: var(--neon-primary);
  margin: 5px 0;
  transition: 0.4s;
  box-shadow: 0 0 5px var(--neon-primary);
}

.hamburger-menu.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger-menu.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-buttons-area {
  display: none; /* Hidden on desktop */
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  padding: 10px 0;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
}

.mobile-buttons-area .header-container {
  justify-content: center;
  gap: 15px;
}

.mobile-menu-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* Footer Styles */
.site-footer {
  background-color: var(--dark-bg-2);
  color: #c0c0c0;
  padding: 40px 0 20px;
  font-size: 0.9em;
}

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

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

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

.footer-col ul {
  padding: 0;
}

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

.footer-col ul li a {
  color: #c0c0c0;
  transition: color 0.3s ease;
}

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

.footer-logo {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  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: 40px;
  height: auto;
  width: auto;
  filter: grayscale(80%) brightness(1.5);
  transition: filter 0.3s ease;
}

.payment-icons img:hover,
.game-providers-icons img:hover,
.social-media-icons img:hover {
  filter: grayscale(0%) brightness(1.2);
}

.footer-middle {
  padding: 30px 0;
  border-bottom: 1px solid #333;
}

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

.game-providers-section:last-child,
.social-media-section:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  padding-top: 20px;
  text-align: center;
  color: #888;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .main-nav .nav-container {
    gap: 15px;
  }
  .nav-link {
    font-size: 1em;
    padding: 6px 10px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 170px; /* Adjusted for mobile header + button area */
  }

  .header-container {
    padding: 10px 15px;
    width: 100%;
    max-width: none;
  }
  .nav-container {
    padding: 0 15px;
    width: 100%;
    max-width: none;
  }

  .header-top .header-container {
    justify-content: space-between;
  }

  .hamburger-menu {
    display: block;
    order: 1;
    margin-right: auto;
  }

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

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

  .mobile-spacer {
    order: 3;
    width: 30px; /* Balance for hamburger menu */
    margin-left: auto;
  }

  .mobile-buttons-area {
    display: flex;
    width: 100%;
    padding: 10px 0;
  }

  .mobile-buttons-area .header-container {
    flex-wrap: wrap;
    gap: 10px;
  }

  .mobile-buttons-area .btn {
    flex: 1 1 auto;
    min-width: 120px;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.9em;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background-color: var(--dark-bg-3);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Slide out */
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding-top: 100px; /* Space for fixed header content */
    border: none; /* Remove border for sliding menu */
    animation: none; /* Remove animation for sliding menu */
  }

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

  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
  }

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

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

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

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

  .footer-col ul {
    padding-left: 0;
  }

  .footer-col ul li {
    display: inline-block;
    margin: 0 10px 8px 10px;
  }

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

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

@media (max-width: 480px) {
  .logo {
    font-size: 1.5em;
  }
  .mobile-buttons-area .btn {
    font-size: 0.8em;
    padding: 8px 10px;
  }
  .site-footer {
    padding: 30px 0 15px;
  }
  .footer-top {
    gap: 15px;
    padding-bottom: 20px;
  }
  .footer-middle {
    padding: 20px 0;
  }
  .game-providers-section h4, .social-media-section h4, .footer-col h4 {
    font-size: 1.1em;
  }
}
