:root {
  --primary-color: #0A2463; /* Dark Blue */
  --secondary-color: #E3B505; /* Golden Yellow */
  
  /* Derived Neon Colors for dynamic use */
  --neon-primary: #FFEA00; /* Bright Neon Yellow from secondary */
  --neon-secondary: #00FFFF; /* Bright Cyan from primary */
  --neon-accent: #FF00FF; /* Magenta */

  /* Marquee specific color */
  --marquee-neon-color: var(--neon-primary); 
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
  padding-top: 110px; /* Marquee (40px) + Header Top (approx 50px) + Main Nav (approx 20px) */
  box-sizing: border-box;
}

body.no-scroll {
  overflow: hidden;
}

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

/* --- Marquee Section (Mandatory, Topmost) --- */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Dark background */
  color: #ffffff;
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors-marquee 4s ease-in-out infinite; /* Dynamic color border */
  box-shadow: 
    0 0 10px var(--marquee-neon-color),
    0 0 20px var(--marquee-neon-color),
    0 0 30px var(--marquee-neon-color),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  z-index: 1001; /* Ensure on top of header */
  height: 40px; /* Fixed height for calculations */
  display: flex;
  align-items: center;
}

.marquee-container {
  width: 100%;
  max-width: 100%; /* No max-width for marquee container */
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 20px;
}

.marquee-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  z-index: 2;
  position: relative;
}

.marquee-icon-emoji {
  font-size: 20px;
  display: inline-block;
  animation: marquee-pulse 2s ease-in-out infinite, text-glow-flow-marquee 3s ease-in-out infinite alternate;
  text-shadow: 
    0 0 5px var(--marquee-neon-color),
    0 0 10px var(--marquee-neon-color),
    0 0 15px var(--marquee-neon-color);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes marquee-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

.marquee-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  gap: 30px;
}

.marquee-text {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 
    0 0 5px var(--marquee-neon-color),
    0 0 10px var(--marquee-neon-color),
    0 0 15px var(--marquee-neon-color);
  line-height: 1.5;
  display: inline-block;
  vertical-align: middle;
  animation: text-glow-flow-marquee 3s ease-in-out infinite alternate;
  cursor: pointer;
  transition: all 0.3s ease;
}

.marquee-text:hover {
  text-shadow: 
    0 0 10px var(--marquee-neon-color),
    0 0 20px var(--marquee-neon-color),
    0 0 30px var(--marquee-neon-color),
    0 0 40px var(--marquee-neon-color);
  transform: scale(1.05);
  color: #ffffff;
}

.marquee-separator {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 15px;
  text-shadow: 
    0 0 3px var(--marquee-neon-color),
    0 0 6px var(--marquee-neon-color);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes theme-colors-marquee {
  0%, 100% { --marquee-neon-color: var(--neon-primary); }
  33% { --marquee-neon-color: var(--neon-secondary); }
  66% { --marquee-neon-color: var(--neon-accent); }
}

@keyframes text-glow-flow-marquee {
  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 Section (Fixed below Marquee) --- */
.site-header {
  position: fixed;
  top: 40px; /* Marquee height is 40px */
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

/* Header Top Bar - Logo and Buttons (Desktop) / Hamburger and Logo (Mobile) */
.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic color border */
  box-shadow: 
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Orbitron', sans-serif; /* Example futuristic font */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
  animation: text-glow-flow 3s ease-in-out infinite alternate, neon-flicker 2s infinite alternate; /* Dynamic text glow + flicker */
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

.logo:hover {
  filter: drop-shadow(0 0 10px var(--neon-primary)) drop-shadow(0 0 20px var(--neon-primary));
}

.desktop-nav-buttons {
  display: flex; /* Always visible on desktop */
  gap: 10px;
  align-items: center;
}

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors-btn 4s ease-in-out infinite; /* Dynamic color border for buttons */
  text-shadow: 
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  font-weight: bold;
  text-align: center;
  white-space: nowrap; /* Prevent button text from wrapping on desktop */
}

.btn:hover {
  animation-duration: 2s; /* faster color change on hover */
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 0 15px var(--neon-primary),
    0 0 30px var(--neon-primary),
    0 0 45px var(--neon-primary),
    inset 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Main Navigation (Desktop) */
.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); /* Slightly different dark background */
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors-nav 4s ease-in-out infinite; /* Dynamic color border for nav */
  box-shadow: 
    0 0 10px var(--neon-secondary),
    0 0 20px var(--neon-secondary),
    0 0 30px var(--neon-secondary),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  padding: 10px 0;
  display: flex; /* Desktop default */
  flex-direction: row; /* Desktop default */
  justify-content: center; /* Center nav links */
  align-items: center;
  position: static; /* Not fixed on desktop */
}

.nav-container {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping if many items */
  justify-content: center;
  gap: 25px;
}

.nav-link {
  color: #ffffff; /* Regular white text */
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--neon-primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-link:hover {
  color: var(--neon-primary);
  text-shadow: 0 0 5px var(--neon-primary);
}

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

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

/* Mobile Nav Buttons (Hidden on Desktop) */
.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
}

/* Mobile Menu Overlay (Hidden on Desktop) */
.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
}

