:root {
  --primary-color: #0A2463; /* Dark Blue */
  --secondary-color: #E3B505; /* Golden Yellow */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;

  /* Neon Colors - derived from primary/secondary */
  --neon-electric-blue: #00FFFF; /* Cyan, vibrant */
  --neon-bright-yellow: #FFFF00; /* Pure yellow, vibrant */
  --neon-vibrant-pink: #FF00FF; /* Magenta, vibrant */
  --neon-vibrant-orange: #FF8C00; /* Dark Orange, vibrant */
  --neon-vibrant-red: #FF0000; /* Pure Red, vibrant */
  --neon-vibrant-green: #39FF14; /* Electric Green, vibrant */

  /* Dynamic color variables for animations */
  --neon-primary: var(--neon-electric-blue);
  --neon-secondary: var(--neon-bright-yellow);
  --neon-accent: var(--neon-vibrant-pink);
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
  padding-top: 140px; /* Adjust based on header height, desktop */
}

/* Animations - must be defined before use */
@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 rainbow-border {
  0% { border-color: var(--neon-vibrant-red); }
  16.6% { border-color: var(--neon-vibrant-orange); }
  33.3% { border-color: var(--neon-bright-yellow); }
  50% { border-color: var(--neon-vibrant-green); }
  66.6% { border-color: var(--neon-electric-blue); }
  83.3% { border-color: var(--neon-vibrant-pink); }
  100% { border-color: var(--neon-vibrant-red); }
}

@keyframes hue-spin {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@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%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes random-glow {
  0% { border-color: var(--neon-vibrant-pink); box-shadow: 0 0 20px var(--neon-vibrant-pink); }
  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-vibrant-green); box-shadow: 0 0 20px var(--neon-vibrant-green); }
  80% { border-color: var(--neon-vibrant-red); box-shadow: 0 0 20px var(--neon-vibrant-red); }
  100% { border-color: var(--neon-vibrant-pink); box-shadow: 0 0 20px var(--neon-vibrant-pink); }
}

@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, 255, 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(255, 0, 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: #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;
  }
}

/* Utility classes for 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, rainbow-border 3s 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 {
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

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

.hue-rotate {
  animation: hue-spin 4s linear infinite;
}

.alternate-glow {
  animation: alternate-colors 2s ease-in-out infinite alternate;
}

.color-stream {
  position: relative;
  background: linear-gradient(45deg, 
    var(--neon-vibrant-red), var(--neon-vibrant-orange), var(--neon-bright-yellow), var(--neon-vibrant-green), 
    var(--neon-electric-blue), var(--neon-vibrant-pink), #8000ff, #ff0080
  );
  background-size: 400% 400%;
  animation: gradient-flow 3s ease infinite;
}

.random-colors {
  animation: random-glow 5s linear infinite;
}

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

.neon-text-dynamic {
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}


/* Site Header - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column; /* Stacks header-top and main-nav */
}

/* Header Top Section (Logo and Buttons) */
.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color for header-top */
  padding: 15px 0; /* Vertical padding for content */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px; /* Desktop padding */
}

.logo {
  font-size: 2.5em;
  font-weight: bold;
  color: #fff; /* Base color for text glow */
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 2px;
  position: relative;
  animation: text-glow-flow 3s ease-in-out infinite alternate; /* Dynamic text glow */
  /* Applying neon-pulse to logo for additional glow effect */
  /* The neon-pulse animation uses currentColor, so it will pick up the text-glow-flow's color */
}
.logo.neon-pulse {
    /* Specific box-shadow for pulse glow, but text shadow is primary */
    box-shadow: none; /* Override default box-shadow for text-based logo */
}

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

/* 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;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-align: center;
  /* Dynamic color animation applied via class */
  text-shadow: 
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary); /* Initial glow color */
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
  animation-duration: 2s; /* Speed up glow on hover */
}

/* Main Navigation - Desktop */
.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3), var(--primary-color));
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite reverse; /* Different animation or reversed for contrast */
  padding: 10px 0;
  display: flex; /* Desktop default: visible */
}

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

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

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

/* Hamburger Menu - Hidden on Desktop */
.hamburger-menu {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1002; /* Above mobile-nav-overlay */
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic glow for hamburger */
  border-radius: 3px;
  padding: 5px;
  box-sizing: content-box; /* To make padding not affect width/height for span positioning */
}

.hamburger-menu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

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

