:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --neon-primary: var(--primary-color);
  --neon-secondary: var(--secondary-color);
  --neon-accent: #00FFFF;
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --text-color: #ffffff;
  --nav-link-color: #cccccc;
  --nav-link-hover-color: var(--neon-primary);
  --footer-bg: #1c1c1c;
  --footer-text-color: #b0b0b0;
  --footer-heading-color: #ffffff;
  --neon-color-1: #ff00ff;
  --neon-color-2: #00ffff;
  --neon-color-3: #ffff00;
  --neon-color-4: #ff0000;
  --neon-color-5: #00ff00;
  --neon-color-6: #0000ff;
}

/* Base Body Styling for fixed header content offset */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg-1);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

/* Global Container */
.header-container, .nav-container, .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- Animations for dynamic colors and glow effects --- */
@keyframes rainbow-border {
  0% { border-color: var(--neon-color-4); box-shadow: 0 0 10px var(--neon-color-4), 0 0 20px var(--neon-color-4); }
  16.6% { border-color: #ff8000; box-shadow: 0 0 10px #ff8000, 0 0 20px #ff8000; }
  33.3% { border-color: var(--neon-color-3); box-shadow: 0 0 10px var(--neon-color-3), 0 0 20px var(--neon-color-3); }
  50% { border-color: var(--neon-color-5); box-shadow: 0 0 10px var(--neon-color-5), 0 0 20px var(--neon-color-5); }
  66.6% { border-color: var(--neon-color-6); box-shadow: 0 0 10px var(--neon-color-6), 0 0 20px var(--neon-color-6); }
  83.3% { border-color: var(--neon-color-1); box-shadow: 0 0 10px var(--neon-color-1), 0 0 20px var(--neon-color-1); }
  100% { border-color: var(--neon-color-4); box-shadow: 0 0 10px var(--neon-color-4), 0 0 20px var(--neon-color-4); }
}

@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(139, 0, 0, 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(0, 255, 255, 0.3);
  }
}

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

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

/* --- Header Styling --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  min-height: auto;
}

.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  border-bottom: 2px solid var(--neon-primary);
  box-shadow:
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 20px rgba(255, 215, 0, 0.1);
  padding: 10px 0;
  display: flex;
  align-items: center;
}

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

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 2.2em;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-color);
  white-space: nowrap;
  padding: 5px 0;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  display: block;
}

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

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

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

.btn.rainbow-flow {
  animation: rainbow-border 3s linear infinite;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 15px currentColor,
    0 0 30px currentColor,
    0 0 45px currentColor;
}

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  border-top: 2px solid var(--neon-secondary);
  border-bottom: 2px solid var(--neon-secondary);
  box-shadow:
    0 0 10px var(--neon-secondary),
    0 0 20px var(--neon-secondary),
    0 0 30px var(--neon-secondary),
    inset 0 0 20px rgba(139, 0, 0, 0.1);
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: static; /* Desktop default */
  flex-direction: row; /* Desktop default */
}

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

.nav-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.nav-link {
  color: var(--nav-link-color);
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

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

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

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--neon-primary);
  margin-bottom: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--neon-primary);
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

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

.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
}

/* --- Footer Styling --- */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text-color);
  padding: 40px 0 20px 0;
  font-size: 0.9em;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.footer-col h4 {
  color: var(--footer-heading-color);
  font-size: 1.2em;
  margin-bottom: 15px;
  white-space: nowrap;
}

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

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

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

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

.footer-col ul li a {
  color: var(--footer-text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.payment-icons img:hover, .game-providers-icons img:hover, .social-media-icons img:hover {
  filter: brightness(1.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-nav-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-nav-bottom a {
  color: var(--footer-text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.copyright {
  margin: 0;
  font-size: 0.9em;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Main content padding adjustment for fixed header + mobile buttons */
  body {
    padding-top: 130px; /* Adjust based on actual header-top and mobile-nav-buttons height */
  }

  .header-container, .nav-container, .footer-container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: none; /* Crucial: allow full width on mobile */
    width: 100%;
  }

  .header-top {
    padding: 10px 0;
  }

  .header-container {
    justify-content: space-between;
    display: flex;
    flex-wrap: nowrap;
  }

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

  .logo {
    order: 2;
    flex-grow: 1; /* Allow logo to take available space for centering */
    text-align: center;
    font-size: 1.8em;
    margin: 0;
    padding: 5px 0;
  }

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

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

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
  }

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
    padding: 10px 15px;
    border-bottom: 2px solid var(--neon-accent);
    box-shadow:
      0 0 8px var(--neon-accent),
      0 0 15px var(--neon-accent);
    width: 100%;
    position: fixed;
    top: 60px; /* Position below header-top */
    left: 0;
    z-index: 990;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.95em;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
  }

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

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

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

  .footer-col ul {
    text-align: center;
    padding-inline-start: 0;
  }

  .footer-nav-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5em;
  }
  .mobile-nav-buttons .btn {
    font-size: 0.85em;
    padding: 8px 10px;
  }
  .footer-about .footer-logo {
    font-size: 1.5em;
  }
}
