:root {
  --primary-bg: #0A192F;
  --accent-color: #FFD700;
  --neon-primary: var(--accent-color);
  --neon-secondary: #FF6600; /* Orange for contrast */
  --neon-accent: #FF00FF; /* Pink/Magenta */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --header-height-desktop: 100px; /* Approximate height for desktop header-top */
  --main-nav-height-desktop: 50px; /* Approximate height for desktop main-nav */
  --mobile-header-top-height: 60px;
  --mobile-buttons-height: 70px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background-color: var(--primary-bg);
  padding-top: calc(var(--header-height-desktop) + var(--main-nav-height-desktop)); /* Adjust for fixed header */
}

body.no-scroll {
  overflow: hidden;
}

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

ul {
  list-style: none;
}

/* Keyframe Animations */
@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 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(255, 215, 0, 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, 102, 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;
  }
}

/* Header Styles - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent; /* Base for fixed header */
}

.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  padding: 15px 0;
  border-bottom: 2px solid;
  min-height: var(--header-height-desktop);
  display: flex;
  align-items: center;
  animation: theme-colors 4s ease-in-out infinite;
}

.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.2em;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  animation: text-glow-flow 3s ease-in-out infinite alternate, pulse-glow 2s ease-in-out infinite alternate;
  text-shadow:
    0 0 5px var(--neon-primary),
    0 0 10px var(--neon-primary),
    0 0 15px var(--neon-primary);
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  padding: 12px 25px;
  color: #ffffff;
  font-weight: bold;
  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;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  box-shadow:
    0 0 15px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.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;
  min-height: var(--main-nav-height-desktop);
  display: flex;
  align-items: center;
  animation: theme-colors 4s ease-in-out infinite reverse; /* Different animation for contrast */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap; /* Allow wrapping for many nav items */
}

.nav-item {
  color: #e0e0e0;
  font-size: 1.1em;
  padding: 8px 15px;
  margin: 0 5px;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 3px;
}

.nav-item:hover {
  color: var(--neon-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
}

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

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

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

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

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

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

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

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-logo {
  font-size: 1.8em;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  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(150%); /* Subtle effect for footer 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%);
}

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

.footer-middle .footer-container {
  grid-template-columns: 1fr; /* Stack game providers and social media */
  gap: 20px;
}

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

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

.copyright {
  color: #707070;
}

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

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

  .header-top {
    padding: 10px 0;
    min-height: var(--mobile-header-top-height);
    animation: none; /* Disable animation on mobile for performance */
    border-bottom: none;
    box-shadow: none;
  }

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

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

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

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Above overlay */
    position: relative;
    order: -1; /* Place it at the start */
    margin-right: auto; /* Push logo to center */
    animation: theme-colors 4s ease-in-out infinite; /* Neon glow for hamburger */
    border-radius: 3px;
    box-shadow: 0 0 5px var(--neon-primary);
  }

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

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

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: calc(var(--mobile-header-top-height) + var(--mobile-buttons-height));
    left: 0;
    width: 80%;
    height: calc(100% - (var(--mobile-header-top-height) + var(--mobile-buttons-height)));
    background: linear-gradient(180deg, var(--dark-bg-2), var(--dark-bg-1));
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px 15px;
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease-in-out;
    z-index: 1000; /* Above overlay, below hamburger */
    border-right: 2px solid var(--neon-primary);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    animation: none; /* Disable animation on mobile */
  }

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

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

  .nav-item {
    width: 100%;
    padding: 12px 0;
    margin: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2em;
  }

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

  .mobile-nav-buttons-wrapper {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
    padding: 10px 0;
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite reverse; /* Different animation for contrast */
    min-height: var(--mobile-buttons-height);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-buttons {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    overflow: hidden; /* Prevent overflow */
  }

  .mobile-nav-buttons .btn {
    flex: 1 1 auto; /* Allow buttons to grow/shrink */
    max-width: calc(50% - 5px); /* Two buttons per row, with gap */
    min-width: 140px; /* Minimum width for readability */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 10px 15px;
    font-size: 14px;
    text-align: center;
  }

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

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

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

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

  .footer-col ul {
    padding-left: 0;
  }

  .footer-col ul li a {
    display: block;
    padding: 5px 0;
  }

  .footer-logo {
    margin-bottom: 10px;
  }

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

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

  .footer-middle .footer-container {
    padding: 0 15px;
  }
}
