:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A1A1A; /* Dark Grey */
  --neon-primary: var(--primary-color); /* Bright Yellow */
  --neon-secondary: #00FFFF; /* Cyan */
  --neon-accent: #FF00FF; /* Magenta */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;

  --header-top-bg: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  --main-nav-bg: var(--dark-bg-3);

  /* Header heights for content padding */
  --header-height-desktop: 110px; 
  --header-height-mobile: 100px; /* Adjusted based on hamburger+logo+buttons */
}

/* Base body padding to prevent content overlap with fixed header */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ccc;
  background-color: #121212;
  padding-top: var(--header-height-desktop); /* Default for desktop */
}

/* -------------------- Neon Glow Styles & Animations -------------------- */

/* Dynamic Neon Glow Colors - Multiple Flowing Color Effects */
/* Base neon glow effect */
.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);
}

/* Style 1: Classic Neon Tube Effect (supports dynamic color) */
.neon-tube {
  border: 2px solid;
  animation: neon-flicker 2s infinite alternate, theme-colors 4s ease-in-out infinite;
}

/* Style 2: Cyberpunk Grid Glow (supports dynamic color) - for backgrounds/containers */
.cyber-grid {
  background:
    linear-gradient(90deg, transparent 95%, currentColor 100%),
    linear-gradient(180deg, transparent 95%, currentColor 100%);
  background-size: 20px 20px;
  border: 1px solid;
  animation: hue-spin 4s linear infinite;
}

/* Style 3: Pulse Breathing Effect (supports dynamic color) */
.neon-pulse {
  border: 2px solid;
  animation: pulse-glow 2s ease-in-out infinite alternate, theme-colors 4s ease-in-out infinite;
}

/* Style 4: Rainbow Cycle Gradient (dynamic color) */
.rainbow-flow {
  border: 2px solid;
  animation: rainbow-border 3s linear infinite;
}

/* Style 5: Hue Rotation (dynamic color) */
.hue-rotate {
  border: 2px solid;
  filter: hue-rotate(0deg);
  animation: hue-spin 4s linear infinite;
}

/* Style 6: Dual Color Alternate Flicker (dynamic color) */
.alternate-glow {
  border: 2px solid;
  animation: alternate-colors 2s ease-in-out infinite alternate;
}

/* Style 7: Multi-color Flowing Light Band (dynamic color) */
.color-stream {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(45deg,
    #ff0000, #ff8000, #ffff00, #00ff00,
    #00ffff, #0000ff, #8000ff, #ff0080
  );
  background-size: 400% 400%;
  animation: gradient-flow 3s ease infinite;
}

/* Style 8: Random Color Change (dynamic color) */
.random-colors {
  border: 2px solid;
  animation: random-glow 5s linear infinite;
}

/* Style 9: Website Theme Color Dynamic Change (dynamic color, recommended) */
.theme-flow {
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
}

/* Style 10: LED Matrix Effect (supports dynamic color) */
.led-matrix {
  border: 2px solid;
  box-shadow:
    0 0 5px currentColor,
    0 0 10px currentColor;
  position: relative;
  animation: random-glow 5s linear infinite;
}

.led-matrix::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background:
    radial-gradient(circle at 0% 0%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 100% 0%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 0% 100%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 100% 100%, currentColor 2px, transparent 3px);
  background-size: 20px 20px;
  animation: led-blink 1s steps(2) infinite;
}

