:root {
  --primary-color: #1E3A8A;
  --secondary-color: #F59E0B;
  --neon-primary: var(--primary-color); /* Dark blue from site color */
  --neon-secondary: var(--secondary-color); /* Orange from site color */
  --neon-accent: #FF00FF; /* A vibrant magenta for accent */
  /* RGB values for box-shadow rgba */
  --neon-primary-rgb: 30, 58, 138;
  --neon-secondary-rgb: 245, 158, 11;
  --neon-accent-rgb: 255, 0, 255;
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #f0f0f0;
  background-color: #0a0a0a; /* Dark background */
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Dark background gradient */
  padding: 15px 0;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color for header-top */
  box-shadow:
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    inset 0 0 10px rgba(var(--neon-primary-rgb), 0.1);
}

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

.logo {
  font-size: 2.2rem;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  position: relative;
  animation: text-glow-flow 3s ease-in-out infinite alternate, neon-flicker 2s infinite alternate; /* Dynamic text glow and flicker */
  padding: 5px 10px;
  text-transform: uppercase;
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  padding: 12px 30px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color for buttons */
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover {
  animation-duration: 2s; /* Faster color change on hover */
  transform: translateY(-2px);
  box-shadow:
    0 0 15px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 15px rgba(var(--neon-primary-rgb), 0.2);
}

.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); /* Different dark background gradient */
  padding: 10px 0;
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: alternate-colors 5s ease-in-out infinite alternate; /* Dynamic border color for main-nav */
  box-shadow:
    0 0 8px var(--neon-secondary),
    0 0 15px var(--neon-secondary),
    inset 0 0 8px rgba(var(--neon-secondary-rgb), 0.05);
  display: flex;
  flex-direction: row;
  justify-content: center;
}

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

.nav-link {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--neon-secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--neon-secondary);
}

.mobile-nav-toggle {
  display: none; /* Hidden on desktop */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
  color: var(--neon-primary);
  animation: pulse-glow 2s ease-in-out infinite alternate, hue-spin 4s linear infinite; /* Dynamic glow and color */
}

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

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

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

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

.mobile-nav-toggle.active .hamburger-icon {
  background-color: transparent;
}

.mobile-nav-toggle.active .hamburger-icon::before {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-nav-toggle.active .hamburger-icon::after {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
  padding: 15px 20px;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Same as header-top */
  border-top: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
  box-shadow:
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    inset 0 0 10px rgba(var(--neon-primary-rgb), 0.1);
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.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: #1a1a1a;
  color: #cccccc;
  padding: 40px 0 20px;
  font-size: 0.95rem;
}

.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: #f0f0f0;
  font-size: 1.1rem;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

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

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

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

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

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

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

.payment-methods h4,
.game-providers-section h4,
.social-media-section h4 {
  color: #f0f0f0;
  font-size: 1.1rem;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.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;
  object-fit: contain;
  filter: grayscale(100%) brightness(150%); /* Subtle effect for icons */
  transition: filter 0.3s ease;
}

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

.footer-middle-sections {
  margin-bottom: 40px;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  margin: 0;
  color: #aaaaaa;
}

/* Animations for Neon/Cyberpunk style */
@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(var(--neon-primary-rgb), 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(var(--neon-secondary-rgb), 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(var(--neon-accent-rgb), 0.3);
  }
}

@keyframes alternate-colors {
  0% {
    border-color: var(--neon-secondary);
    box-shadow:
      0 0 8px var(--neon-secondary),
      0 0 15px var(--neon-secondary);
  }
  100% {
    border-color: var(--neon-accent);
    box-shadow:
      0 0 8px var(--neon-accent),
      0 0 15px var(--neon-accent);
  }
}

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

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor;
  }
  20%, 24%, 55% {
    opacity: 0.8;
    text-shadow: 0 0 2px currentColor, 0 0 5px currentColor, 0 0 8px 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 hue-spin {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-top: 180px; /* Adjusted dynamically by JS based on header height */
  }

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

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

  .header-container {
    width: 100%;
    max-width: none; /* Crucial for mobile */
    padding: 0 15px;
    justify-content: space-between;
  }

  .mobile-nav-toggle {
    display: block;
    order: 1;
  }

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

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

  .mobile-nav-buttons {
    display: flex;
    order: 3;
    width: 100%;
    padding: 10px 15px;
    z-index: 998; /* Below mobile menu, above content */
  }

  .main-nav {
    display: none; /* Hidden by default for mobile */
    flex-direction: column;
    position: fixed;
    /* top will be set by JS dynamically */
    left: 0;
    width: 80%;
    max-width: 300px; /* Limit mobile menu width */
    height: calc(100% - var(--mobile-header-height)); /* Adjusted by JS */
    overflow-y: auto;
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    padding: 20px 0;
    box-sizing: border-box;
    border-right: 2px solid;
    animation: alternate-colors 5s ease-in-out infinite alternate;
    z-index: 1000;
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 15px;
    gap: 15px;
    width: 100%;
    max-width: none; /* Crucial for mobile */
  }

  .nav-link {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

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

  .nav-link::after {
    background-color: var(--neon-primary);
  }

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

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

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

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

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