/* --- Footer Section --- */
.site-footer {
  background-color: #1a1a1a;
  color: #bbb;
  padding: 40px 0 20px;
  font-size: 14px;
}

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

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

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: var(--secondary-color);
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  font-size: 13px;
  line-height: 1.8;
  word-wrap: break-word; /* Ensure full display and auto-wrap */
  overflow-wrap: break-word;
}

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

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

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

.footer-nav 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; /* Consistent gap for all icon sections */
  width: 100%;
}

.payment-methods .payment-icons img,
.game-providers-section .game-providers-icons img,
.social-media-section .social-media-icons img {
  max-height: 40px; /* Adjusted for better visual balance */
  height: auto;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(150%); /* Subtle effect for icons */
  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%);
}

.game-providers-section,
.social-media-section {
  margin-bottom: 30px;
  padding: 20px 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.game-providers-section h4,
.social-media-section h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
  text-align: center;
  position: relative;
}

.game-providers-section h4::after,
.social-media-section h4::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -5px;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.copyright {
  color: #888;
  font-size: 13px;
}

/* --- Neon Dynamic Color Animations (Header & Marquee) --- */
@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-primary);
    box-shadow: 
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary),
      0 0 30px var(--neon-primary),
      inset 0 0 10px rgba(255, 234, 0, 0.3);
  }
  33% {
    border-color: var(--neon-secondary);
    box-shadow: 
      0 0 10px var(--neon-secondary),
      0 0 20px var(--neon-secondary),
      0 0 30px var(--neon-secondary),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  66% {
    border-color: var(--neon-accent);
    box-shadow: 
      0 0 10px var(--neon-accent),
      0 0 20px var(--neon-accent),
      0 0 30px var(--neon-accent),
      inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
}

@keyframes theme-colors-btn { /* Slightly different for buttons */
  0%, 100% {
    border-color: var(--neon-primary);
    box-shadow: 
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary),
      0 0 30px var(--neon-primary),
      inset 0 0 10px rgba(255, 234, 0, 0.3);
  }
  33% {
    border-color: var(--neon-secondary);
    box-shadow: 
      0 0 10px var(--neon-secondary),
      0 0 20px var(--neon-secondary),
      0 0 30px var(--neon-secondary),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  66% {
    border-color: var(--neon-accent);
    box-shadow: 
      0 0 10px var(--neon-accent),
      0 0 20px var(--neon-accent),
      0 0 30px var(--neon-accent),
      inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
}

@keyframes theme-colors-nav { /* Slightly different for nav border */
  0%, 100% {
    border-color: var(--neon-secondary);
    box-shadow: 
      0 0 10px var(--neon-secondary),
      0 0 20px var(--neon-secondary),
      0 0 30px var(--neon-secondary),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  33% {
    border-color: var(--neon-accent);
    box-shadow: 
      0 0 10px var(--neon-accent),
      0 0 20px var(--neon-accent),
      0 0 30px var(--neon-accent),
      inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
  66% {
    border-color: var(--neon-primary);
    box-shadow: 
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary),
      0 0 30px var(--neon-primary),
      inset 0 0 10px rgba(255, 234, 0, 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; }
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor; }
  20%, 24%, 55% { opacity: 0.8; text-shadow: 0 0 2px currentColor, 0 0 5px currentColor, 0 0 8px currentColor; }
}


/* --- Responsive Design (Desktop Global, Mobile in Media Query) --- */
@media (max-width: 768px) {
  body {
    padding-top: 102px; /* Marquee (30px) + Header Top (36px) + Mobile Buttons (36px) */
  }

  /* Marquee Mobile */
  .marquee-section {
    height: 30px; /* Smaller marquee on mobile */
  }
  .marquee-container {
    padding: 0 10px;
    gap: 10px;
  }
  .marquee-icon {
    width: 18px;
    height: 18px;
  }
  .marquee-icon-emoji {
    font-size: 16px;
  }
  .marquee-text, .marquee-separator {
    font-size: 12px;
  }
  .marquee-content {
    gap: 20px;
    animation-duration: 20s; /* Faster scroll on mobile */
  }

  /* Header Mobile */
  .site-header {
    top: 30px; /* Adjust header top based on new marquee height */
  }
  .header-top {
    padding: 8px 0;
  }
  .header-container {
    padding: 0 15px; /* Smaller padding */
    justify-content: space-between;
  }
  .logo {
    font-size: 20px; /* Smaller logo */
    flex: 1; /* Allow logo to take available space */
    text-align: center; /* Center logo */
    order: 2; /* Place logo in the middle */
  }
  .hamburger-menu {
    display: flex; /* Show hamburger on mobile */
    order: 1; /* Place hamburger first */
    width: 25px;
    height: 20px;
    z-index: 1002; /* Above logo on mobile */
  }
  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons on mobile */
  }
  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    width: 100%;
    max-width: 100%; /* Ensure full width */
    box-sizing: border-box;
    padding: 8px 15px; /* Padding for buttons */
    gap: 10px;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Match header top background */
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 999; /* Below main nav, above content */
  }
  .mobile-nav-buttons .btn {
    flex: 1; /* Distribute space evenly */
    min-width: 0; /* Allow shrinking */
    max-width: calc(50% - 5px); /* Account for gap */
    padding: 8px 12px; /* Smaller padding */
    font-size: 13px; /* Smaller font */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word;
    height: auto; /* Allow height to adjust */
  }

  /* Mobile Navigation Menu */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 102px; /* Marquee (30px) + Header Top (36px) + Mobile Buttons (36px) */
    left: 0;
    width: 80%; /* Sidebar width */
    height: calc(100% - 102px); /* Full height minus fixed header elements */
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px 0;
    background: linear-gradient(180deg, #1a1a2e, #0f3460); /* Darker background for menu */
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-in-out;
    border-right: 2px solid;
    animation: theme-colors-nav 4s ease-in-out infinite; /* Dynamic border */
    box-shadow: 
      0 0 10px var(--neon-secondary),
      0 0 20px var(--neon-secondary);
    z-index: 1000; /* Above mobile buttons and overlay */
    overflow-y: auto; /* Enable scrolling for long menus */
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide in */
  }
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0 20px;
  }
  .nav-link {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-link:last-child {
    border-bottom: none;
  }
  .nav-link::after {
    display: none; /* Hide underline animation on mobile */
  }
  .nav-link:hover {
    color: var(--neon-primary);
    text-shadow: none;
  }

  /* Hamburger Menu Active State */
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Mobile Menu Overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998; /* Below menu, above content */
    display: none;
  }
  .mobile-menu-overlay.active {
    display: block;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-logo {
    margin: 0 auto 15px;
  }
  .footer-nav {
    text-align: center;
  }
  .game-providers-section h4,
  .social-media-section h4 {
    text-align: center;
  }
  .payment-methods .payment-icons,
  .game-providers-section .game-providers-icons,
  .social-media-section .social-media-icons {
    justify-content: center;
  }
}