:root {
  --primary-color: #007bff;
  --secondary-color: #28a745;

  --neon-primary: #00eaff; /* Bright Cyan */
  --neon-secondary: #00ff66; /* Bright Green */
  --neon-accent: #ff00ff; /* Magenta */
  --neon-alt-1: #ff6600; /* Orange */
  --neon-alt-2: #ffff00; /* Yellow */

  --header-top-bg: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  --main-nav-bg: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);

  --header-height-desktop: 120px; /* Combined height of header-top and main-nav */
  --header-height-mobile-top: 60px; /* Height of header-top on mobile */
  --header-height-mobile-buttons: 60px; /* Height of mobile-nav-buttons */
  --header-height-mobile: calc(var(--header-height-mobile-top) + var(--header-height-mobile-buttons));
}

/* Base styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #f0f0f0;
  line-height: 1.6;
  padding-top: var(--header-height-desktop); /* Default padding-top for desktop */
}

/* Animations for dynamic colors and glows */
@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 rainbow-border {
  0% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
  16.6% { border-color: #ff8000; box-shadow: 0 0 10px #ff8000, 0 0 20px #ff8000; }
  33.3% { border-color: #ffff00; box-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00; }
  50% { border-color: #00ff00; box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00; }
  66.6% { border-color: #0000ff; box-shadow: 0 0 10px #0000ff, 0 0 20px #0000ff; }
  83.3% { border-color: #8000ff; box-shadow: 0 0 10px #8000ff, 0 0 20px #8000ff; }
  100% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
}

@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(102, 126, 234, 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(118, 75, 162, 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(240, 147, 251, 0.3);
  }
}

@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-alt-1);
    box-shadow: 0 0 10px var(--neon-alt-1), 0 0 20px var(--neon-alt-1);
  }
}

@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; /* Background handled by sub-elements */
}

.header-top {
  background: var(--header-top-bg);
  padding: 10px 0;
  color: #fff;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
}

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

.logo {
  font-size: 2em;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  position: relative;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  text-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
}

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

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

.btn {
  position: relative;
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent wrapping on desktop */
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.theme-flow {
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  animation: theme-colors 4s ease-in-out infinite;
}

.btn.alternate-glow {
  background: linear-gradient(135deg, var(--neon-alt-1), var(--neon-alt-2));
  animation: alternate-colors 2s ease-in-out infinite alternate;
}

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

.main-nav {
  background: var(--main-nav-bg);
  padding: 10px 0;
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: rainbow-border 6s linear infinite; /* Different animation for main nav */
  display: flex; /* Desktop default */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 30px;
  flex-wrap: wrap;
}

.nav-link {
  color: #f0f0f0;
  text-decoration: none;
  padding: 10px 15px;
  font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--neon-primary);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
  animation: theme-colors 4s ease-in-out infinite;
  border-radius: 3px;
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  margin: 5px 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
}

/* Mobile Menu Overlay */
.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;
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* Footer styles */
.site-footer {
  background-color: #1a1a1a;
  color: #ccc;
  padding: 40px 0 20px;
  font-size: 0.9em;
}

.site-footer h4 {
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

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

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

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

.footer-about .footer-logo {
  font-size: 1.8em;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  display: block;
  margin-bottom: 10px;
}

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

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

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

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

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

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

.game-providers-section, .social-media-section {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

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

.footer-bottom-section .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.copyright-info {
  margin: 0;
  font-size: 0.85em;
}

.footer-legal-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Mobile specific styles */
@media (max-width: 768px) {
  body {
    padding-top: var(--header-height-mobile); /* Adjust padding for mobile header */
  }

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

  .header-top {
    padding: 10px 0;
    height: var(--header-height-mobile-top);
    box-sizing: border-box;
  }

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

  .hamburger-menu {
    display: block;
    order: 0;
  }

  .logo {
    order: 1;
    flex-grow: 1;
    text-align: center;
    font-size: 1.8em;
    margin-left: -30px; /* Counteract hamburger width to center logo better */
  }

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

  .mobile-nav-buttons {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    background: var(--header-top-bg);
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    height: var(--header-height-mobile-buttons);
    align-items: center;
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-height-mobile); /* Position below fixed header */
    left: 0;
    width: 250px;
    height: calc(100% - var(--header-height-mobile));
    background-color: #111;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-out;
    z-index: 1000; /* Above overlay */
    overflow-y: auto;
    border-right: 2px solid;
    animation: rainbow-border 6s linear infinite; /* Apply glow to mobile menu */
  }

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

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

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

  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

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

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

  .footer-legal-links {
    justify-content: center;
  }
}
