:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Navy Blue */
  --accent-color: #FF4500; /* OrangeRed, for contrast */

  --neon-primary: var(--primary-color);
  --neon-secondary: var(--secondary-color);
  --neon-accent: var(--accent-color);
  
  /* Define a set of colors for dynamic flow */
  --flow-color-1: #FFD700; /* Gold */
  --flow-color-2: #FF69B4; /* Hot Pink */
  --flow-color-3: #00FFFF; /* Aqua */
  --flow-color-4: #00FF00; /* Lime Green */
  --flow-color-5: #FF00FF; /* Magenta */
  --flow-color-6: #FF4500; /* OrangeRed */

  --header-bg-dark: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  --nav-bg-dark: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

/* Animations for dynamic colors */
@keyframes theme-colors {
  0%, 100% {
    border-color: var(--flow-color-1);
    box-shadow: 
      0 0 10px var(--flow-color-1),
      0 0 20px var(--flow-color-1),
      inset 0 0 10px rgba(255, 215, 0, 0.3);
  }
  20% {
    border-color: var(--flow-color-2);
    box-shadow: 
      0 0 10px var(--flow-color-2),
      0 0 20px var(--flow-color-2),
      inset 0 0 10px rgba(255, 105, 180, 0.3);
  }
  40% {
    border-color: var(--flow-color-3);
    box-shadow: 
      0 0 10px var(--flow-color-3),
      0 0 20px var(--flow-color-3),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  60% {
    border-color: var(--flow-color-4);
    box-shadow: 
      0 0 10px var(--flow-color-4),
      0 0 20px var(--flow-color-4),
      inset 0 0 10px rgba(0, 255, 0, 0.3);
  }
  80% {
    border-color: var(--flow-color-5);
    box-shadow: 
      0 0 10px var(--flow-color-5),
      0 0 20px var(--flow-color-5),
      inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
}

@keyframes text-glow-flow {
  0%, 100% {
    text-shadow: 
      0 0 5px var(--flow-color-1),
      0 0 10px var(--flow-color-1),
      0 0 15px var(--flow-color-1);
    color: #ffffff;
  }
  20% {
    text-shadow: 
      0 0 5px var(--flow-color-2),
      0 0 10px var(--flow-color-2),
      0 0 15px var(--flow-color-2);
    color: #ffffff;
  }
  40% {
    text-shadow: 
      0 0 5px var(--flow-color-3),
      0 0 10px var(--flow-color-3),
      0 0 15px var(--flow-color-3);
    color: #ffffff;
  }
  60% {
    text-shadow: 
      0 0 5px var(--flow-color-4),
      0 0 10px var(--flow-color-4),
      0 0 15px var(--flow-color-4);
    color: #ffffff;
  }
  80% {
    text-shadow: 
      0 0 5px var(--flow-color-5),
      0 0 10px var(--flow-color-5),
      0 0 15px var(--flow-color-5);
    color: #ffffff;
  }
}

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

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

/* Hamburger menu animations */
@keyframes rotate-top-bun {
  0% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(8px) rotate(0); }
  100% { transform: translateY(8px) rotate(45deg); }
}

@keyframes rotate-bottom-bun {
  0% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(0); }
  100% { transform: translateY(-8px) rotate(-45deg); }
}

@keyframes hide-patty {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes show-patty {
  0% { opacity: 0; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #121212;
  color: #e0e0e0;
}

/* Marquee Section */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--header-bg-dark);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 10px var(--flow-color-1),
    0 0 20px var(--flow-color-1),
    0 0 30px var(--flow-color-1),
    inset 0 0 20px rgba(255, 215, 0, 0.1);
  z-index: 1001;
  min-height: 45px; /* Ensure minimum height */
  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: 10px 20px;
}

.marquee-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  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 3s ease-in-out infinite alternate;
  text-shadow:
    0 0 5px var(--flow-color-1),
    0 0 10px var(--flow-color-1),
    0 0 15px var(--flow-color-1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.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;
  padding-right: 30px; /* Space for seamless loop */
}

.marquee-text {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  text-shadow:
    0 0 5px var(--flow-color-1),
    0 0 10px var(--flow-color-1),
    0 0 15px var(--flow-color-1);
  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(--flow-color-1),
    0 0 20px var(--flow-color-1),
    0 0 30px var(--flow-color-1),
    0 0 40px var(--flow-color-1);
  transform: scale(1.05);
  color: #ffffff;
}

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

/* Header Section */
.site-header {
  position: fixed;
  top: 45px; /* Below marquee */
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg-dark);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 10px var(--flow-color-1),
    0 0 20px var(--flow-color-1),
    0 0 30px var(--flow-color-1),
    inset 0 0 20px rgba(255, 215, 0, 0.1);
}

