:root {
  --primary-color: #0A192F; /* Website main background */
  --secondary-color: #FFD700; /* Website accent color */

  --neon-primary: #FFFF00; /* Initial neon yellow */
  --neon-secondary: #FF1493; /* Initial neon pink */
  --neon-accent: #00FFFF; /* Initial neon cyan */

  /* Dynamic color cycle for theme-flow animation */
  --theme-color-1: #FFD700; /* Gold/Yellow */
  --theme-color-2: #FF6600; /* Orange */
  --theme-color-3: #FF00FF; /* Magenta */
  --theme-color-4: #00FFFF; /* Cyan */
  --theme-color-5: #00FF00; /* Green */
}

/* Base styles for all elements to ensure consistency */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: var(--primary-color);
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  /* Ensure neon glow is applied to the header as a whole */
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
}

.header-top {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.logo {
  font-size: 2.5em;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  position: relative;
  /* Base neon text effect */
  text-shadow:
    0 0 5px var(--neon-primary),
    0 0 10px var(--neon-primary),
    0 0 15px var(--neon-primary);
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--theme-color-1), var(--theme-color-2));
  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);
}

.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  padding: 10px 0;
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors-nav 4s ease-in-out infinite;
  display: flex;
  flex-direction: row;
  justify-content: center;
  position: static;
}

.main-nav .nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  flex-wrap: wrap; /* Allow menu items to wrap on smaller desktop screens */
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  padding: 10px 15px;
  margin: 0 5px;
  font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap; /* Prevent menu items from wrapping on desktop */
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color);
  background-color: rgba(255, 215, 0, 0.1);
  border-radius: 3px;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  margin-right: auto; /* Push logo to center */
  animation: theme-colors 4s ease-in-out infinite;
  border-radius: 3px;
  padding: 5px;
  box-sizing: content-box;
}

.hamburger-menu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--neon-primary);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
  box-shadow: 0 0 5px var(--neon-primary);
}

.hamburger-menu span:nth-child(1) {
  top: 0px;
}

.hamburger-menu span:nth-child(2) {
  top: 11px;
}

.hamburger-menu span:nth-child(3) {
  top: 22px;
}

.hamburger-menu.active span:nth-child(1) {
  top: 11px;
  transform: rotate(135deg);
  background: var(--neon-secondary);
  box-shadow: 0 0 5px var(--neon-secondary);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger-menu.active span:nth-child(3) {
  top: 11px;
  transform: rotate(-135deg);
  background: var(--neon-secondary);
  box-shadow: 0 0 5px var(--neon-secondary);
}

.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
}

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

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Footer styles */
.site-footer {
  background-color: #0A192F;
  color: #a0a0a0;
  padding: 40px 0 20px;
  font-size: 0.9em;
  border-top: 1px solid #1a1a2e;
}

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

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

