:root {
  --primary-color: #336699;
  --secondary-color: #FFCC00;

  --neon-primary: #00ffff; /* Cyan - derived from blueish primary */
  --neon-secondary: #ff00ff; /* Magenta - vibrant complement */
  --neon-accent: #ffff00; /* Yellow - derived from yellow secondary */

  --bg-dark-1: #0a0a0a;
  --bg-dark-2: #1a1a2e;
  --bg-dark-3: #16213e;
  --bg-dark-4: #0f3460;

  --text-color-light: #ffffff;
  --text-color-faded: #cccccc;
  --text-color-dark: #333333;
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-dark-1);
  color: var(--text-color-light);
  line-height: 1.6;
}

/* Utility classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Keyframe Animations for dynamic colors and effects */
@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); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes alternate-colors {
  0%, 100% {
    border-color: var(--neon-primary);
    box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary);
  }
  50% {
    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%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@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, 0, 255, 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, 255, 0, 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: var(--text-color-light);
  }
  50% {
    text-shadow: 
      0 0 5px var(--neon-secondary),
      0 0 10px var(--neon-secondary),
      0 0 15px var(--neon-secondary);
    color: var(--text-color-light);
  }
  100% {
    text-shadow: 
      0 0 5px var(--neon-accent),
      0 0 10px var(--neon-accent),
      0 0 15px var(--neon-accent);
    color: var(--text-color-light);
  }
}

/* General classes for neon styles */
.neon-tube {
  border: 2px solid;
  animation: neon-flicker 2s infinite alternate, theme-colors 4s linear infinite;
}

.cyber-grid {
  background: 
    linear-gradient(90deg, transparent 95%, currentColor 100%),
    linear-gradient(180deg, transparent 95%, currentColor 100%);
  background-size: 20px 20px;
  border: 1px solid;
  animation: hue-spin 4s linear infinite;
}

.neon-pulse {
  animation: pulse-glow 2s ease-in-out infinite alternate, theme-colors 4s ease-in-out infinite;
}

.rainbow-flow {
  animation: rainbow-border 3s linear infinite;
}

.hue-rotate {
  animation: hue-spin 4s linear infinite;
}

.alternate-glow {
  animation: alternate-colors 2s ease-in-out infinite alternate;
}

.color-stream {
  position: relative;
  background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0000ff, #8000ff, #ff0080);
  background-size: 400% 400%;
  animation: gradient-flow 3s ease infinite;
}

.random-colors {
  animation: random-glow 5s linear infinite;
}

.theme-flow {
  animation: theme-colors 4s ease-in-out infinite;
}

.led-matrix {
  box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
  position: relative;
  animation: random-glow 5s linear infinite;
}
.led-matrix::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: 
    radial-gradient(circle at 0% 0%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 100% 0%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 0% 100%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 100% 100%, currentColor 2px, transparent 3px);
  background-size: 20px 20px;
  animation: led-blink 1s steps(2) infinite;
}
.neon-text-dynamic {
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}

/* 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: linear-gradient(135deg, var(--bg-dark-1), var(--bg-dark-2), var(--bg-dark-3));
  padding: 15px 0;
  border-bottom: 2px solid;
  color: var(--neon-primary);
}

.header-top .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-family: 'Electrolize', sans-serif; /* Example futuristic font */
  font-size: 2.2rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-color-light);
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 5px;
  display: block; /* Ensure logo is always visible */
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1002;
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--neon-primary);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
}

.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: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

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

.main-nav {
  background: linear-gradient(135deg, var(--bg-dark-2), var(--bg-dark-4));
  border-top: 2px solid;
  border-bottom: 2px solid;
  color: var(--neon-secondary);
  padding: 10px 0;
  display: flex; /* Desktop default: flex for horizontal menu */
}

.main-nav .nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  padding: 0 20px;
}

.nav-link {
  color: var(--text-color-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 12px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

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

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

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

/* Footer Styles */
.site-footer {
  background-color: var(--bg-dark-2);
  color: var(--text-color-faded);
  padding-top: 50px;
  font-size: 0.9rem;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-family: 'Electrolize', sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--neon-primary);
  text-decoration: none;
  margin-bottom: 15px;
}

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

.footer-col h4 {
  color: var(--text-color-light);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
}

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

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

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

.footer-nav a {
  color: var(--text-color-faded);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.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;
  width: 100%;
}

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

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

.game-providers-section h4,
.social-media-section h4 {
  color: var(--text-color-light);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
}

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

.footer-bottom {
  padding: 25px 0;
  text-align: center;
  background-color: var(--bg-dark-3);
}

.copyright {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-color-faded);
}

/* Responsive adjustments for header height to prevent content overlap */
body {
  padding-top: 135px; /* Adjust based on header-top + main-nav height */
}

/* Mobile Styles */
@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: none;
    padding: 0 15px; /* Smaller padding for mobile */
  }

  /* Header Mobile Layout */
  .site-header {
    flex-direction: column;
  }

  .header-top .header-container {
    padding: 0 15px;
    justify-content: space-between;
    position: relative;
  }

  .hamburger-menu {
    display: block;
    order: -1; /* Move to the left */
    align-self: center;
    z-index: 1002;
  }

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

  .logo {
    flex-grow: 1;
    text-align: center;
    order: 0;
    font-size: 1.8rem;
    padding: 5px 0;
  }

  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons */
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--bg-dark-1), var(--bg-dark-2));
    border-bottom: 2px solid;
    color: var(--neon-primary);
    box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
    z-index: 999; /* Below hamburger menu, above content */
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  /* Mobile Menu */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 0; /* Adjusted to cover full height */
    left: 0;
    width: 75%; /* Slide in from left */
    height: 100vh;
    background: var(--bg-dark-3);
    padding-top: 80px; /* Space for logo/hamburger if needed */
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
    border-right: 2px solid var(--neon-secondary);
  }

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

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

  .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
  }
  .mobile-menu-overlay.active {
    display: block;
  }

  /* Adjust body padding for mobile fixed header + buttons */
  body {
    padding-top: 150px; /* Header top (approx 65px) + mobile buttons (approx 65px) + some buffer */
  }

  /* Footer Mobile Layout */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-col h4 {
    margin-top: 20px;
  }
  .footer-col h4::after {
    left: 0;
  }

  .game-providers-section,
  .social-media-section {
    padding: 20px 0;
  }

  .payment-methods .payment-icons,
  .game-providers-section .game-providers-icons,
  .social-media-section .social-media-icons {
    justify-content: center;
    gap: 5px;
  }
}

/* Prevent body scroll when menu is open */
body.no-scroll {
  overflow: hidden;
}
