:root {
  --primary-site-color: #0A2463;
  --secondary-site-color: #FFD700;

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

  --neon-header-top-1: var(--secondary-site-color); /* Yellow/Gold */
  --neon-header-top-2: #FF6600; /* Orange */
  --neon-header-top-3: #FF00FF; /* Pink */

  --neon-main-nav-1: #FF00FF; /* Pink */
  --neon-main-nav-2: #FF0000; /* Red */
  --neon-main-nav-3: #00FFFF; /* Cyan */

  --neon-btn-1: #00FFFF; /* Cyan */
  --neon-btn-2: #00FF00; /* Green */
  --neon-btn-3: #FFFF00; /* Yellow */

  --text-color-light: #ffffff;
  --text-color-dark: #cccccc;

  --header-top-height: 60px;
  --mobile-button-height: 60px;
  --main-nav-height: 50px;
  --header-total-height-desktop: calc(var(--header-top-height) + var(--main-nav-height));
  --header-total-height-mobile: calc(var(--header-top-height) + var(--mobile-button-height));
}

/* Base Reset & Body Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--dark-bg-1);
  padding-top: var(--header-total-height-desktop); /* Desktop padding for fixed header */
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

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

ul {
  list-style: none;
}

/* Dynamic Neon Glow Animations */
@keyframes theme-colors-header-top {
  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, 255, 0.1);
  }
  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, 255, 255, 0.1);
  }
  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, 255, 255, 0.1);
  }
}

@keyframes theme-colors-main-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(255, 255, 255, 0.1);
  }
  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(255, 255, 255, 0.1);
  }
  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(255, 255, 255, 0.1);
  }
}

@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-btn-1);
    box-shadow: 
      0 0 10px var(--neon-btn-1),
      0 0 20px var(--neon-btn-1),
      inset 0 0 10px rgba(255, 255, 255, 0.1);
  }
  33% {
    border-color: var(--neon-btn-2);
    box-shadow: 
      0 0 10px var(--neon-btn-2),
      0 0 20px var(--neon-btn-2),
      inset 0 0 10px rgba(255, 255, 255, 0.1);
  }
  66% {
    border-color: var(--neon-btn-3);
    box-shadow: 
      0 0 10px var(--neon-btn-3),
      0 0 20px var(--neon-btn-3),
      inset 0 0 10px rgba(255, 255, 255, 0.1);
  }
}

@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: var(--text-color-light);
  }
  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: var(--text-color-light);
  }
  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: var(--text-color-light);
  }
}

@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;
  }
}

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

.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-header-top 4s ease-in-out infinite;
  min-height: var(--header-top-height);
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 2.2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-color-light);
  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);
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  padding: 10px 0;
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-btn-1), var(--neon-btn-2));
  padding: 12px 30px;
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow: 
    0 0 5px var(--text-color-light),
    0 0 10px var(--neon-btn-1);
  transition: all 0.3s ease;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.btn:hover {
  animation-duration: 2s;
  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), var(--primary-site-color));
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors-main-nav 4s ease-in-out infinite;
  min-height: var(--main-nav-height);
  display: flex; /* Desktop default: flex */
  flex-direction: row; /* Desktop default: row */
  align-items: center;
  justify-content: center;
  width: 100%;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  gap: 25px;
}

.nav-link {
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-color-light);
  padding: 8px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1002;
  border: 1px solid;
  border-radius: 3px;
  animation: theme-colors-header-top 4s ease-in-out infinite;
  padding: 5px;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-color-light);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu span:nth-child(3) { bottom: 0; }

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

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

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

.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
  width: 100%;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
  justify-content: center;
  gap: 15px;
  align-items: center;
  min-height: var(--mobile-button-height);
  z-index: 990;
}

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

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

/* Footer Styles */
.site-footer {
  background: linear-gradient(135deg, #101010, #202020);
  color: var(--text-color-dark);
  padding: 40px 0 20px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h4 {
  color: var(--text-color-light);
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

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

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

.footer-col ul {
  padding: 0;
}

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

.footer-col a {
  color: var(--text-color-dark);
  transition: color 0.3s ease;
}

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

.footer-logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-color-light);
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}

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

.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;
  object-fit: contain;
  filter: grayscale(100%) brightness(50%) contrast(150%); /* Darken and desaturate icons */
  transition: filter 0.3s ease;
}

.payment-icons img:hover, .game-providers-icons img:hover, .social-media-icons img:hover {
  filter: grayscale(0%) brightness(100%) contrast(100%); /* Full color on hover */
}

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

.footer-middle-section .footer-container.full-width {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

.footer-bottom-section .footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.footer-legal-nav a {
  color: var(--text-color-dark);
  transition: color 0.3s ease;
}

.footer-legal-nav a:hover {
  color: var(--secondary-site-color);
}

.copyright {
  color: var(--text-color-dark);
  font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-top: var(--header-total-height-mobile); /* Mobile padding for fixed header and buttons */
  }

  .header-container, .nav-container, .footer-container.full-width {
    padding: 0 15px;
    max-width: none; /* Remove max-width on mobile */
    width: 100%; /* Ensure full width on mobile */
  }

  .header-top .header-container {
    justify-content: space-between;
    padding: 0 15px;
  }

  .logo {
    flex-grow: 1;
    text-align: center;
    font-size: 1.8rem;
    padding: 10px 0;
  }

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

  .hamburger-menu {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
    width: 35px;
    height: 30px;
    padding: 5px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical menu on mobile */
    position: fixed;
    top: var(--header-total-height-mobile);
    left: 0;
    width: 70%;
    height: calc(100% - var(--header-total-height-mobile));
    background: linear-gradient(180deg, var(--dark-bg-3), var(--primary-site-color));
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    border-right: 2px solid;
    animation: theme-colors-main-nav 4s ease-in-out infinite;
    overflow-y: auto;
  }

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

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

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

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

  .mobile-nav-buttons {
    display: flex;
  }

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

  .footer-legal-nav {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .mobile-nav-buttons {
    flex-wrap: wrap;
  }
}
