/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000000; /* Dark background for the whole page */
  color: #e0e0e0;
  line-height: 1.6;
  padding-top: 160px; /* Default desktop padding, adjusted dynamically by JS or media query */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* CSS Variables for Neon Colors - Based on #FFD700 and #8B0000 */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --accent-color: #FF4500; /* Orange Red */

  --neon-primary: var(--primary-color);
  --neon-secondary: var(--secondary-color);
  --neon-accent: var(--accent-color);

  /* Dynamic color cycles for animations */
  --neon-cycle-1-start: #FFD700; /* Gold */
  --neon-cycle-1-mid: #FF4500; /* Orange Red */
  --neon-cycle-1-end: #8B0000; /* Dark Red */
}

/* Dynamic Neon Glow Animations - MUST BE INCLUDED */

/* Rainbow border animation */
@keyframes rainbow-border {
  0% { border-color: #FFD700; box-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700; }
  16.6% { border-color: #FF4500; box-shadow: 0 0 10px #FF4500, 0 0 20px #FF4500; }
  33.3% { border-color: #8B0000; box-shadow: 0 0 10px #8B0000, 0 0 20px #8B0000; }
  50% { border-color: #FFD700; box-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700; }
  66.6% { border-color: #FF4500; box-shadow: 0 0 10px #FF4500, 0 0 20px #FF4500; }
  83.3% { border-color: #8B0000; box-shadow: 0 0 10px #8B0000, 0 0 20px #8B0000; }
  100% { border-color: #FFD700; box-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700; }
}

/* Hue spin animation */
@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); }
}

/* Alternate colors animation */
@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); }
}

/* Gradient flow animation */
@keyframes gradient-flow {
  0% { background-position: 0% 50%; box-shadow: 0 0 10px var(--neon-cycle-1-start), 0 0 20px var(--neon-cycle-1-mid); }
  50% { background-position: 100% 50%; box-shadow: 0 0 10px var(--neon-cycle-1-end), 0 0 20px var(--neon-cycle-1-start); }
  100% { background-position: 0% 50%; box-shadow: 0 0 10px var(--neon-cycle-1-start), 0 0 20px var(--neon-cycle-1-mid); }
}

/* Random glow animation */
@keyframes random-glow {
  0% { border-color: #FFD700; box-shadow: 0 0 20px #FFD700; }
  20% { border-color: #FF4500; box-shadow: 0 0 20px #FF4500; }
  40% { border-color: #8B0000; box-shadow: 0 0 20px #8B0000; }
  60% { border-color: #FFD700; box-shadow: 0 0 20px #FFD700; }
  80% { border-color: #FF4500; box-shadow: 0 0 20px #FF4500; }
  100% { border-color: #8B0000; box-shadow: 0 0 20px #8B0000; }
}

/* Theme colors animation */
@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-primary);
    box-shadow: 
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary);
  }
  33% {
    border-color: var(--neon-secondary);
    box-shadow: 
      0 0 10px var(--neon-secondary),
      0 0 20px var(--neon-secondary);
  }
  66% {
    border-color: var(--neon-accent);
    box-shadow: 
      0 0 10px var(--neon-accent),
      0 0 20px var(--neon-accent);
  }
}

/* Text glow flow animation */
@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;
  }
}

/* Neon flicker animation */
@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;
  }
}

/* Pulse glow animation */
@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;
  }
}

/* LED blink animation */
@keyframes led-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

/* General container for content within max-width */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Marquee Section Styles */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  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, 215, 0, 0.1); /* Gold tint */
  z-index: 1001;
  height: 50px; /* Fixed height for marquee */
  display: flex;
  align-items: center;
}

.marquee-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  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: 40px;
  height: 40px;
  z-index: 2;
  position: relative;
}

.marquee-icon-emoji {
  font-size: 24px;
  display: inline-block;
  animation: marquee-pulse 2s ease-in-out infinite, text-glow-flow 3s 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);
  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;
  height: 100%; /* Ensure wrapper takes full height */
  display: flex;
  align-items: center;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  gap: 30px;
  height: 100%; /* Ensure content takes full height */
}

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

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

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

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

/* Header Styles */
.site-header {
  position: fixed;
  top: 50px; /* Below marquee */
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: #ffffff;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  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, 215, 0, 0.1); /* Gold tint */
}

.header-top {
  width: 100%;
  padding: 10px 0;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Slightly different gradient or just solid */
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 8px var(--neon-primary),
    0 0 15px var(--neon-primary);
}

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

.logo {
  font-family: 'Orbitron', sans-serif; /* Example sci-fi font */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  padding: 5px 0;
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  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 4s ease-in-out infinite;
  text-shadow: 
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrap on desktop */
}

