:root {
  --primary-color: #007bff; /* Base primary color */
  --secondary-color: #28a745; /* Base secondary color */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --neon-primary: #00FFFF; /* Fluorescent Cyan */
  --neon-secondary: #FF00FF; /* Fluorescent Magenta */
  --neon-accent: #FFFF00; /* Fluorescent Yellow */
  --neon-red: #FF0000;
  --neon-orange: #FF6600;
}

/* Universal Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: var(--dark-bg-1); /* Dark background for the entire site */
  color: #e0e0e0;
}

/* Prevent content from being hidden by fixed header */
body.has-fixed-header {
  padding-top: 150px; /* Adjust based on header's actual height */
}

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

/* --- Neon Glow & Dynamic Color Animations --- */
@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 var(--neon-primary), 0 0 20px var(--neon-secondary); }
  50% { background-position: 100% 50%; box-shadow: 0 0 10px var(--neon-secondary), 0 0 20px var(--neon-accent); }
  100% { background-position: 0% 50%; box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-secondary); }
}

@keyframes random-glow {
  0% { border-color: var(--neon-primary); box-shadow: 0 0 20px var(--neon-primary); }
  20% { border-color: var(--neon-secondary); box-shadow: 0 0 20px var(--neon-secondary); }
  40% { border-color: var(--neon-accent); box-shadow: 0 0 20px var(--neon-accent); }
  60% { border-color: var(--neon-red); box-shadow: 0 0 20px var(--neon-red); }
  80% { border-color: var(--neon-orange); box-shadow: 0 0 20px var(--neon-orange); }
  100% { border-color: var(--neon-primary); box-shadow: 0 0 20px var(--neon-primary); }
}

@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(0, 255, 255, 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(255, 0, 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, 255, 0, 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-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 (Desktop First) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  border-bottom: 2px solid var(--neon-primary);
  box-shadow: 0 0 15px var(--neon-primary), 0 0 30px var(--neon-primary);
  transition: all 0.3s ease;
}

.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  border-bottom: 2px solid var(--neon-primary);
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
  padding: 10px 0;
}

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

.logo {
  font-size: 2.2em;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  padding: 5px 0;
  animation: text-glow-flow 3s ease-in-out infinite alternate; /* Dynamic text glow */
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

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

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-2));
  border-top: 1px solid var(--neon-secondary);
  border-bottom: 2px solid var(--neon-secondary);
  animation: alternate-colors 4s ease-in-out infinite; /* Dynamic border color */
  padding: 10px 0;
  display: flex;
  flex-direction: row; /* Desktop default */
  justify-content: center;
}

.nav-container {
  display: flex;
  flex-direction: row; /* Desktop default */
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

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

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

.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; /* Dynamic border color */
  text-shadow: 0 0 5px #ffffff, 0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--neon-secondary), var(--neon-accent));
  box-shadow: 0 0 15px var(--neon-accent), 0 0 30px var(--neon-accent), inset 0 0 15px rgba(255, 255, 0, 0.3);
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
  border-radius: 3px;
  transition: all 0.3s ease;
  animation: neon-flicker 2s infinite alternate;
  border: 1px solid var(--neon-primary);
  box-shadow: 0 0 5px var(--neon-primary);
}

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

.hamburger-menu.active {
  border-color: var(--neon-secondary);
  box-shadow: 0 0 8px var(--neon-secondary), 0 0 15px var(--neon-secondary);
}

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

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

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

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

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

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

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

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

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-about {
  flex-basis: 25%; /* First column takes roughly 1/4 */
  min-width: 250px;
}

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

.footer-description {
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-top: 10px;
}

.site-footer h4 {
  color: #ffffff;
  font-size: 1.1em;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 5px;
}

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

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

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

.site-footer ul li a:hover {
  color: var(--primary-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-icons img,
.game-providers-icons img,
.social-media-icons img {
  max-height: 40px;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: brightness(0.8) grayscale(0.2);
  transition: filter 0.3s ease;
}

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

.footer-middle-section {
  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-section {
  padding-top: 20px;
  text-align: center;
}

.copyright {
  margin: 0;
  font-size: 0.85em;
  color: #999;
}

/* --- Responsive Styles (Mobile First Override) --- */
@media (max-width: 768px) {
  body.has-fixed-header {
    padding-top: 190px; /* Increased for mobile header + button area */
  }

  .header-container,
  .nav-container,
  .footer-container {
    padding: 0 15px; /* Smaller padding for mobile */
    max-width: none; /* Mobile containers take full width */
    width: 100%;
  }

  /* Header Top for Mobile: Hamburger, Logo (Centered) */
  .header-top .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hamburger-menu {
    display: flex;
    position: relative;
    order: 1;
  }

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

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

  /* Mobile Navigation Menu */
  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column; /* Vertical alignment */
    position: fixed;
    top: 0;
    left: 0;
    width: 70%; /* Side menu width */
    height: 100%;
    background: linear-gradient(180deg, var(--dark-bg-2), var(--dark-bg-3));
    border-right: 2px solid var(--neon-primary);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-out;
    z-index: 1000;
    padding-top: 60px; /* Space for fixed header content */
    overflow-y: auto;
  }

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

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

  .nav-link {
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.2em;
  }

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

  /* Mobile Buttons Area (Below Logo, always visible) */
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    gap: 10px;
    background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-1));
    border-top: 1px solid var(--neon-secondary);
    border-bottom: 2px solid var(--neon-accent);
    animation: random-glow 5s linear infinite; /* Different dynamic glow for buttons */
  }

  .mobile-nav-buttons .btn {
    flex: 1 1 auto; /* Allow buttons to grow/shrink */
    max-width: calc(100% - 20px); /* Adjust for padding/gap */
    min-width: 120px; /* Minimum width for buttons */
    white-space: normal;
    word-wrap: break-word;
    padding: 10px 15px;
    font-size: 14px;
    text-align: center;
  }

  /* Footer Responsive */
  .footer-container {
    flex-direction: column;
  }

  .footer-col {
    min-width: unset;
    flex-basis: auto;
    width: 100%;
  }

  .footer-about {
    order: -1; /* Move about to top on mobile */
    margin-bottom: 20px;
  }

  .footer-top-section,
  .footer-middle-section {
    padding: 20px 0;
  }

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