:root {
  --primary-color: #0056B3; /* Base primary color */
  --secondary-color: #FFD700; /* Base secondary color */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --neon-primary: #00ffff; /* Cyan */
  --neon-secondary: #ff00ff; /* Magenta */
  --neon-accent: #ffff00; /* Yellow */
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background-color: #000;
  overflow-x: hidden;
  padding-top: 130px; /* Default padding for fixed header + mobile buttons */
}

/* General Neon Glow Effects */
.neon-glow {
  box-shadow:
    0 0 5px currentColor,
    0 0 10px currentColor,
    0 0 15px currentColor,
    0 0 20px currentColor,
    inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Dynamic Color 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(0, 255, 255, 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(255, 255, 0, 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;
}

.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  padding: 15px 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;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  position: relative;
  text-transform: uppercase;
}

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

.btn.alternate-glow {
  animation: alternate-colors 2s ease-in-out infinite alternate;
}

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: rainbow-border 6s linear infinite; /* Example: different glow for main-nav */
  padding: 10px 0;
  display: flex; /* Desktop: visible, row */
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

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

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  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-accent);
  text-shadow: 0 0 5px var(--neon-accent), 0 0 10px var(--neon-accent);
}

/* Mobile Specific (hidden by default on desktop) */
.hamburger-menu,
.mobile-buttons-area,
.mobile-menu-overlay {
  display: none;
}

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

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

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

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

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

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

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-logo {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  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;
  margin-top: 10px;
}

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

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

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

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

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

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

.footer-bottom .footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal-nav {
  display: flex;
  gap: 20px;
}

.footer-legal-nav li a {
  color: #aaa;
}

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

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

  .header-top {
    padding: 10px 0;
  }

  .header-container {
    padding: 0 15px;
    justify-content: space-between;
  }

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

  .hamburger-menu::before,
  .hamburger-menu::after,
  .hamburger-menu span {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--neon-primary);
    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::before {
    transform: translateY(10.5px) rotate(45deg);
  }

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

  .hamburger-menu.active span {
    opacity: 0;
    transform: scale(0);
  }

  .logo {
    font-size: 1.8em;
    flex-grow: 1; /* Allow logo to take available space */
    text-align: center;
    margin: 0; /* Reset margin for centering */
    order: 2; /* Keep logo centered */
  }

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

  .mobile-buttons-area {
    display: block;
    background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
    border-bottom: 2px solid;
    animation: alternate-colors 3s ease-in-out infinite alternate;
    padding: 10px 0;
  }

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

  .main-nav {
    display: none; /* Mobile: hidden by default */
    flex-direction: column; /* Mobile: column layout when active */
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background: linear-gradient(180deg, var(--dark-bg-2), var(--dark-bg-1));
    padding-top: 80px; /* Space for logo in the overlay */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
  }

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

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

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

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

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

  .site-footer .footer-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }

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

  .footer-col {
    min-width: unset;
    width: 100%;
    text-align: center;
  }

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

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

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

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

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

  .footer-bottom .footer-container {
    padding: 0 15px;
  }

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