.footer-col h4 {
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

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

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

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

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

.footer-nav a,
.footer-legal-nav a {
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-legal-nav a:hover {
  color: #FFD700;
}

.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: 50px;
  height: auto;
  width: auto;
  filter: grayscale(80%) brightness(120%);
  transition: filter 0.3s ease;
}

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

.full-width-section {
  margin-bottom: 30px;
  padding: 0 20px;
}

.full-width-section h4 {
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #1a1a2e;
}

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

.footer-legal-nav li {
  margin: 0 10px 5px;
}

/* Animations for neon effects */
@keyframes theme-colors {
  0%, 100% {
    border-color: var(--theme-color-1);
    box-shadow:
      0 0 10px var(--theme-color-1),
      0 0 20px var(--theme-color-1),
      inset 0 0 10px rgba(255, 215, 0, 0.3);
  }
  25% {
    border-color: var(--theme-color-2);
    box-shadow:
      0 0 10px var(--theme-color-2),
      0 0 20px var(--theme-color-2),
      inset 0 0 10px rgba(255, 102, 0, 0.3);
  }
  50% {
    border-color: var(--theme-color-3);
    box-shadow:
      0 0 10px var(--theme-color-3),
      0 0 20px var(--theme-color-3),
      inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
  75% {
    border-color: var(--theme-color-4);
    box-shadow:
      0 0 10px var(--theme-color-4),
      0 0 20px var(--theme-color-4),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
}

@keyframes theme-colors-nav {
  0%, 100% {
    border-color: var(--theme-color-3);
    box-shadow:
      0 0 10px var(--theme-color-3),
      0 0 20px var(--theme-color-3),
      inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
  25% {
    border-color: var(--theme-color-4);
    box-shadow:
      0 0 10px var(--theme-color-4),
      0 0 20px var(--theme-color-4),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  50% {
    border-color: var(--theme-color-5);
    box-shadow:
      0 0 10px var(--theme-color-5),
      0 0 20px var(--theme-color-5),
      inset 0 0 10px rgba(0, 255, 0, 0.3);
  }
  75% {
    border-color: var(--theme-color-1);
    box-shadow:
      0 0 10px var(--theme-color-1),
      0 0 20px var(--theme-color-1),
      inset 0 0 10px rgba(255, 215, 0, 0.3);
  }
}

@keyframes text-glow-flow {
  0% {
    text-shadow:
      0 0 5px var(--theme-color-1),
      0 0 10px var(--theme-color-1),
      0 0 15px var(--theme-color-1);
  }
  33% {
    text-shadow:
      0 0 5px var(--theme-color-3),
      0 0 10px var(--theme-color-3),
      0 0 15px var(--theme-color-3);
  }
  66% {
    text-shadow:
      0 0 5px var(--theme-color-5),
      0 0 10px var(--theme-color-5),
      0 0 15px var(--theme-color-5);
  }
  100% {
    text-shadow:
      0 0 5px var(--theme-color-1),
      0 0 10px var(--theme-color-1),
      0 0 15px var(--theme-color-1);
  }
}

@keyframes neon-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes alternate-glow {
  0% {
    background: linear-gradient(135deg, var(--theme-color-2), var(--theme-color-4));
    border-color: var(--theme-color-2);
    box-shadow:
      0 0 10px var(--theme-color-2),
      0 0 20px var(--theme-color-2);
  }
  100% {
    background: linear-gradient(135deg, var(--theme-color-4), var(--theme-color-2));
    border-color: var(--theme-color-4);
    box-shadow:
      0 0 10px var(--theme-color-4),
      0 0 20px var(--theme-color-4);
  }
}

/* Ensure main content is not hidden by fixed header */
body.no-scroll {
  overflow: hidden;
}

/* Responsive styles */
@media (max-width: 768px) {
  .site-header {
    display: block;
  }

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

  .header-top {
    display: flex;
    justify-content: space-between; /* Hamburger left, Logo center, space right */
    align-items: center;
  }

  .logo {
    font-size: 2em;
    flex: 1; /* Allows logo to take available space and center */
    text-align: center;
    margin: 0;
  }

  .hamburger-menu {
    display: block;
    margin-right: auto; /* Push logo to center */
    order: -1; /* Place hamburger first */
    flex: 0 0 auto;
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Always visible on mobile */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap; /* Ensure buttons stay in one line */
    background: linear-gradient(135deg, #16213e, #0a0a0a);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* Account for 10px gap */
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #1a1a2e;
    padding-top: 80px; /* Space for fixed header */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    border-right: 2px solid;
    animation: theme-colors-nav 4s ease-in-out infinite;
  }

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

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

  .nav-link {
    width: 100%;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0;
    white-space: normal; /* Allow menu links to wrap if too long */
  }

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

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

  .footer-col {
    margin-bottom: 20px;
  }

  .footer-legal-nav {
    flex-direction: column;
    align-items: center;
  }

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

/* Padding for body content to avoid being hidden by fixed header */
body {
  padding-top: 130px; /* Adjust based on actual header height (header-top + mobile-buttons + main-nav height) */
}

@media (min-width: 769px) {
  body {
    padding-top: 110px; /* Adjust for desktop header height (header-top + main-nav height) */
  }
  .hamburger-menu {
    display: none;
  }
  .mobile-menu-overlay {
    display: none;
  }
}