.hamburger-menu.active span:nth-child(1) { top: 8px; transform: rotate(135deg); background: var(--neon-bright-yellow); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; left: -60px; }
.hamburger-menu.active span:nth-child(3) { top: 8px; transform: rotate(-135deg); background: var(--neon-bright-yellow); }

/* Mobile Navigation Wrapper */
.mobile-nav-wrapper {
  display: none; /* Hidden on desktop */
}

/* Footer Styles */
.site-footer {
  background-color: var(--dark-bg-1);
  color: #ccc;
  padding: 40px 0 20px;
  font-size: 0.9em;
  border-top: 1px solid #333;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top-section {
  padding-bottom: 30px;
}

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

.footer-col {
  padding-right: 15px; /* Spacing between columns */
}

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

.footer-description {
  line-height: 1.6;
  color: #aaa;
  word-wrap: break-word; /* Ensure full text display */
  overflow-wrap: break-word; /* Ensure full text display */
}

.site-footer h4 {
  color: #fff;
  font-size: 1.2em;
  margin-bottom: 20px;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.payment-methods .payment-icons,
.game-providers-section .game-providers-icons,
.social-media-section .social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px; /* Consistent gap for all icon sections */
  width: 100%;
}

.payment-methods .payment-icons img,
.game-providers-section .game-providers-icons img,
.social-media-section .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: brightness(0.8) grayscale(0.2); /* Slightly dim for footer */
  transition: filter 0.3s ease;
}

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

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

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

.footer-bottom-section {
  padding-top: 20px;
  text-align: center;
}

.copyright-info {
  color: #888;
  font-size: 0.85em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .nav-container {
    gap: 15px;
    padding: 0 15px;
  }
  .header-container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 180px; /* Adjust for mobile header height including buttons */
  }

  /* Header adjustments for mobile */
  .site-header {
    flex-direction: column;
  }

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

  .header-container {
    padding: 0 15px; /* Smaller padding */
    justify-content: space-between; /* Space between hamburger and logo */
    position: relative;
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 1; /* Place on left */
    margin-right: 15px;
  }

  .logo {
    order: 2; /* Place logo in center */
    flex-grow: 1; /* Allow logo to take available space */
    text-align: center; /* Center the logo text */
    font-size: 2em; /* Smaller font size */
    margin: 0; /* Remove any desktop margins */
  }

  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons */
  }

  /* Mobile buttons area - always visible below logo */
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px; /* Padding for the button strip */
    background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
    border-top: 1px solid;
    border-bottom: 1px solid;
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic border for mobile buttons */
  }
  .mobile-nav-buttons .btn {
      padding: 10px 20px; /* Adjust button padding for mobile */
      font-size: 0.9em;
  }

  /* Main Nav - Default hidden on mobile */
  .main-nav {
    display: none; /* Hidden on mobile by default */
  }

  /* Mobile Navigation specific styles */
  .mobile-nav-wrapper {
    display: block; /* Show wrapper on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks through when not active */
    z-index: 998; /* Below hamburger, above content */
  }

  .mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Enable clicks on overlay when active */
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    left: 0; /* Start off-screen */
    height: 100%;
    width: 280px; /* Mobile menu width */
    background: linear-gradient(180deg, var(--dark-bg-2), var(--dark-bg-3), var(--primary-color));
    padding: 80px 20px 20px; /* Padding to clear fixed header */
    box-shadow: 5px 0 15px rgba(0, 255, 255, 0.5);
    transform: translateX(-100%); /* Initially off-screen */
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Enable scrolling for long menus */
    z-index: 999; /* Above overlay */
  }

  .mobile-nav.active {
    transform: translateX(0); /* Slide in */
  }

  .mobile-nav .nav-link {
    display: block;
    padding: 15px 0;
    font-size: 1.2em;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mobile-nav .nav-link:last-child {
      border-bottom: none;
  }
  .mobile-nav .nav-link:hover {
      color: var(--neon-bright-yellow);
      text-shadow: 0 0 5px var(--neon-bright-yellow);
  }

  /* Footer adjustments for mobile */
  .footer-top-section .footer-container {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
  .footer-col {
      padding-right: 0;
  }

  .footer-logo {
    font-size: 1.5em;
    text-align: center;
  }
  .footer-description {
      text-align: center;
  }
  .site-footer h4 {
      text-align: center;
  }
  .footer-links {
      text-align: center;
  }
  .payment-methods .payment-icons,
  .game-providers-section .game-providers-icons,
  .social-media-section .social-media-icons {
      justify-content: center;
  }
}

/* Ensure body doesn't scroll when mobile menu is open */
body.no-scroll {
  overflow: hidden;
}