:root {
  --primary-color: #FFD700; /* Gold/Yellow */
  --secondary-color: #000080; /* Navy Blue */
  --accent-color: #FF00FF; /* Fuchsia/Magenta for accent */

  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;

  --neon-glow-color-1: var(--primary-color);
  --neon-glow-color-2: var(--accent-color);
  --neon-glow-color-3: var(--secondary-color);
}

/* Base animations for dynamic glow */
@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 theme-colors {
  0%, 100% {
    border-color: var(--neon-glow-color-1);
    box-shadow:
      0 0 10px var(--neon-glow-color-1),
      0 0 20px var(--neon-glow-color-1),
      inset 0 0 10px rgba(255, 215, 0, 0.3); /* Based on primary color */
  }
  33% {
    border-color: var(--neon-glow-color-2);
    box-shadow:
      0 0 10px var(--neon-glow-color-2),
      0 0 20px var(--neon-glow-color-2),
      inset 0 0 10px rgba(255, 0, 255, 0.3); /* Based on accent color */
  }
  66% {
    border-color: var(--neon-glow-color-3);
    box-shadow:
      0 0 10px var(--neon-glow-color-3),
      0 0 20px var(--neon-glow-color-3),
      inset 0 0 10px rgba(0, 0, 128, 0.3); /* Based on secondary color */
  }
}

@keyframes text-glow-flow {
  0% {
    text-shadow:
      0 0 5px var(--neon-glow-color-1),
      0 0 10px var(--neon-glow-color-1),
      0 0 15px var(--neon-glow-color-1);
    color: #ffffff;
  }
  50% {
    text-shadow:
      0 0 5px var(--neon-glow-color-2),
      0 0 10px var(--neon-glow-color-2),
      0 0 15px var(--neon-glow-color-2);
    color: #ffffff;
  }
  100% {
    text-shadow:
      0 0 5px var(--neon-glow-color-3),
      0 0 10px var(--neon-glow-color-3),
      0 0 15px var(--neon-glow-color-3);
    color: #ffffff;
  }
}

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0;
  background-color: var(--dark-bg-1);
  padding-top: 100px; /* Adjust for fixed header height (header-top + main-nav) */
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  min-height: 100px; /* Base height for header-top + main-nav */
  display: flex;
  flex-direction: column; /* Stack header-top and main-nav vertically */
}

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

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

.logo {
  font-size: 2.2em;
  font-weight: bold;
  text-transform: uppercase;
  color: #ffffff;
  transition: all 0.3s ease;
  animation: text-glow-flow 3s ease-in-out infinite alternate; /* Dynamic text glow */
}

.logo:hover {
  opacity: 0.9;
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-glow-color-1), var(--neon-glow-color-2));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite alternate; /* Dynamic border glow */
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--neon-glow-color-1);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap;
}

.btn:hover {
  animation-duration: 2s; /* Faster animation on hover */
  transform: translateY(-2px);
  opacity: 0.9;
}

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  border-top: 2px solid var(--neon-glow-color-2); /* Different color for contrast */
  border-bottom: 2px solid var(--neon-glow-color-2);
  animation: theme-colors 4s ease-in-out infinite alternate reverse; /* Dynamic border glow, reversed for contrast */
  padding: 10px 0;
  flex-grow: 1; /* Occupy remaining space */
  display: flex; /* Desktop default: flex */
  flex-direction: row; /* Desktop default: row */
  justify-content: center; /* Center menu items */
  align-items: center;
  height: 40px;
}

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

.nav-link {
  color: #f0f0f0;
  font-weight: bold;
  font-size: 1.1em;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

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

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

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

/* Hamburger Menu (Desktop hidden) */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--neon-glow-color-1);
  margin-bottom: 5px;
  position: relative;
  transform-origin: 4px 0px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow:
    0 0 5px var(--neon-glow-color-1),
    0 0 10px var(--neon-glow-color-1);
}

.hamburger-menu span:last-child {
  margin-bottom: 0;
}

/* Mobile specific button area (Desktop hidden) */
.mobile-nav-buttons {
  display: none;
}

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

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

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

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

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 15px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-about .footer-logo {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: block;
  text-transform: uppercase;
}

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

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

.footer-links a {
  color: #cccccc;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.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(0.7);
  transition: filter 0.3s ease;
}

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

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

.game-providers-section h4, .social-media-section h4 {
  margin-bottom: 15px;
  color: #ffffff;
  font-size: 1.2em;
  position: relative;
}

.game-providers-section h4::after, .social-media-section h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.copyright {
  text-align: center;
  color: #aaaaaa;
  font-size: 0.85em;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .nav-container {
    gap: 20px;
  }
}

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

  .site-header {
    min-height: auto;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    height: 60px;
    justify-content: space-between;
    position: relative;
  }

  .hamburger-menu {
    display: block;
    order: 1;
    padding: 10px 0;
    margin-right: auto; /* Push logo to center */
  }

  .logo {
    order: 2;
    flex-grow: 1;
    text-align: center;
    font-size: 1.8em;
    margin-left: -40px; /* Counteract hamburger padding/width for centering */
  }

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
    border-top: 1px solid var(--neon-glow-color-2);
    border-bottom: 1px solid var(--neon-glow-color-2);
    animation: theme-colors 4s ease-in-out infinite alternate;
    height: 50px; /* Fixed height for mobile buttons */
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical menu */
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: var(--dark-bg-3);
    padding-top: 80px;
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-in-out;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    border-right: 2px solid var(--neon-glow-color-2);
    z-index: 9999;
  }

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

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

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

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

  /* Hamburger menu active state */
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--neon-glow-color-2);
    box-shadow: 0 0 5px var(--neon-glow-color-2), 0 0 10px var(--neon-glow-color-2);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--neon-glow-color-2);
    box-shadow: 0 0 5px var(--neon-glow-color-2), 0 0 10px var(--neon-glow-color-2);
  }

  /* Footer Responsive */
  .site-footer .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

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

  .footer-links {
    padding-left: 0;
  }

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

  .game-providers-section, .social-media-section {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5em;
  }

  .mobile-nav-buttons .btn {
    padding: 8px 12px;
    font-size: 0.85em;
  }

  .main-nav {
    width: 100%; /* Full width menu on very small screens */
  }
}

/* Overlay for mobile menu */
.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;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

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