:root {
  --primary-color: #FFD700;
  --secondary-color: #0A2463;
  --neon-primary: #FFD700; /* Bright Gold/Yellow */
  --neon-secondary: #00FFFF; /* Cyan */
  --neon-accent: #FF1493; /* Deep Pink */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --text-color: #ffffff;
  --link-color: #cccccc;
  --hover-color: var(--neon-primary);
}

/* Base 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 Neon Color Animations */
@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(255, 215, 0, 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(0, 255, 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, 20, 147, 0.3);
  }
}

@keyframes alternate-glow {
  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 neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.8; }
}

@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 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: var(--text-color);
  }
  50% {
    text-shadow:
      0 0 5px var(--neon-secondary),
      0 0 10px var(--neon-secondary),
      0 0 15px var(--neon-secondary);
    color: var(--text-color);
  }
  100% {
    text-shadow:
      0 0 5px var(--neon-accent),
      0 0 10px var(--neon-accent),
      0 0 15px var(--neon-accent);
    color: var(--text-color);
  }
}

/* General Body Styling */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #050505;
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 130px; /* Adjust based on header height for sticky effect */
}

/* Header - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
}

.header-top {
  padding: 15px 0;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
}

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

.logo {
  font-size: 2.5em;
  font-weight: bold;
  text-decoration: none;
  color: var(--neon-primary);
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  transition: color 0.3s ease;
  letter-spacing: 2px;
}

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

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

.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;
  letter-spacing: 0.5px;
  overflow: hidden;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  box-shadow:
    0 0 15px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.main-nav {
  padding: 10px 0;
  border-top: 1px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3), #0f3460);
  display: flex;
}

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

.nav-link {
  color: var(--link-color);
  text-decoration: none;
  padding: 10px 18px;
  font-size: 1.1em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
  text-shadow: none;
}

.nav-link:hover {
  color: var(--hover-color);
  text-shadow: 0 0 5px var(--hover-color), 0 0 10px var(--hover-color);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-menu .bar {
  width: 100%;
  height: 3px;
  background-color: var(--neon-primary);
  border-radius: 2px;
  position: absolute;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--neon-primary);
}

.hamburger-menu .bar:nth-child(1) { top: 0; }
.hamburger-menu .bar:nth-child(2) { top: 8px; }
.hamburger-menu .bar:nth-child(3) { top: 16px; }

.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--neon-accent);
  box-shadow: 0 0 5px var(--neon-accent);
}
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--neon-accent);
  box-shadow: 0 0 5px var(--neon-accent);
}

.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: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

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

/* Footer */
.site-footer {
  background-color: var(--dark-bg-2);
  color: #cccccc;
  padding: 40px 0 20px;
  font-size: 0.95em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.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: var(--text-color);
  font-size: 1.2em;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

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

.footer-col ul li a:hover {
  color: var(--neon-primary);
}

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

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

.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%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

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

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

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

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

.footer-nav {
  margin-bottom: 15px;
}

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

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

.copyright {
  color: #aaaaaa;
  font-size: 0.9em;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  body {
    padding-top: 190px; /* Adjusted for mobile header + mobile buttons */
  }

  .site-header {
    background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  }

  .header-top {
    padding: 10px 0;
    animation: none; /* Disable dynamic border for mobile top bar to avoid flicker */
    border-bottom: none;
    box-shadow: none;
  }

  .header-container {
    padding: 0 15px;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%; /* Important: no max-width */
    max-width: none;
  }

  .hamburger-menu {
    display: block;
    order: 1;
    margin-right: 15px;
  }

  .logo {
    order: 2;
    flex-grow: 1;
    text-align: center;
    font-size: 2em;
    margin: 0;
  }

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    width: 100%;
    box-sizing: border-box;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 70%; /* Adjust as needed */
    height: 100vh;
    background: linear-gradient(180deg, var(--dark-bg-2), var(--dark-bg-3));
    padding-top: 80px; /* Space for logo/hamburger */
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    z-index: 1000;
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-sizing: border-box;
    max-width: none;
  }

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

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

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

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

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

  .footer-col:nth-child(1) {
    order: 1;
  }
  .footer-col:nth-child(2) {
    order: 2;
  }
  .footer-col:nth-child(3) {
    order: 3;
  }
  .footer-col:nth-child(4) {
    order: 4;
  }

  .footer-nav a {
    display: block;
    margin: 10px 0;
  }
}