.header-top {
  width: 100%;
  padding: 10px 0;
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--flow-color-1);
  text-decoration: none;
  white-space: nowrap;
  animation: text-glow-flow 3s ease-in-out infinite alternate, marquee-pulse 2s ease-in-out infinite;
  text-shadow:
    0 0 5px var(--flow-color-1),
    0 0 10px var(--flow-color-1),
    0 0 15px var(--flow-color-1);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.logo:hover {
  text-shadow:
    0 0 10px var(--flow-color-1),
    0 0 20px var(--flow-color-1),
    0 0 30px var(--flow-color-1);
}

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

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

.main-nav {
  width: 100%;
  background: var(--nav-bg-dark);
  border-top: 1px solid;
  border-bottom: 1px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 8px var(--flow-color-2),
    0 0 15px var(--flow-color-2),
    inset 0 0 10px rgba(0, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

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

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

.nav-link:hover {
  color: var(--flow-color-1);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--flow-color-1), var(--flow-color-6));
  padding: 10px 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(--flow-color-1);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  box-shadow:
    0 0 15px var(--flow-color-1),
    0 0 30px var(--flow-color-1),
    0 0 45px var(--flow-color-1);
}

/* Hamburger Menu */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002; /* Above logo */
  position: relative;
  margin-right: 15px;
}

.hamburger-menu span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--flow-color-1);
  margin: 6px 0;
  transition: all 0.3s ease-in-out;
  box-shadow:
    0 0 5px var(--flow-color-1),
    0 0 10px var(--flow-color-1);
}

.hamburger-menu.active .hamburger-top {
  animation: rotate-top-bun 0.3s forwards;
}

.hamburger-menu.active .hamburger-middle {
  animation: hide-patty 0.3s forwards;
}

.hamburger-menu.active .hamburger-bottom {
  animation: rotate-bottom-bun 0.3s forwards;
}

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

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

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

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

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

.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 {
  margin-bottom: 20px;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: block;
}

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

.footer-heading {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

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

.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: 40px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.footer-full-width-section {
  margin-bottom: 30px;
  padding: 20px 0;
  border-top: 1px solid #333;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-col.footer-about {
    grid-column: span 1;
  }
  .footer-col.payment-methods {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .marquee-section {
    padding: 0;
    min-height: 35px;
  }
  .marquee-container {
    padding: 5px 10px;
    gap: 10px;
  }
  .marquee-icon {
    width: 24px;
    height: 24px;
  }
  .marquee-icon-emoji {
    font-size: 16px;
  }
  .marquee-text {
    font-size: 13px;
    margin: 0 5px;
  }
  .marquee-separator {
    font-size: 13px;
    margin: 0 5px;
  }
  .marquee-content {
    animation-duration: 20s;
  }

  .site-header {
    top: 35px; /* Adjust for smaller marquee */
    padding-bottom: 0;
  }
  .header-container {
    padding: 0 15px;
    justify-content: space-between;
  }
  .header-top {
    padding: 10px 0;
    display: flex;
    flex-wrap: nowrap;
  }
  .hamburger-menu {
    display: block;
    order: 1;
    margin-right: 0;
    margin-left: -10px; /* Adjust for padding */
  }
  .logo {
    order: 2;
    flex-grow: 1;
    text-align: center;
    font-size: 24px;
    margin-left: -40px; /* Center logo by offsetting hamburger */
  }
  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons */
  }
  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    gap: 10px;
    justify-content: center;
    background: var(--header-bg-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow:
      0 0 5px var(--flow-color-1),
      0 0 10px var(--flow-color-1);
  }
  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px);
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
  }

  .main-nav {
    display: none; /* Hidden by default, shown with JS */
    flex-direction: column;
    position: fixed;
    top: calc(35px + 60px + 20px); /* Marquee height + header-top height + mobile-buttons height + some margin */
    left: 0;
    width: 80%;
    height: calc(100% - (35px + 60px + 20px)); /* Remaining height */
    background: var(--nav-bg-dark);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow:
      0 0 8px var(--flow-color-2),
      0 0 15px var(--flow-color-2),
      inset 0 0 10px rgba(0, 255, 255, 0.1);
  }
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }
  .nav-container {
    flex-direction: column;
    padding: 20px 15px;
    align-items: flex-start;
    max-width: none;
  }
  .nav-link {
    width: 100%;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-col {
    text-align: center;
  }
  .footer-logo {
    text-align: center;
    margin-bottom: 10px;
  }
  .footer-description {
    text-align: center;
  }
  .footer-heading {
    text-align: center;
  }
  .footer-nav {
    text-align: center;
  }
  .payment-icons, .game-providers-icons, .social-media-icons {
    justify-content: center;
  }
}

/* Padding for fixed header */
body {
  padding-top: calc(45px + 60px + 45px); /* Marquee height + Header-top height + Mobile buttons height (approx) */
}
@media (max-width: 768px) {
  body {
    padding-top: calc(35px + 60px + 45px); /* Adjusted for mobile marquee and header heights */
  }
}
