:root {
  --primary-site-color: #003366;
  --secondary-site-color: #FFCC00;

  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --dark-bg-4: #0f3460;

  --neon-electric-blue: #00FFFF;
  --neon-vibrant-magenta: #FF00FF;
  --neon-bright-yellow: #FFFF00;
  --neon-bright-red: #FF1744;
  --neon-bright-orange: #FFA500;

  --neon-primary: var(--neon-electric-blue);
  --neon-secondary: var(--neon-vibrant-magenta);
  --neon-accent: var(--neon-bright-yellow);
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg-1);
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 150px; /* Default for desktop, adjusted for mobile */
}

body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Neon Glow Animations */
@keyframes rainbow-border {
  0% {
    border-color: var(--neon-bright-red);
    box-shadow:
      0 0 10px var(--neon-bright-red),
      0 0 20px var(--neon-bright-red);
  }
  16.6% {
    border-color: var(--neon-bright-orange);
    box-shadow:
      0 0 10px var(--neon-bright-orange),
      0 0 20px var(--neon-bright-orange);
  }
  33.3% {
    border-color: var(--neon-bright-yellow);
    box-shadow:
      0 0 10px var(--neon-bright-yellow),
      0 0 20px var(--neon-bright-yellow);
  }
  50% {
    border-color: var(--neon-electric-blue);
    box-shadow:
      0 0 10px var(--neon-electric-blue),
      0 0 20px var(--neon-electric-blue);
  }
  66.6% {
    border-color: var(--neon-vibrant-magenta);
    box-shadow:
      0 0 10px var(--neon-vibrant-magenta),
      0 0 20px var(--neon-vibrant-magenta);
  }
  83.3% {
    border-color: #8000ff; /* Purple */
    box-shadow:
      0 0 10px #8000ff,
      0 0 20px #8000ff;
  }
  100% {
    border-color: var(--neon-bright-red);
    box-shadow:
      0 0 10px var(--neon-bright-red),
      0 0 20px var(--neon-bright-red);
  }
}

@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-bright-red),
      0 0 20px var(--neon-bright-orange);
  }
  50% {
    background-position: 100% 50%;
    box-shadow:
      0 0 10px var(--neon-electric-blue),
      0 0 20px var(--neon-vibrant-magenta);
  }
  100% {
    background-position: 0% 50%;
    box-shadow:
      0 0 10px var(--neon-bright-red),
      0 0 20px var(--neon-bright-orange);
  }
}

@keyframes random-glow {
  0% {
    border-color: var(--neon-vibrant-magenta);
    box-shadow: 0 0 20px var(--neon-vibrant-magenta);
  }
  20% {
    border-color: var(--neon-electric-blue);
    box-shadow: 0 0 20px var(--neon-electric-blue);
  }
  40% {
    border-color: var(--neon-bright-yellow);
    box-shadow: 0 0 20px var(--neon-bright-yellow);
  }
  60% {
    border-color: var(--neon-bright-red);
    box-shadow: 0 0 20px var(--neon-bright-red);
  }
  80% {
    border-color: var(--neon-bright-orange);
    box-shadow: 0 0 20px var(--neon-bright-orange);
  }
  100% {
    border-color: var(--neon-vibrant-magenta);
    box-shadow: 0 0 20px var(--neon-vibrant-magenta);
  }
}

@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 - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--dark-bg-1);
}

/* Wrapper for header top and mobile bars to manage fixed positioning */
.header-top-wrapper {
  position: relative;
  z-index: 10;
}

/* Desktop Header Top Bar */
.header-top {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  border-bottom: 2px solid var(--neon-bright-yellow);
  box-shadow:
    0 0 10px var(--neon-bright-yellow),
    0 0 20px var(--neon-bright-yellow),
    0 0 30px var(--neon-bright-yellow),
    inset 0 0 20px rgba(255, 255, 0, 0.1);
  padding: 10px 0;
  display: flex; /* Show on desktop */
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Arial Black', sans-serif; /* A strong, bold font */
  font-size: 2.2em;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
  padding: 5px 0;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  display: inline-block;
}

.desktop-nav-buttons {
  display: flex; /* Show on desktop */
  gap: 15px;
  align-items: center;
}

/* Main Navigation Area (Desktop Nav / Mobile Hidden Menu) */
.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-4));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid var(--neon-bright-red);
  box-shadow:
    0 0 8px var(--neon-bright-red),
    0 0 16px var(--neon-bright-red),
    0 0 24px var(--neon-bright-red),
    inset 0 0 15px rgba(255, 0, 0, 0.1);
  padding: 0;
  display: flex; /* Desktop: normal flow, horizontal */
  justify-content: center;
  align-items: center;
  min-height: 50px;
  position: static; /* Desktop: normal flow */
  z-index: 9;
}

