:root {
  --primary-color: #002060;
  --secondary-color: #FFD700;

  --neon-header-top-1: #FFFF00; /* Bright yellow */
  --neon-header-top-2: #FFEB3B; /* Lighter yellow */
  --neon-header-top-3: #FFD700; /* Gold */

  --neon-main-nav-1: #00FFFF; /* Cyan */
  --neon-main-nav-2: #00E5FF; /* Lighter Cyan */
  --neon-main-nav-3: #00BFFF; /* Deep Sky Blue */

  --neon-btn-1: #FF1493; /* Deep Pink */
  --neon-btn-2: #FF00FF; /* Magenta */
  --neon-btn-3: #FF007F; /* Rose */

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

/* Base animations for neon effects */
@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; }
}

/* Dynamic color animations */
@keyframes theme-flow {
  0%, 100% {
    border-color: var(--neon-header-top-1);
    box-shadow: 
      0 0 10px var(--neon-header-top-1),
      0 0 20px var(--neon-header-top-1),
      inset 0 0 10px rgba(255, 255, 0, 0.3);
  }
  33% {
    border-color: var(--neon-header-top-2);
    box-shadow: 
      0 0 10px var(--neon-header-top-2),
      0 0 20px var(--neon-header-top-2),
      inset 0 0 10px rgba(255, 235, 59, 0.3);
  }
  66% {
    border-color: var(--neon-header-top-3);
    box-shadow: 
      0 0 10px var(--neon-header-top-3),
      0 0 20px var(--neon-header-top-3),
      inset 0 0 10px rgba(255, 215, 0, 0.3);
  }
}

@keyframes theme-flow-nav {
  0%, 100% {
    border-color: var(--neon-main-nav-1);
    box-shadow: 
      0 0 10px var(--neon-main-nav-1),
      0 0 20px var(--neon-main-nav-1),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  33% {
    border-color: var(--neon-main-nav-2);
    box-shadow: 
      0 0 10px var(--neon-main-nav-2),
      0 0 20px var(--neon-main-nav-2),
      inset 0 0 10px rgba(0, 229, 255, 0.3);
  }
  66% {
    border-color: var(--neon-main-nav-3);
    box-shadow: 
      0 0 10px var(--neon-main-nav-3),
      0 0 20px var(--neon-main-nav-3),
      inset 0 0 10px rgba(0, 191, 255, 0.3);
  }
}

@keyframes alternate-glow {
  0% {
    border-color: var(--neon-btn-1);
    box-shadow: 
      0 0 10px var(--neon-btn-1),
      0 0 20px var(--neon-btn-1);
  }
  100% {
    border-color: var(--neon-btn-2);
    box-shadow: 
      0 0 10px var(--neon-btn-2),
      0 0 20px var(--neon-btn-2);
  }
}

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

/* General body styling for fixed header offset */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
  padding-top: 110px; /* Adjust based on header height */
}

/* Header styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

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

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

.logo {
  font-size: 2.5em;
  font-weight: bold;
  text-decoration: none;
  color: #fff; /* Base color for text, glow will be added */
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  text-transform: uppercase;
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-btn-1), var(--neon-btn-2));
  padding: 10px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-flow 4s ease-in-out infinite;
  text-shadow: 
    0 0 5px #ffffff,
    0 0 10px var(--neon-btn-1);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap;
}

.btn:hover {
  animation-duration: 2s; /* Speed up glow on hover */
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--neon-btn-2), var(--neon-btn-3));
}

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  padding: 10px 0;
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-flow-nav 4s ease-in-out infinite alternate;
  color: var(--neon-main-nav-1); /* Base color for currentcolor */
  display: flex;
  flex-direction: row;
}

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

.nav-link {
  color: #ffffff; /* Conventional text color */
  text-decoration: none;
  padding: 8px 15px;
  font-size: 1em;
  font-weight: bold;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--secondary-color);
  text-shadow: 0 0 8px var(--secondary-color), 0 0 15px var(--secondary-color);
}

/* Hamburger menu (mobile only) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
  animation: theme-flow 4s ease-in-out infinite alternate; /* Neon glow for hamburger */
  border-radius: 3px;
}

.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;
  box-shadow: 0 0 5px #fff, 0 0 10px #fff;
}

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

.mobile-nav-wrapper {
  display: none; /* Hidden by default */
}

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

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

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

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

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

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

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

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

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

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

.footer-nav-list 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;
  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;
  filter: grayscale(100%) brightness(150%); /* Make icons fit dark theme */
  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: grayscale(0%) brightness(100%);
}

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

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

.footer-bottom-section {
  text-align: center;
}

.copyright {
  color: #888;
}

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

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

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

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

  .logo {
    font-size: 2em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
  }

  .hamburger-menu {
    display: block; /* Show hamburger */
    order: -1; /* Place to the left */
    margin-right: auto;
    position: relative;
    z-index: 1001;
  }

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

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

  .mobile-nav-wrapper {
    display: block; /* Show mobile nav wrapper */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 998;
  }

  .mobile-menu-overlay {
    position: fixed;
    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;
    z-index: 999;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px; /* Width of mobile menu */
    height: 100%;
    background-color: var(--dark-bg-1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 15px rgba(0, 255, 255, 0.5);
  }

  .mobile-menu.active {
    transform: translateX(0);
  }

  .mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
  }

  .mobile-main-nav {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
  }

  .mobile-main-nav .nav-link {
    color: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-shadow: none; /* No neon glow for mobile menu items */
  }

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

  .mobile-main-nav .nav-link:hover {
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.05);
    text-shadow: none;
  }

  .footer-top-section .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-col {
    margin-bottom: 20px;
  }

  .footer-col:last-child {
    margin-bottom: 0;
  }

  .footer-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
  }

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

  .game-providers-section h4,
  .social-media-section h4 {
    text-align: center;
  }

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