.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, 215, 0, 0.4);
}

.main-nav {
  width: 100%;
  background: linear-gradient(135deg, #16213e, #0f3460, #0a0a0a); /* Different dark gradient */
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: rainbow-border 4s linear infinite; /* Different dynamic color effect */
  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(139, 0, 0, 0.1); /* Red tint */
  display: flex; /* Desktop default: flex row */
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on larger menus/smaller desktop */
  gap: 25px;
  padding: 0 20px;
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 15px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

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

/* Hamburger menu for mobile */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1002; /* Above logo */
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic color for hamburger */
  border: none; /* Remove default button border */
  background: transparent; /* Remove default button background */
  padding: 0; /* Remove default button padding */
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  text-shadow: 
    0 0 5px var(--neon-primary),
    0 0 10px var(--neon-primary);
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 9px; }
.hamburger-menu span:nth-child(3) { top: 18px; }

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

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

.mobile-menu-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999; /* Below main-nav.active */
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

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

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

.footer-col h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

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

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

.footer-about .footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: var(--neon-primary); /* Use primary neon color for footer logo */
  display: block;
  margin-bottom: 15px;
  text-shadow: 0 0 5px var(--neon-primary);
}

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

.payment-icons img, .game-providers-icons img, .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.game-providers-section, .social-media-section {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.game-providers-section h4, .social-media-section h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  color: #888888;
}

/* Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-top: 130px; /* Adjusted for mobile header height (marquee 35 + header-top 40 + mobile-nav-buttons 55) */
  }

  /* Marquee mobile adjustments */
  .marquee-section {
    height: 35px; /* Smaller height on mobile */
  }
  .marquee-container {
    padding: 0 10px;
    gap: 8px;
  }
  .marquee-icon {
    width: 25px;
    height: 25px;
  }
  .marquee-icon-emoji {
    font-size: 16px;
  }
  .marquee-text {
    font-size: 13px;
    line-height: 1.3;
  }
  .marquee-separator {
    font-size: 13px;
    margin: 0 8px;
  }
  .marquee-content {
    animation-duration: 20s; /* Faster scroll on mobile */
    gap: 20px;
  }

  /* Header mobile adjustments */
  .site-header {
    top: 35px; /* Below mobile marquee */
  }
  .header-top {
    padding: 8px 0;
  }
  .header-container {
    padding: 0 15px;
    justify-content: space-between;
  }
  .logo {
    font-size: 22px;
    flex: 1; /* Allow logo to take available space */
    text-align: center; /* Center the logo */
    order: 2; /* Place logo in middle visually */
    padding: 0;
  }
  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 1; /* Place hamburger first */
    margin-right: auto; /* Push logo to center */
  }
  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons on mobile */
  }

  /* Mobile buttons area - Always visible */
  .mobile-nav-buttons {
    display: flex !important; /* Ensure it's always visible */
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%; /* Ensure it fills screen width */
    box-sizing: border-box;
    padding: 10px 15px; /* Add padding to container */
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Match header top background */
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow: 
      0 0 5px var(--neon-primary),
      0 0 10px var(--neon-primary),
      inset 0 0 10px rgba(255, 215, 0, 0.1);
  }
  .mobile-nav-buttons .btn {
    flex: 1; /* Distribute space equally */
    min-width: 0; /* Allow shrinking */
    max-width: calc(50% - 5px); /* Max width for each button, considering gap */
    padding: 8px 12px; /* Smaller padding */
    font-size: 13px; /* Smaller font size */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    text-align: center;
  }

  /* Main navigation mobile adjustments */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 130px; /* Marquee height (35) + header-top (40) + mobile-nav-buttons (55) */
    left: 0;
    width: 70%; /* Side menu width */
    height: calc(100% - 130px); /* Remaining height */
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    background: linear-gradient(135deg, #16213e, #0f3460, #0a0a0a);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-out;
    z-index: 1000; /* Above overlay */
    border: none; /* Remove border for side menu */
    animation: none; /* Remove animation for side menu */
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide in */
  }
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 0 15px;
    width: 100%; /* Ensure container fills side menu */
    max-width: none; /* No max-width on mobile */
  }
  .nav-link {
    width: 100%;
    padding: 10px 15px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Separator */
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  /* Footer mobile adjustments */
  .footer-top {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
  .footer-col {
    text-align: center; /* Center align footer content */
  }
  .footer-col ul {
    padding-left: 0;
  }
  .footer-about .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
  .payment-icons, .game-providers-icons, .social-media-icons {
    justify-content: center; /* Center icons */
  }
}