:root {
  --primary-color: #0A2463; /* Website primary color (dark blue) */
  --secondary-color: #FFD700; /* Website secondary color (gold) */

  /* Dynamic Neon Colors based on website theme */
  --neon-primary: #00ffff; /* Cyan */
  --neon-secondary: #ff00ff; /* Magenta */
  --neon-accent: #ffff00; /* Yellow */

  /* Define color cycle for theme-flow animation */
  --neon-cycle-primary-1: #00ffff;
  --neon-cycle-primary-2: #ff00ff;
  --neon-cycle-primary-3: #ffff00;

  --header-bg-dark: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  --header-top-border-color: var(--neon-accent);
  --main-nav-border-color: var(--neon-secondary);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background-color: #0a0a0a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animations for Neon Effects */
@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 {
  0% {
    box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
  }
  50% {
    box-shadow: 0 0 15px currentColor, 0 0 30px currentColor, 0 0 45px currentColor;
  }
  100% {
    box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
  }
}

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

@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-cycle-primary-1);
    box-shadow: 0 0 10px var(--neon-cycle-primary-1), 0 0 20px var(--neon-cycle-primary-1), inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  33% {
    border-color: var(--neon-cycle-primary-2);
    box-shadow: 0 0 10px var(--neon-cycle-primary-2), 0 0 20px var(--neon-cycle-primary-2), inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
  66% {
    border-color: var(--neon-cycle-primary-3);
    box-shadow: 0 0 10px var(--neon-cycle-primary-3), 0 0 20px var(--neon-cycle-primary-3), inset 0 0 10px rgba(255, 255, 0, 0.3);
  }
}

@keyframes text-glow-flow {
  0% {
    text-shadow: 0 0 5px var(--neon-cycle-primary-1), 0 0 10px var(--neon-cycle-primary-1), 0 0 15px var(--neon-cycle-primary-1);
    color: #ffffff;
  }
  50% {
    text-shadow: 0 0 5px var(--neon-cycle-primary-2), 0 0 10px var(--neon-cycle-primary-2), 0 0 15px var(--neon-cycle-primary-2);
    color: #ffffff;
  }
  100% {
    text-shadow: 0 0 5px var(--neon-cycle-primary-3), 0 0 10px var(--neon-cycle-primary-3), 0 0 15px var(--neon-cycle-primary-3);
    color: #ffffff;
  }
}

/* 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-bg-dark);
  border-bottom: 2px solid var(--header-top-border-color);
  box-shadow: 0 0 10px var(--header-top-border-color), 0 0 20px var(--header-top-border-color), inset 0 0 15px rgba(255, 255, 0, 0.1);
  animation: theme-colors 6s linear infinite;
  padding: 10px 0;
}

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

.logo {
  font-family: 'Orbitron', sans-serif; /* Example retro-futuristic font */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 0 5px var(--neon-accent), 0 0 10px var(--neon-accent), 0 0 15px var(--neon-accent);
  animation: text-glow-flow 3s ease-in-out infinite alternate, pulse-glow 2s ease-in-out infinite alternate;
  text-transform: uppercase;
}

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

.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 var(--neon-primary);
  animation: theme-colors 4s ease-in-out infinite, pulse-glow 2s ease-in-out infinite alternate;
  text-shadow: 0 0 5px #ffffff, 0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  font-weight: bold;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

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

.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border-top: 2px solid var(--main-nav-border-color);
  border-bottom: 2px solid var(--main-nav-border-color);
  box-shadow: 0 0 10px var(--main-nav-border-color), 0 0 20px var(--main-nav-border-color), inset 0 0 15px rgba(255, 0, 255, 0.1);
  animation: theme-colors 5s linear infinite reverse;
  padding: 8px 0;
  display: flex; /* Desktop: visible */
  flex-direction: row; /* Desktop: horizontal */
  justify-content: center;
  align-items: center;
}

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

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

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

/* Mobile Specific Elements - Hidden by default on Desktop */
.hamburger-menu,
.mobile-nav-buttons,
.mobile-menu-overlay {
  display: none;
}

/* Footer Styles */
.site-footer {
  background-color: #1a1a2e;
  color: #b0b0b0;
  padding: 40px 0 20px;
  font-size: 14px;
  line-height: 1.8;
  border-top: 1px solid #333;
}

.footer-top-grid {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 25px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 30px;
}

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

.footer-about .footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

.footer-nav-list {
  list-style: none;
}

.footer-nav-list li a {
  color: #b0b0b0;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.footer-nav-list li a:hover {
  color: var(--secondary-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;
}

.footer-middle-sections {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 25px;
}

.game-providers-section,
.social-media-section {
  margin-bottom: 30px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 25px 0;
  text-align: center;
  border-top: 1px solid #333;
  color: #888;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body.no-scroll {
    overflow: hidden;
  }

  .site-header {
    flex-direction: column;
  }

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

  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    justify-content: space-between;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    border: 2px solid var(--neon-accent);
    border-radius: 3px;
    padding: 3px;
    animation: theme-colors 4s ease-in-out infinite;
  }

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

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

  .logo {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 24px;
  }

  .desktop-nav-buttons {
    display: none;
  }

  .mobile-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    background: var(--header-bg-dark);
    border-bottom: 2px solid var(--header-top-border-color);
    box-shadow: 0 0 8px var(--header-top-border-color), inset 0 0 8px rgba(255, 255, 0, 0.05);
    animation: theme-colors 6s linear infinite reverse;
  }

  .mobile-nav-buttons .btn {
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    padding: 10px 15px;
    font-size: 14px;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .main-nav {
    display: none; /* Mobile: hidden by default */
    position: fixed;
    top: calc(70px + 60px); /* Height of header-top + mobile-nav-buttons */
    left: 0;
    width: 70%;
    height: calc(100% - 130px); /* Adjust height based on header-top and mobile-buttons */
    flex-direction: column; /* Mobile: vertical */
    justify-content: flex-start;
    align-items: flex-start;
    background: linear-gradient(180deg, #1a1a2e, #0f3460);
    padding: 20px 15px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    z-index: 1000; /* Ensure it's above overlay */
    border-right: 2px solid var(--main-nav-border-color);
    box-shadow: 0 0 10px var(--main-nav-border-color);
  }

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

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

  .nav-link {
    font-size: 18px;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .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: 999;
    transition: opacity 0.3s ease-out;
    opacity: 0;
  }

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

  /* Adjust main content padding for fixed header */
  body {
    padding-top: 130px; /* header-top (70px) + mobile-nav-buttons (60px approx) */
  }

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

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

  .footer-col h4 {
    text-align: center;
  }

  .footer-nav-list,
  .payment-icons,
  .game-providers-icons,
  .social-media-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 20px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .site-footer {
    padding: 30px 0 15px;
  }

  .footer-about .footer-logo {
    font-size: 20px;
  }
}