:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --background-dark: #0a0a0a;
  --background-mid-dark: #1a1a2e;
  --background-light-dark: #16213e;

  --neon-base-color-1: var(--secondary-color); /* Gold */
  --neon-base-color-2: #FF00FF; /* Magenta */
  --neon-base-color-3: #00FFFF; /* Cyan */
  --neon-base-color-4: #FF0000; /* Red */
  --neon-base-color-5: #00FF00; /* Green */
  --neon-base-color-6: #FFA500; /* Orange */
  --neon-base-color-7: #6A0DAD; /* Purple */
  --neon-base-color-8: #FF1493; /* Deep Pink */

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

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

@keyframes alternate-colors {
  0%, 100% {
    border-color: var(--neon-base-color-5);
    box-shadow: 0 0 10px var(--neon-base-color-5), 0 0 20px var(--neon-base-color-5), inset 0 0 10px rgba(0, 255, 0, 0.3);
  }
  50% {
    border-color: var(--neon-base-color-6);
    box-shadow: 0 0 10px var(--neon-base-color-6), 0 0 20px var(--neon-base-color-6), inset 0 0 10px rgba(255, 165, 0, 0.3);
  }
}

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

@keyframes flicker-animation {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.8; }
}

/* General Styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: var(--primary-color);
  color: #f0f0f0;
  line-height: 1.6;
}

/* Header - Fixed & Neon Style */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  min-height: 60px;
  box-sizing: border-box;
}

.header-top {
  background: linear-gradient(135deg, var(--background-dark), var(--background-mid-dark));
  border-bottom: 2px solid;
  padding: 10px 0;
  animation: theme-colors 4s ease-in-out infinite alternate;
  position: relative;
  z-index: 1001;
}

.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;
  white-space: nowrap;
  padding: 5px 0;
  animation: neon-text-glow-flow 3s ease-in-out infinite alternate;
  transition: all 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

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

.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;
  text-shadow: 0 0 5px #fff, 0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn.theme-flow {
  animation: theme-colors 4s ease-in-out infinite alternate;
}

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

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.2);
}

.main-nav {
  background: linear-gradient(135deg, var(--background-mid-dark), var(--background-light-dark));
  border-top: 1px solid;
  border-bottom: 2px solid;
  padding: 10px 0;
  animation: theme-colors 5s linear infinite alternate;
  position: relative;
  z-index: 999;
  display: flex; /* Desktop default */
  flex-direction: row; /* Desktop default */
  justify-content: center;
  align-items: center;
}

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

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--neon-base-color-1);
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
  position: relative;
  width: 40px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  animation: alternate-colors 2s ease-in-out infinite alternate;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--neon-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

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

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
  background: linear-gradient(135deg, var(--background-dark), var(--background-mid-dark));
  padding: 15px 20px;
  justify-content: center;
  gap: 15px;
  border-bottom: 1px solid;
  animation: theme-colors 4s ease-in-out infinite alternate;
  z-index: 998;
}

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

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

/* Footer */
.site-footer {
  background-color: #1a1a2e;
  color: #c0c0c0;
  padding: 40px 20px 20px;
  font-size: 0.9em;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

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

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

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

.footer-links a:hover {
  color: var(--secondary-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-methods h4,
.game-providers-section h4,
.social-media-section h4 {
  color: #fff;
  font-size: 1.2em;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 5px;
}

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

.footer-mid-section {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-mid-section:last-of-type {
  border-bottom: none;
  margin-bottom: 20px;
}

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

.footer-legal-links {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.footer-legal-links a {
  color: #c0c0c0;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

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

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

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

  .logo {
    flex-grow: 1;
    text-align: center;
    font-size: 1.8em;
    order: 2; /* Center logo */
    margin-left: -40px; /* Offset for hamburger menu */
  }

  .hamburger-menu {
    display: flex;
    order: 1;
    margin-right: auto; /* Push to left */
    background: none;
    border: none;
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile, shown by JS */
    position: fixed;
    top: 0; /* Will be adjusted by JS to below header-top */
    left: 0;
    width: 70%; /* Adjust as needed */
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: linear-gradient(180deg, var(--background-dark), var(--background-light-dark));
    border-right: 2px solid;
    padding-top: 120px; /* Space for header-top and mobile buttons */
    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);
    animation: theme-colors 5s linear infinite alternate; /* Dynamic border color */
  }

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

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

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

  .mobile-nav-buttons {
    display: flex; /* Show mobile buttons */
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
    position: relative;
    z-index: 999; /* Ensure it's above content but below hamburger menu */
    border-bottom: 2px solid;
    animation: alternate-colors 4s ease-in-out infinite alternate;
  }

  .site-footer {
    padding: 30px 15px 15px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
  }

  .footer-mid-section {
    margin-bottom: 25px;
  }

  .footer-legal-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* Ensure main content has enough padding-top */
body {
  padding-top: 130px; /* Adjust based on header-top + mobile-nav-buttons height */
}

@media (min-width: 769px) {
  body {
    padding-top: 120px; /* Adjust based on header-top + main-nav height */
  }
}