.main-nav .nav-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 10px 0;
}

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

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

/* Buttons */
.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;
  white-space: nowrap;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  text-shadow:
    0 0 8px #ffffff,
    0 0 15px var(--neon-primary);
}

/* Mobile Specific Elements (Hidden by default on desktop) */
.mobile-header-bar, .mobile-nav-buttons, .mobile-menu-overlay {
  display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .header-container, .nav-container, .footer-container {
    max-width: none;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hide desktop specific header parts */
  .header-top, .desktop-nav-buttons {
    display: none;
  }

  /* Adjust site-header for mobile */
  .site-header {
    background: var(--dark-bg-2);
    box-shadow:
      0 0 10px var(--neon-bright-yellow),
      0 0 20px var(--neon-bright-yellow);
  }

  /* Mobile Header Bar (Hamburger + Logo) */
  .mobile-header-bar {
    display: flex; /* Show on mobile */
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
    border-bottom: 2px solid var(--neon-bright-yellow);
    box-shadow:
      0 0 5px var(--neon-bright-yellow),
      0 0 10px var(--neon-bright-yellow),
      inset 0 0 10px rgba(255, 255, 0, 0.1);
    position: relative;
    z-index: 10;
  }

  .mobile-logo {
    flex-grow: 1;
    text-align: center;
    font-size: 1.8em;
    padding: 0;
    animation: text-glow-flow 3s ease-in-out infinite alternate; /* Keep dynamic glow */
  }

  /* Hamburger Menu */
  .hamburger-menu {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    padding: 0;
    z-index: 1001;
    position: relative;
    box-shadow:
      0 0 5px var(--neon-electric-blue),
      0 0 10px var(--neon-electric-blue);
    border-radius: 3px;
    transition: box-shadow 0.3s ease;
  }

  .hamburger-menu:hover {
    box-shadow:
      0 0 8px var(--neon-electric-blue),
      0 0 15px var(--neon-electric-blue);
  }

  .hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--neon-electric-blue);
    border-radius: 1px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 5px var(--neon-electric-blue);
  }

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

  /* Mobile Buttons Area (Below Logo) */
  .mobile-nav-buttons {
    display: flex; /* Show on mobile */
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-2));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid var(--neon-vibrant-magenta);
    box-shadow:
      0 0 5px var(--neon-vibrant-magenta),
      0 0 10px var(--neon-vibrant-magenta),
      inset 0 0 10px rgba(255, 0, 255, 0.1);
    position: relative;
    z-index: 9;
  }

  .mobile-nav-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  /* Main Navigation (Mobile Menu - hidden by default, slides in) */
  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%; /* Adjust as needed */
    max-width: 300px;
    height: 100vh;
    background: var(--dark-bg-4);
    padding-top: 20px; /* Space from top */
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-in-out;
    box-shadow:
      0 0 15px var(--neon-electric-blue),
      0 0 30px var(--neon-electric-blue);
    border-right: 2px solid var(--neon-electric-blue);
    z-index: 1000;
    overflow-y: auto;
  }

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

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

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

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

  /* 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;
  }

  .mobile-menu-overlay.active {
    display: block; /* Show when active */
  }

  /* Adjust body padding for mobile header + button height */
  body {
    padding-top: 150px; /* Approx height of mobile-header-bar + mobile-nav-buttons */
  }
}

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

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

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

.footer-col h4 {
  color: var(--neon-bright-yellow);
  font-size: 1.2em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-logo {
  font-family: 'Arial Black', sans-serif;
  font-size: 1.8em;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--neon-bright-yellow);
  display: block;
  margin-bottom: 10px;
}

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

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

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

.footer-nav a {
  color: #b0b0b0;
  transition: color 0.3s ease;
}

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

.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(100%) brightness(150%) contrast(150%); /* Cyberpunk feel for icons */
  opacity: 0.7;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

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

.footer-secondary-content {
  padding: 30px 0;
}

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

.game-providers-section, .social-media-section {
  width: 100%;
}

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

.copyright {
  color: #888;
  margin: 0;
}

/* Footer Responsive */
@media (max-width: 992px) {
  .footer-main-content .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-main-content .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-col {
    text-align: center;
  }
  .footer-logo {
    text-align: center;
  }
  .footer-col h4 {
    text-align: center;
  }
  .footer-nav {
    text-align: center;
  }
  .payment-icons, .game-providers-icons, .social-media-icons {
    justify-content: center;
  }
}
