:root {
  --brand-primary: #0A2463;
  --brand-secondary: #E0B14A;
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --neon-primary: #00ffff;
  --neon-secondary: #ffcc00;
  --neon-accent: #ff00ff;
  --header-top-bg: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  --main-nav-bg: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3), var(--brand-primary));
  --header-height-desktop: 110px;
  --header-height-mobile: 150px;
}

/* Base Neon Glow Effect */
.neon-glow {
  box-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor, 0 0 20px currentColor, inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Dynamic Color Animations (User Provided) */
@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 hue-spin {
  0% { filter: hue-rotate(0deg); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
  100% { filter: hue-rotate(360deg); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
}

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

@keyframes gradient-flow {
  0% { background-position: 0% 50%; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff8000; }
  50% { background-position: 100% 50%; box-shadow: 0 0 10px #00ffff, 0 0 20px #0000ff; }
  100% { background-position: 0% 50%; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff8000; }
}

@keyframes random-glow {
  0% { border-color: #ff00ff; box-shadow: 0 0 20px #ff00ff; }
  20% { border-color: #00ffff; box-shadow: 0 0 20px #00ffff; }
  40% { border-color: #ffff00; box-shadow: 0 0 20px #ffff00; }
  60% { border-color: #00ff00; box-shadow: 0 0 20px #00ff00; }
  80% { border-color: #ff0000; box-shadow: 0 0 20px #ff0000; }
  100% { border-color: #ff00ff; box-shadow: 0 0 20px #ff00ff; }
}

@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(0, 255, 255, 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, 204, 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 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 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;
  }
}

/* Global Resets and Body Padding */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.6;
  padding-top: var(--header-height-desktop); /* Default padding for fixed header */
  direction: ltr;
}

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

.header-top {
  background: var(--header-top-bg);
  padding: 10px 0;
  color: var(--neon-primary);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  position: relative;
  z-index: 1001; /* Ensure top bar is above main-nav in stacking context */
}

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

.logo {
  font-size: 2.2em;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  display: block; /* Ensure logo is visible */
}

.logo:hover {
  filter: brightness(1.2);
}

.main-nav {
  background: var(--main-nav-bg);
  padding: 8px 0;
  color: #fff;
  border-top: 1px solid;
  border-bottom: 2px solid;
  animation: theme-colors 5s ease-in-out infinite reverse; /* Different animation for contrast */
  display: flex; /* Desktop: visible */
  flex-direction: row; /* Desktop: horizontal */
  position: static; /* Desktop: normal flow */
  z-index: 1000; /* Below header-top */
}

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

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.1em;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
  color: var(--neon-secondary);
  transform: translateY(-2px);
}

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

/* Buttons */
.btn {
  position: relative;
  padding: 10px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  font-weight: bold;
  text-shadow: 0 0 5px #ffffff, 0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Default button animation */
  display: inline-block; /* Ensure it respects padding/margin */
  white-space: nowrap;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.2);
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1002; /* Above logo and buttons */
}

.hamburger-menu .bar1, .hamburger-menu .bar2, .hamburger-menu .bar3 {
  width: 100%;
  height: 3px;
  background-color: var(--neon-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
  box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
}

.hamburger-menu.active .bar1 {
  transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active .bar2 {
  opacity: 0;
}

.hamburger-menu.active .bar3 {
  transform: translateY(-11px) rotate(-45deg);
}

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

.mobile-menu-overlay {
  display: none;
}

/* Footer Styles */
.site-footer {
  background-color: #1a1a2e;
  color: #e0e0e0;
  padding: 40px 0 20px;
  font-size: 0.9em;
  border-top: 1px solid #333;
}

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

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

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

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

.footer-top {
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

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

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

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

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

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

.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(1.8);
  transition: filter 0.3s ease;
}

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

.footer-middle {
  padding: 30px 0;
  border-bottom: 1px solid #333;
}

.footer-middle .footer-container > div {
  margin-bottom: 20px;
}

.footer-middle .footer-container > div:last-child {
  margin-bottom: 0;
}

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

.copyright {
  color: #888;
  font-size: 0.85em;
  margin: 0;
}

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

  .header-top {
    padding: 10px 0;
    display: flex; /* Enable flex for mobile layout */
    align-items: center;
    justify-content: space-between;
  }

  .header-container {
    width: 100%;
    max-width: none; /* Crucial for mobile full width */
    padding: 0 15px;
    display: flex;
    justify-content: space-between; /* To push hamburger left and buttons right initially */
  }
  
  .hamburger-menu {
    display: flex;
    order: 1;
  }

  .logo {
    order: 2;
    flex-grow: 1;
    text-align: center;
    font-size: 1.8em;
    margin-left: -30px; /* Offset hamburger width for true center */
  }
  
  .desktop-nav-buttons {
    display: none;
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--header-top-bg);
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite reverse;
    position: relative;
    z-index: 999;
  }

  .btn {
    padding: 8px 18px;
    font-size: 0.9em;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-height-mobile); /* Position below fixed header and buttons */
    left: 0;
    width: 75%; /* Slide in from left */
    height: calc(100vh - var(--header-height-mobile)); /* Full height below header */
    background: var(--main-nav-bg);
    padding: 20px 0;
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    border-right: 2px solid;
    animation: theme-colors 5s ease-in-out infinite;
    overflow-y: auto;
    z-index: 1000;
  }

  .main-nav.active {
    display: flex; /* Crucial: make it visible when active */
    transform: translateX(0);
  }

  .main-nav .nav-container {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: none; /* Crucial for mobile full width */
    width: 100%;
  }

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

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-out;
  }

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

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

  .footer-middle .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-col {
    text-align: center;
  }
  
  .footer-col ul li {
    display: inline-block;
    margin: 0 8px 8px 8px;
  }
  .footer-col ul li a {
    font-size: 0.9em;
  }

  .footer-about .footer-logo {
    text-align: center;
  }

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

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

/* Responsive color intensity adjustments */
@media (max-width: 768px) {
  .rainbow-flow,
  .hue-rotate,
  .alternate-glow,
  .color-stream,
  .random-colors,
  .theme-flow {
    box-shadow: 0 0 5px currentColor, 0 0 10px currentColor !important;
  }
}
