:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000000; /* Black */

  /* Intelligent Neon Color Selection based on primary-color */
  --neon-yellow: #FFFF00;
  --neon-orange: #FFA500;
  --neon-pink: #FF00FF;
  --neon-blue: #00FFFF;
  --neon-red: #FF3366;
  --neon-green: #00FF00;

  --header-bg-dark: #0a0a0a;
  --nav-bg-dark: #1a1a2e;
  --footer-bg-dark: #121212;

  /* Dynamic color variables for animations */
  --neon-primary-anim: var(--neon-yellow); /* Initial primary for animation */
  --neon-secondary-anim: var(--neon-orange); /* Initial secondary for animation */
  --neon-accent-anim: var(--neon-pink); /* Initial accent for animation */

  --header-height-desktop-top: 60px;
  --header-height-desktop-nav: 50px;
  --header-height-desktop: calc(var(--header-height-desktop-top) + var(--header-height-desktop-nav));

  --header-height-mobile-top: 60px; /* Hamburger + Logo */
  --header-height-mobile-buttons: 50px; /* Mobile buttons area */
  --header-height-mobile: calc(var(--header-height-mobile-top) + var(--header-height-mobile-buttons));
}

/* 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-anim), 0 0 20px var(--neon-primary-anim); }
  100% { filter: hue-rotate(360deg); box-shadow: 0 0 10px var(--neon-primary-anim), 0 0 20px var(--neon-primary-anim); }
}

@keyframes alternate-colors {
  0% { border-color: var(--neon-primary-anim); box-shadow: 0 0 10px var(--neon-primary-anim), 0 0 20px var(--neon-primary-anim); }
  100% { border-color: var(--neon-secondary-anim); box-shadow: 0 0 10px var(--neon-secondary-anim), 0 0 20px var(--neon-secondary-anim); }
}

@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-yellow);
    box-shadow: 0 0 10px var(--neon-yellow), 0 0 20px var(--neon-yellow), inset 0 0 10px rgba(255, 215, 0, 0.3);
  }
  33% {
    border-color: var(--neon-orange);
    box-shadow: 0 0 10px var(--neon-orange), 0 0 20px var(--neon-orange), inset 0 0 10px rgba(255, 165, 0, 0.3);
  }
  66% {
    border-color: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink), inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
}

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

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

/* Base glow styles */
.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);
}
.neon-tube { border: 2px solid; animation: neon-flicker 2s infinite alternate, theme-colors 4s linear infinite; }
.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; }
.neon-pulse { border: 2px solid; animation: pulse-glow 2s ease-in-out infinite alternate, theme-colors 4s ease-in-out infinite; }
.rainbow-flow { border: 2px solid; animation: rainbow-border 3s linear infinite; }
.hue-rotate { border: 2px solid; filter: hue-rotate(0deg); animation: hue-spin 4s linear infinite; }
.alternate-glow { border: 2px solid; animation: alternate-colors 2s ease-in-out infinite alternate; }
.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; }
.random-colors { border: 2px solid; animation: random-glow 5s linear infinite; }
.theme-flow { border: 2px solid; animation: theme-colors 4s ease-in-out infinite; }
.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;
}
.neon-text-dynamic { animation: text-glow-flow 3s ease-in-out infinite alternate; }

/* General reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #000;
  color: #f0f0f0;
  padding-top: var(--header-height-desktop); /* Dynamic padding for fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Prevent body scroll when menu is active */
body.no-scroll {
  overflow: hidden;
}

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

/* Site Header (Fixed Navigation) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg-dark); /* Fallback */
}

