:root {
  --primary-color: #007BFF;
  --secondary-color: #FFC107;
  --neon-accent: #f093fb;
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;

  --marquee-height-desktop: 40px;
  --header-top-height-desktop: 60px;
  --main-nav-height-desktop: 50px;
  --header-total-height-desktop: calc(var(--marquee-height-desktop) + var(--header-top-height-desktop) + var(--main-nav-height-desktop));

  --marquee-height-mobile: 35px;
  --header-top-height-mobile: 50px;
  --mobile-buttons-height: 50px;
  --main-nav-height-mobile: 0px;
  --header-total-height-mobile: calc(var(--marquee-height-mobile) + var(--header-top-height-mobile) + var(--mobile-buttons-height));
}

/* General Body Styling to prevent content overlap */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  padding-top: var(--header-total-height-desktop);
  transition: padding-top 0.3s ease;
}

body.no-scroll {
  overflow: hidden;
}

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

@keyframes text-glow-flow {
  0% {
    text-shadow:
      0 0 5px var(--primary-color),
      0 0 10px var(--primary-color),
      0 0 15px var(--primary-color);
    color: #ffffff;
  }
  33% {
    text-shadow:
      0 0 5px var(--secondary-color),
      0 0 10px var(--secondary-color),
      0 0 15px var(--secondary-color);
    color: #ffffff;
  }
  66% {
    text-shadow:
      0 0 5px var(--neon-accent),
      0 0 10px var(--neon-accent),
      0 0 15px var(--neon-accent);
    color: #ffffff;
  }
  100% {
    text-shadow:
      0 0 5px var(--primary-color),
      0 0 10px var(--primary-color),
      0 0 15px var(--primary-color);
    color: #ffffff;
  }
}

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

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

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

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

/* Header Section Styles */
.site-header {
  position: fixed;
  top: var(--marquee-height-desktop);
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  transition: top 0.3s ease;
}

.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 10px var(--primary-color),
    0 0 20px var(--primary-color),
    0 0 30px var(--primary-color),
    inset 0 0 20px rgba(var(--primary-color-rgb, 0, 123, 255), 0.1);
  height: var(--header-top-height-desktop);
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  display: block;
  line-height: 1;
}

.hamburger-menu {
  display: none; /* Hidden by default 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: #ffffff;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}

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

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

.btn {
  position: relative;
  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(--primary-color);
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn.neon-tube {
  animation: theme-colors 4s ease-in-out infinite, neon-flicker 2s infinite alternate;
}

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

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px) scale(1.02);
  text-shadow:
    0 0 10px #ffffff,
    0 0 20px var(--primary-color),
    0 0 30px var(--primary-color);
}

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3), #0f3460);
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 10px var(--secondary-color),
    0 0 20px var(--secondary-color),
    0 0 30px var(--secondary-color),
    inset 0 0 20px rgba(var(--secondary-color-rgb, 255, 193, 7), 0.1);
  width: 100%;
  display: flex;
  height: var(--main-nav-height-desktop);
  align-items: center;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

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

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

/* Footer Styles */
.site-footer {
  background-color: #1c1c2c;
  color: #cccccc;
  padding: 40px 0 20px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-main-content {
  max-width: 1200px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 0 30px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

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

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

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

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

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

.footer-col ul li a:hover {
  color: var(--secondary-color);
}

.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%;
  margin-top: 15px;
}

.payment-methods .payment-icons img,
.game-providers-section .game-providers-icons img,
.social-media-section .social-media-icons img {
  max-height: 40px;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(150%); /* Make icons fit dark theme */
  transition: filter 0.3s ease;
}

.payment-methods .payment-icons img:hover,
.game-providers-section .game-providers-icons img:hover,
.social-media-section .social-media-icons img:hover {
  filter: grayscale(0%) brightness(100%); /* Colorize on hover */
}

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

.game-providers-section h4,
.social-media-section h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px 0;
}

.copyright {
  margin: 0;
  color: #999999;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-top: var(--header-total-height-mobile);
  }

  .marquee-section {
    height: var(--marquee-height-mobile);
  }
  
  .marquee-container {
    gap: 10px;
    padding: 0 10px;
  }
  
  .marquee-icon {
    width: 25px;
    height: 25px;
  }
  
  .marquee-icon-emoji {
    font-size: 16px;
  }
  
  .marquee-text {
    font-size: 13px;
  }
  
  .marquee-separator {
    font-size: 13px;
    margin: 0 8px;
  }
  
  .marquee-content {
    gap: 20px;
    animation-duration: 25s;
  }

  .site-header {
    top: var(--marquee-height-mobile);
  }

  .header-top {
    height: var(--header-top-height-mobile);
  }

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

  .hamburger-menu {
    display: block;
    order: 0;
    margin-right: auto; /* Push logo to center */
  }

  .logo {
    order: 1;
    flex-grow: 1;
    text-align: center;
    font-size: 24px;
    margin-right: 0; /* Remove auto margin from hamburger pushing it */
  }
  
  .desktop-nav-buttons {
    display: none;
  }

  .mobile-nav-buttons {
    display: flex !important;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-1));
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow:
      0 0 5px var(--neon-accent),
      0 0 10px var(--neon-accent),
      inset 0 0 10px rgba(var(--neon-accent-rgb, 240, 147, 251), 0.1);
    height: var(--mobile-buttons-height);
    align-items: center;
    flex-wrap: nowrap;
  }

  .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;
    overflow-wrap: break-word;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--header-total-height-mobile);
    left: 0;
    width: 70%;
    max-width: 300px;
    height: calc(100vh - var(--header-total-height-mobile));
    background: linear-gradient(180deg, var(--dark-bg-1), var(--dark-bg-3));
    box-shadow: 5px 0 15px 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;
  }

  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }

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

  .nav-link {
    width: 100%;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

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

  .footer-main-content {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .footer-col {
    margin-bottom: 20px;
  }

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

  .footer-bottom {
    padding: 20px 15px 0;
  }
}