:root {
  --primary-site-color: #8B0000; /* Deep Red from prompt */
  --secondary-site-color: #FFD700; /* Gold from prompt */

  /* Intelligent neon color selection based on site theme, but vibrant */
  --neon-color-1: hsl(330, 100%, 70%); /* Bright Magenta */
  --neon-color-2: hsl(190, 100%, 70%); /* Bright Cyan */
  --neon-color-3: hsl(60, 100%, 70%); /* Bright Yellow */
  --neon-color-4: hsl(10, 100%, 70%); /* Bright Orange-Red */
  --neon-color-5: hsl(120, 100%, 70%); /* Bright Green */
  --neon-color-6: hsl(240, 100%, 70%); /* Bright Blue */

  /* Header specific dark background colors */
  --header-bg-start: #0a0a0a;
  --header-bg-mid: #1a1a2e;
  --header-bg-end: #16213e;

  /* Main nav specific dark background colors (slightly different for contrast) */
  --main-nav-bg-start: #16213e;
  --main-nav-bg-mid: #0f3460;
  --main-nav-bg-end: #0a0a0a;

  /* Dynamic color variables for animations */
  --current-neon-border: var(--neon-color-1);
  --current-neon-glow: var(--neon-color-1);
  --current-neon-text: var(--neon-color-1);
}

/* Global Resets & Body Padding */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #0d0d0d;
  color: #e0e0e0;
  line-height: 1.6;
  padding-top: 110px; /* Default for desktop header */
}

/* Keyframe Animations */
@keyframes theme-colors {
  0%, 100% {
    --current-neon-border: var(--neon-color-1);
    --current-neon-glow: var(--neon-color-1);
    --current-neon-text: var(--neon-color-1);
  }
  25% {
    --current-neon-border: var(--neon-color-2);
    --current-neon-glow: var(--neon-color-2);
    --current-neon-text: var(--neon-color-2);
  }
  50% {
    --current-neon-border: var(--neon-color-3);
    --current-neon-glow: var(--neon-color-3);
    --current-neon-text: var(--neon-color-3);
  }
  75% {
    --current-neon-border: var(--neon-color-4);
    --current-neon-glow: var(--neon-color-4);
    --current-neon-text: var(--neon-color-4);
  }
}

@keyframes text-glow-flow {
  0%, 100% {
    text-shadow:
      0 0 5px var(--neon-color-1),
      0 0 10px var(--neon-color-1),
      0 0 15px var(--neon-color-1);
    color: #ffffff;
  }
  33% {
    text-shadow:
      0 0 5px var(--neon-color-2),
      0 0 10px var(--neon-color-2),
      0 0 15px var(--neon-color-2);
    color: #ffffff;
  }
  66% {
    text-shadow:
      0 0 5px var(--neon-color-3),
      0 0 10px var(--neon-color-3),
      0 0 15px var(--neon-color-3);
    color: #ffffff;
  }
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    box-shadow:
      0 0 10px var(--current-neon-glow),
      0 0 20px var(--current-neon-glow),
      0 0 30px var(--current-neon-glow),
      inset 0 0 15px var(--current-neon-glow);
  }
  20%, 24%, 55% {
    opacity: 0.8;
    box-shadow:
      0 0 5px var(--current-neon-glow),
      0 0 10px var(--current-neon-glow),
      0 0 15px var(--current-neon-glow),
      inset 0 0 10px var(--current-neon-glow);
  }
}

@keyframes pulse-glow {
  from {
    box-shadow:
      0 0 5px var(--current-neon-glow),
      0 0 10px var(--current-neon-glow);
  }
  to {
    box-shadow:
      0 0 15px var(--current-neon-glow),
      0 0 30px var(--current-neon-glow),
      0 0 45px var(--current-neon-glow);
  }
}

@keyframes led-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

@keyframes hamburger-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { box-shadow: 0 0 5px var(--neon-color-3), 0 0 10px var(--neon-color-3); }
  20%, 24%, 55% { box-shadow: none; }
}

/* Header Styles (Desktop First) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.header-top {
  background: linear-gradient(135deg, var(--header-bg-start), var(--header-bg-mid), var(--header-bg-end));
  padding: 10px 0;
  border-bottom: 2px solid var(--current-neon-border);
  animation: theme-colors 4s linear infinite;
  box-shadow:
    0 0 10px var(--current-neon-glow),
    0 0 20px var(--current-neon-glow),
    inset 0 0 10px rgba(255, 255, 255, 0.1);
  min-height: 40px;
}

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

.logo {
  font-family: 'Orbitron', sans-serif; /* Example sci-fi font */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  color: #ffffff;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  transition: transform 0.3s ease;
}

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

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-color-1), var(--neon-color-4));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--current-neon-border);
  box-shadow:
    0 0 10px var(--current-neon-glow),
    0 0 20px var(--current-neon-glow),
    inset 0 0 10px rgba(255, 255, 255, 0.1);
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--current-neon-glow);
  animation: theme-colors 4s ease-in-out infinite; /* Base for dynamic colors */
}