/* Dynamic Color Animation Definitions */
@keyframes rainbow-border {
  0% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
  16.6% { border-color: #ff8000; box-shadow: 0 0 10px #ff8000, 0 0 20px #ff8000; }
  33.3% { border-color: #ffff00; box-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00; }
  50% { border-color: #00ff00; box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00; }
  66.6% { border-color: #0000ff; box-shadow: 0 0 10px #0000ff, 0 0 20px #0000ff; }
  83.3% { border-color: #8000ff; box-shadow: 0 0 10px #8000ff, 0 0 20px #8000ff; }
  100% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
}

@keyframes hue-spin {
  0% { filter: hue-rotate(0deg); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
  100% { filter: hue-rotate(360deg); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
}

@keyframes alternate-colors {
  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 gradient-flow {
  0% { background-position: 0% 50%; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff8000; }
  50% { background-position: 100% 50%; box-shadow: 0 0 10px #00ffff, 0 0 20px #0000ff; }
  100% { background-position: 0% 50%; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff8000; }
}

@keyframes random-glow {
  0% { border-color: #ff00ff; box-shadow: 0 0 20px #ff00ff; }
  20% { border-color: #00ffff; box-shadow: 0 0 20px #00ffff; }
  40% { border-color: #ffff00; box-shadow: 0 0 20px #ffff00; }
  60% { border-color: #00ff00; box-shadow: 0 0 20px #00ff00; }
  80% { border-color: #ff0000; box-shadow: 0 0 20px #ff0000; }
  100% { border-color: #ff00ff; box-shadow: 0 0 20px #ff00ff; }
}

@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); /* Primary color with transparency */
  }
  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); /* Secondary color with transparency */
  }
  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, 0, 255, 0.3); /* Accent color with transparency */
  }
}

/* Original animation definitions (for compatibility/utility) */
@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 led-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

/* Dynamic Neon Text Glow */
.neon-text-dynamic {
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}

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

/* -------------------- Header Styles -------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--dark-bg-1); /* Base dark background for the entire fixed header */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-top {
  background: var(--header-top-bg);
  border-bottom: 2px solid var(--neon-primary); /* Neon border for top section */
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic glow for header-top */
  padding: 8px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* Padding for content inside the container */
  min-height: 40px;
}

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 0;
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-accent), var(--neon-secondary)); /* Vibrant gradient for buttons */
  padding: 10px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  /* Dynamic glow for buttons (theme-flow is applied via class in HTML) */
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--neon-accent);
  white-space: nowrap;
}

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
  z-index: 1002;
  padding: 5px;
  border-radius: 3px;
  transition: all 0.3s ease;
  /* Neon glow for hamburger icon */
  box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
  animation: pulse-glow 2s ease-in-out infinite alternate, theme-colors 4s ease-in-out infinite;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--neon-primary);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease-in-out;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 11px; }
.hamburger-menu span:nth-child(3) { top: 22px; }

/* Hamburger menu active state */
.hamburger-menu.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* Main Navigation (regular style for links and bar itself) */
.main-nav {
  background-color: var(--main-nav-bg); /* Dark background for nav bar */
  padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border for separation */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller desktop screens */
}

.nav-link {
  color: #e0e0e0; /* Regular link color */
  text-decoration: none;
  padding: 10px 15px;
  font-weight: 500;
  font-size: 1em;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--neon-primary); /* Highlight on hover */
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999; /* Below hamburger menu, above content */
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* -------------------- Footer Styles -------------------- */
.site-footer {
  background-color: var(--secondary-color); /* Dark background for footer */
  color: #ccc;
  padding: 40px 20px 20px;
  font-size: 0.9em;
}

.footer-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive 4-column */
  gap: 30px;
  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;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 5px;
}

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

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

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

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

.footer-nav a,
.footer-col p a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-col p 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;
}

.footer-middle-sections {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.game-providers-section:last-child,
.social-media-section:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.85em;
  color: #999;
}

.copyright {
  margin: 0;
}

/* -------------------- Responsive Styles -------------------- */
@media (max-width: 768px) {
  body {
    padding-top: var(--header-height-mobile); /* Adjusted for mobile */
  }

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

  .hamburger-menu {
    display: block;
    order: -1; /* Move to the left */
    margin-right: auto; /* Push logo to center */
  }

  .logo {
    flex-grow: 1; /* Allows logo to take available space */
    text-align: center;
    font-size: 1.8em;
    margin-left: -35px; /* Adjust to visually center considering hamburger */
  }

  .desktop-nav-buttons {
    order: 1; /* Move buttons below logo */
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    gap: 8px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    flex-direction: column;
    background-color: var(--dark-bg-2); /* Dark background for mobile menu */
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
    padding-top: 60px; /* Space for hamburger/logo area */
    overflow-y: auto;
    border-right: 2px solid rgba(255, 255, 255, 0.1);
  }

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

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

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

  .footer-top-grid {
    grid-template-columns: 1fr; /* Single column layout for mobile */
  }

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

  .footer-col h4 {
    margin-top: 20px;
  }

  .footer-logo {
    margin: 0 auto 15px auto;
  }

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