/* Header Top Area (Logo + Desktop Buttons + Hamburger) */
.header-top {
  background: linear-gradient(135deg, var(--header-bg-dark), #1a1a2e, #16213e);
  border-bottom: 2px solid var(--neon-yellow);
  box-shadow: 0 0 10px var(--neon-yellow), 0 0 20px var(--neon-yellow), inset 0 0 10px rgba(255, 215, 0, 0.1);
  padding: 10px 0;
  display: flex; /* For desktop layout */
  align-items: center;
  justify-content: space-between; /* For desktop layout */
  height: var(--header-height-desktop-top);
}

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

/* Logo */
.logo {
  font-size: 2em;
  font-weight: bold;
  text-decoration: none;
  color: #fff; /* Base color for neon text */
  white-space: nowrap;
  letter-spacing: 2px;
  text-transform: uppercase; /* Enforce uppercase for English part */
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Mobile Navigation Buttons (Hidden on Desktop) */
.mobile-nav-buttons {
  display: none; /* Hidden by default on desktop */
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  padding: 10px 0;
  border-bottom: 2px solid var(--neon-orange);
  box-shadow: 0 0 10px var(--neon-orange), 0 0 20px var(--neon-orange), inset 0 0 10px rgba(255, 165, 0, 0.1);
  min-height: var(--header-height-mobile-buttons); /* Fixed height for mobile buttons */
}

/* Main Navigation Menu */
.main-nav {
  background: linear-gradient(135deg, var(--nav-bg-dark), #16213e, #0f3460);
  border-top: 2px solid var(--neon-red);
  border-bottom: 2px solid var(--neon-red);
  box-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red), inset 0 0 10px rgba(255, 51, 102, 0.1);
  padding: 10px 0;
  height: var(--header-height-desktop-nav); /* Fixed height for main-nav */
  display: flex; /* Desktop default: visible, horizontal */
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: center; /* Center menu items */
  align-items: center;
  width: 100%;
}

.nav-item {
  color: #e0e0e0;
  text-decoration: none;
  padding: 8px 15px;
  font-size: 1.05em;
  white-space: nowrap;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

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

/* Buttons */
.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-yellow), var(--neon-orange)); /* Initial gradient for buttons */
  padding: 12px 30px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic color for border and shadow */
  text-shadow: 0 0 5px #ffffff, 0 0 10px var(--neon-yellow); /* Initial text shadow */
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap; /* Prevent button text from wrapping on desktop */
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  animation-duration: 2s; /* Faster animation on hover */
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--neon-yellow), 0 0 30px var(--neon-yellow), inset 0 0 15px rgba(255, 215, 0, 0.5); /* Enhanced hover glow */
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
  width: 40px; /* Fixed width for hamburger */
  height: 40px; /* Fixed height for hamburger */
  flex-direction: column;
  justify-content: space-around;
  transition: all 0.3s ease;
  border-radius: 5px;
  animation: hue-spin 4s linear infinite; /* Dynamic glow for hamburger */
}
.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--neon-yellow); /* Neon color for bars */
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--neon-yellow), 0 0 10px var(--neon-yellow);
}

.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
  opacity: 0;
}
.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Footer Styles (Regular, no neon) */
.site-footer {
  background-color: var(--footer-bg-dark);
  color: #ccc;
  padding: 40px 0 20px;
  font-size: 0.9em;
}

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

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

.footer-col h4 {
  color: #fff;
  font-size: 1.2em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

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

.footer-nav, .footer-legal-nav {
  list-style: none;
}

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

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

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

.payment-icons, .game-providers-icons, .social-media-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* Consistent gap for icons */
  align-items: flex-start;
}
.payment-icons img, .game-providers-icons img, .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
}

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

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

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

.footer-bottom .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.copyright {
  margin-bottom: 10px;
}

.footer-legal-nav {
  display: flex;
  gap: 15px;
}

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

  .header-top {
    height: var(--header-height-mobile-top);
  }

  .mobile-nav-buttons {
    height: auto;
    min-height: var(--header-height-mobile-buttons);
  }

  /* Header Top Mobile Layout */
  .header-container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: none;
    justify-content: space-between;
  }
  .hamburger-menu {
    display: flex; /* Show hamburger menu */
    order: 0;
  }
  .logo {
    flex: 1;
    text-align: center;
    order: 1;
    font-size: 1.8em;
    padding-right: 40px; /* Balance hamburger space */
  }
  .desktop-nav-buttons {
    display: none;
  }

  /* Mobile Navigation Buttons */
  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    justify-content: center;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap; /* Ensure buttons stay in one line */
  }
  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* Max width considering gap */
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
  }

  /* Main Navigation Mobile (Hamburger Menu Content) */
  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: var(--header-height-mobile); /* Position below header and mobile buttons */
    left: 0;
    width: 80%; /* Menu width */
    max-width: 300px; /* Max menu width */
    height: calc(100% - var(--header-height-mobile)); /* Full height below header */
    background: linear-gradient(180deg, var(--nav-bg-dark), #0f3460);
    overflow-y: auto;
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-out;
    border: none;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Above overlay */
  }
  .main-nav.active {
    display: flex; /* Show menu */
    transform: translateX(0); /* Slide in */
  }
  .nav-container {
    flex-direction: column;
    padding: 20px 0;
    width: 100%;
    max-width: none;
  }
  .nav-item {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-item:last-child {
    border-bottom: none;
  }

  /* Footer Mobile Layout */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-bottom .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal-nav {
    margin-top: 15px;
    justify-content: center;
  }
  .copyright {
    margin-bottom: 0;
  }
}