.btn.neon-pulse {
  animation: theme-colors 4s ease-in-out infinite, pulse-glow 2s ease-in-out infinite alternate;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  opacity: 0.9;
  animation-duration: 2s; /* Speed up color change on hover */
}

.main-nav {
  background: linear-gradient(135deg, var(--main-nav-bg-start), var(--main-nav-bg-mid), var(--main-nav-bg-end));
  padding: 10px 0;
  border-top: 2px solid var(--current-neon-border);
  border-bottom: 2px solid var(--current-neon-border);
  animation: theme-colors 4s linear infinite; /* Base for dynamic colors */
  box-shadow:
    0 0 8px var(--current-neon-glow),
    0 0 15px var(--current-neon-glow),
    inset 0 0 8px rgba(255, 255, 255, 0.05);
  min-height: 30px;
  display: flex; /* Desktop default: visible */
  flex-direction: row; /* Desktop default: horizontal */
  justify-content: center;
  align-items: center;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: var(--secondary-site-color); /* Use a site color for underline */
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary-site-color);
  text-shadow: 0 0 5px var(--secondary-site-color);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger-menu, .mobile-nav-buttons, .mobile-menu-overlay {
  display: none; /* Hidden on desktop */
}

/* Footer Styles */
.site-footer {
  background-color: #1a1a1a;
  color: #b0b0b0;
  padding: 40px 0 20px;
  font-size: 14px;
  border-top: 1px solid #333;
}

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

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

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 15px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-site-color);
}

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

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

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

.footer-col ul li a:hover {
  color: var(--secondary-site-color);
}

.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

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

.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;
  width: 100%;
}

.payment-methods img,
.game-providers-section img,
.social-media-section img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(150%); /* Make icons fit dark theme */
  transition: filter 0.3s ease;
}

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

.game-providers-section,
.social-media-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #2a2a2a;
}

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

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #2a2a2a;
}

.copyright-info {
  color: #777;
  font-size: 13px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: 130px; /* Adjust for mobile header + buttons */
  }

  .site-header {
    flex-direction: column;
  }

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

  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none;
    justify-content: space-between;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: relative;
    z-index: 1001; /* Above logo and overlay */
    order: 1;
    animation: hamburger-flicker 3s infinite alternate;
    border-radius: 3px;
    padding: 3px;
  }

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

  .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);
  }

  .logo {
    order: 2;
    flex: 1;
    text-align: center;
    font-size: 24px;
    margin: 0 10px;
  }

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

  .mobile-nav-buttons {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    overflow: hidden;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background: linear-gradient(135deg, var(--header-bg-start), var(--header-bg-mid));
    border-bottom: 2px solid var(--current-neon-border);
    animation: theme-colors 4s linear infinite;
    box-shadow:
      0 0 8px var(--current-neon-glow),
      0 0 15px var(--current-neon-glow),
      inset 0 0 8px rgba(255, 255, 255, 0.05);
    z-index: 1000; /* Below hamburger menu, above content */
  }

  .mobile-nav-buttons .btn {
    max-width: calc(100% - 20px); /* Allow for padding/gap */
    min-width: 120px;
    flex: 1 1 auto;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 10px 15px;
    font-size: 14px;
  }

  .main-nav {
    display: none; /* Mobile default: hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: linear-gradient(135deg, var(--main-nav-bg-start), var(--main-nav-bg-mid), var(--main-nav-bg-end));
    padding: 80px 20px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    border-right: 2px solid var(--current-neon-border);
    animation: theme-colors 4s linear infinite;
    box-shadow:
      0 0 10px var(--current-neon-glow),
      0 0 20px var(--current-neon-glow),
      inset 0 0 10px rgba(255, 255, 255, 0.1);
  }

  .main-nav.active {
    display: flex; /* Mobile active: visible */
    transform: translateX(0);
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .nav-link {
    font-size: 18px;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link::after {
    background-color: var(--neon-color-3);
  }

  .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;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

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

  body.no-scroll {
    overflow: hidden;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

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

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