:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --neon-primary: #FF00FF; /* Default for theme-flow */
  --neon-secondary: #00FFFF; /* Default for theme-flow */
  --neon-accent: #FFFF00; /* Default for theme-flow */
  --header-top-bg: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  --main-nav-bg: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  --footer-bg: #1a1a2e;
  --text-color: #e0e0e0;
  --link-color: #FFD700;
  --hover-color: #FFEB3B;
}

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: var(--link-color);
}

ul {
  list-style: none;
}

/* Dynamic Neon Glow Colors - Multiple Flowing Styles */
@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(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color), inset 0 0 10px rgba(255, 215, 0, 0.3);
  }
  33% {
    border-color: #FF1493; /* Deep Pink */
    box-shadow: 0 0 10px #FF1493, 0 0 20px #FF1493, inset 0 0 10px rgba(255, 20, 147, 0.3);
  }
  66% {
    border-color: #00BFFF; /* Deep Sky Blue */
    box-shadow: 0 0 10px #00BFFF, 0 0 20px #00BFFF, inset 0 0 10px rgba(0, 191, 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(--secondary-color), 0 0 10px var(--secondary-color), 0 0 15px var(--secondary-color);
    color: #ffffff;
  }
  33% {
    text-shadow: 0 0 5px #FF1493, 0 0 10px #FF1493, 0 0 15px #FF1493;
    color: #ffffff;
  }
  66% {
    text-shadow: 0 0 5px #00BFFF, 0 0 10px #00BFFF, 0 0 15px #00BFFF;
    color: #ffffff;
  }
  100% {
    text-shadow: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color), 0 0 15px var(--secondary-color);
    color: #ffffff;
  }
}

/* Header styles (Desktop First) */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  min-height: 80px; /* Minimum height for responsiveness */
  display: flex;
  flex-direction: column;
}

.header-top {
  background: var(--header-top-bg);
  border-bottom: 2px solid var(--secondary-color);
  box-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color), inset 0 0 10px rgba(255, 215, 0, 0.1);
  padding: 15px 0;
  display: flex;
  align-items: center;
  width: 100%;
  animation: theme-colors 4s ease-in-out infinite;
}

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

.logo {
  font-family: 'Electrolize', sans-serif; /* Example retro-futuristic font */
  font-size: 2.2em;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  padding: 5px 0;
  display: inline-block;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  text-shadow: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color), 0 0 15px var(--secondary-color);
}

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

.main-nav {
  background: var(--main-nav-bg);
  border-top: 1px solid #FF1493; /* Deep Pink for contrast */
  border-bottom: 2px solid #FF1493;
  box-shadow: 0 0 8px #FF1493, 0 0 15px #FF1493, inset 0 0 8px rgba(255, 20, 147, 0.1);
  padding: 10px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: theme-colors 4s ease-in-out infinite reverse;
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-color);
  font-weight: bold;
  padding: 8px 15px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--secondary-color), #FF6600); /* Yellow to Orange gradient */
  padding: 12px 25px;
  color: #ffffff;
  font-weight: bold;
  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(--secondary-color);
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  box-shadow: 0 0 15px currentColor, 0 0 30px currentColor, inset 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Hamburger menu (hidden on desktop) */
.hamburger-menu {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1001;
  margin-left: 20px; /* Aligns with container padding */
}

.hamburger-menu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--secondary-color);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
  box-shadow: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color);
}

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

.hamburger-menu.active span:nth-child(1) { top: 11px; transform: rotate(135deg); background: #FF1493; box-shadow: 0 0 5px #FF1493, 0 0 10px #FF1493; }
.hamburger-menu.active span:nth-child(2) { opacity: 0; left: -60px; }
.hamburger-menu.active span:nth-child(3) { top: 11px; transform: rotate(-135deg); background: #FF1493; box-shadow: 0 0 5px #FF1493, 0 0 10px #FF1493; }

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

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

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Footer styles */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--text-color);
  padding: 40px 0 20px 0;
  font-size: 0.9em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-col h4 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 5px;
}

.footer-logo {
  font-family: 'Electrolize', sans-serif;
  font-size: 1.8em;
  font-weight: bold;
  color: #ffffff;
  display: block;
  margin-bottom: 15px;
}

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

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

.footer-nav-list a {
  color: #b0b0b0;
  transition: color 0.3s ease;
}

.footer-nav-list a:hover {
  color: var(--hover-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(80%) brightness(120%) contrast(120%);
  transition: filter 0.3s ease;
}

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

.game-providers-section, .social-media-section, .footer-legal {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.game-providers-section h4, .social-media-section h4, .footer-legal h4 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 5px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .header-container, .nav-container, .footer-container {
    padding: 0 15px;
  }
  .logo {
    font-size: 1.8em;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 0.95em;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-col:nth-child(1) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 130px; /* Adjust based on header + mobile buttons height */
  }
  .site-header {
    flex-direction: column;
  }
  .header-top {
    padding: 10px 0;
    border-bottom: none;
    box-shadow: none;
    animation: none; /* Disable animation for mobile header-top */
  }
  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none;
    justify-content: space-between;
  }
  .logo {
    font-size: 1.6em;
    flex: 1;
    text-align: center;
    order: 2; /* Move logo to center */
    margin: 0;
  }
  .hamburger-menu {
    display: block;
    order: 1; /* Move hamburger to left */
    margin-left: 0;
  }
  .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 var(--secondary-color);
    box-shadow: 0 0 8px var(--secondary-color), 0 0 15px var(--secondary-color), inset 0 0 8px rgba(255, 215, 0, 0.1);
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    animation: theme-colors 4s ease-in-out infinite;
  }
  .mobile-nav-buttons .btn {
    max-width: calc(100% - 20px); /* Allow for padding and gap */
    flex: 1 1 auto;
    font-size: 0.85em;
    padding: 8px 12px;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    padding-top: 80px; /* Space for header-top */
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease-in-out;
    border: none;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: none; /* Disable animation for mobile nav */
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0);
  }
  .nav-container {
    flex-direction: column;
    gap: 10px;
    padding: 20px 15px;
    align-items: flex-start;
    width: 100%;
    max-width: none;
  }
  .nav-link {
    width: 100%;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-link:last-child {
    border-bottom: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-col:nth-child(1) {
    grid-column: span 1;
  }
  .footer-col, .game-providers-section, .social-media-section, .footer-legal {
    margin-top: 20px;
    padding-top: 15px;
  }
  .footer-col h4, .game-providers-section h4, .social-media-section h4, .footer-legal h4 {
    font-size: 1em;
  }
  .footer-logo {
    font-size: 1.5em;
  }
  .footer-description {
    font-size: 0.85em;
  }
  .footer-bottom {
    font-size: 0.8em;
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.4em;
  }
  .btn {
    padding: 8px 10px;
    font-size: 0.8em;
  }
  .mobile-nav-buttons .btn {
    max-width: 100%; /* Ensure single button takes full width if needed */
  }
  .footer-grid {
    gap: 20px;
  }
  .footer-col h4, .game-providers-section h4, .social-media-section h4, .footer-legal h4 {
    font-size: 0.95em;
  }
}
