:root {
  --primary-site-color: #0A192F;
  --secondary-site-color: #FFD700;

  --neon-primary: var(--secondary-site-color, #FFFF00);
  --neon-secondary: #FF00FF;
  --neon-accent: #00FFFF;

  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --dark-bg-4: #0f3460;
  --text-color: #ffffff;
  --light-gray: #ccc;
  --dark-gray: #333;
}

/* Base styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: var(--text-color);
  background-color: var(--dark-bg-1);
}

/* 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 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(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, 0, 255, 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: var(--text-color); }
  50% { text-shadow: 0 0 5px var(--neon-secondary), 0 0 10px var(--neon-secondary), 0 0 15px var(--neon-secondary); color: var(--text-color); }
  100% { text-shadow: 0 0 5px var(--neon-accent), 0 0 10px var(--neon-accent), 0 0 15px var(--neon-accent); color: var(--text-color); }
}

/* Header Styles - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  padding: 15px 0;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  color: var(--neon-primary); /* For currentColor in animation */
}

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

.logo {
  font-family: 'Orbitron', sans-serif; /* Example sci-fi font */
  font-size: 2.5em;
  font-weight: bold;
  color: var(--text-color);
  text-decoration: none;
  white-space: nowrap;
  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);
}

.neon-pulse {
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

.neon-tube {
  border: 2px solid;
  animation: neon-flicker 2s infinite alternate, theme-colors 4s ease-in-out infinite;
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  padding: 12px 25px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow: 0 0 5px var(--text-color), 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 10px rgba(255, 255, 255, 0.2);
}

.rainbow-flow {
  border: 2px solid;
  animation: rainbow-border 3s linear infinite;
}

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3), var(--dark-bg-4));
  padding: 10px 0;
  border-top: 1px solid;
  border-bottom: 1px solid;
  animation: theme-colors 5s linear infinite alternate;
  color: var(--neon-accent); /* For currentColor in animation */
  display: flex;
  flex-direction: row;
}

.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; /* Allow wrapping on slightly smaller desktops */
}

.nav-link {
  color: var(--light-gray);
  text-decoration: none;
  padding: 10px 15px;
  font-size: 1.1em;
  font-weight: 500;
  transition: color 0.3s, text-shadow 0.3s;
  white-space: nowrap;
}

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

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

/* Footer Styles */
.site-footer {
  background-color: var(--dark-bg-3);
  color: var(--light-gray);
  padding-top: 40px;
  font-size: 0.9em;
  line-height: 1.6;
}

.site-footer a {
  color: var(--light-gray);
  text-decoration: none;
}

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

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

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

.footer-col h4 {
  color: var(--text-color);
  font-size: 1.2em;
  margin-bottom: 15px;
  border-left: 3px solid var(--secondary-site-color);
  padding-left: 10px;
}

.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 2em;
  font-weight: bold;
  color: var(--secondary-site-color);
  display: block;
  margin-bottom: 15px;
}

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

.footer-nav, .footer-legal-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.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;
  filter: grayscale(100%) brightness(150%); /* Make icons fit dark theme */
  transition: filter 0.3s ease;
}

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

.game-providers-section, .social-media-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--dark-gray);
}

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

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.copyright {
  margin: 0;
  flex-grow: 1;
  text-align: left;
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-end;
}

.footer-legal-nav li {
  margin-bottom: 0;
}

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

@media (max-width: 768px) {
  body {
    padding-top: 130px; /* Adjust based on header-top + mobile-nav-buttons height */
  }

  .site-header {
    display: block;
  }

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

  .header-top {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: relative;
    width: 40px;
    height: 40px;
    color: var(--neon-primary);
    animation: theme-colors 4s ease-in-out infinite;
    border-radius: 5px;
  }

  .hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: currentColor;
    position: relative;
    transition: background-color 0.3s ease-in-out;
  }

  .hamburger-icon::before, .hamburger-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    position: absolute;
    transition: transform 0.3s ease-in-out;
  }

  .hamburger-icon::before {
    top: -8px;
  }

  .hamburger-icon::after {
    top: 8px;
  }

  .hamburger-menu.active .hamburger-icon {
    background-color: transparent;
  }

  .hamburger-menu.active .hamburger-icon::before {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-menu.active .hamburger-icon::after {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-logo-wrapper {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
  }

  .logo {
    font-size: 2em;
    text-align: center;
  }

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

  .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-2);
    padding-top: 80px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
    border-right: 2px solid var(--neon-accent);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    animation: none; /* Disable header nav animations on mobile */
  }

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

  .nav-link {
    padding: 15px 20px;
    border-bottom: 1px solid var(--dark-gray);
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    color: var(--text-color);
  }

  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--neon-primary);
    text-shadow: none;
  }

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

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    color: var(--neon-primary);
    box-sizing: border-box;
  }

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

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

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

  .footer-col h4 {
    border-left: none;
    padding-left: 0;
    text-align: center;
  }

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

  .copyright {
    text-align: center;
    margin-bottom: 15px;
  }

  .footer-legal-nav {
    justify-content: center;
  }
}
