/* General Body & Root Styles */
:root {
  --primary-color: #007bff; /* Base primary color */
  --secondary-color: #ffc107; /* Base secondary color */
  --neon-accent: #f093fb; /* A vibrant accent */

  /* Header background gradients */
  --header-top-bg: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  --header-nav-bg: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);

  /* Neon glow colors for dynamic effects */
  --neon-glow-color1: #00ffff; /* Cyan */
  --neon-glow-color2: #ff00ff; /* Magenta */
  --neon-glow-color3: #ffff00; /* Yellow */
  --neon-glow-color4: #ff6600; /* Orange */
  --neon-glow-color5: #00ff00; /* Green */
  --neon-glow-color6: #ff1493; /* Deep Pink */

  /* Specific glow colors for header sections */
  --header-top-glow-color: var(--neon-glow-color3); /* Yellow for top */
  --header-nav-glow-color: var(--neon-glow-color4); /* Orange for nav */
  --btn-glow-color: var(--neon-glow-color1); /* Cyan for buttons */
  --logo-glow-color: var(--neon-glow-color2); /* Magenta for logo */
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #121212; /* Dark background for the whole page */
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
  padding-top: 130px; /* Default padding for fixed header and mobile buttons */
}

body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Base Container Styling */
.header-container,
.nav-container,
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header Styles (Neon, Cyberpunk, Fixed) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column; /* Default desktop layout */
}

.header-top {
  background: var(--header-top-bg);
  border-bottom: 2px solid var(--header-top-glow-color);
  box-shadow: 
    0 0 10px var(--header-top-glow-color),
    0 0 20px var(--header-top-glow-color),
    0 0 30px var(--header-top-glow-color),
    inset 0 0 20px rgba(255, 255, 0, 0.1); /* Yellow glow for top */
  padding: 15px 0;
  position: relative;
  animation: theme-colors 6s linear infinite; /* Dynamic color for border and shadow */
}

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

.logo {
  font-family: 'Orbitron', sans-serif; /* Example futuristic font */
  font-size: 2.5em;
  font-weight: bold;
  color: #fff; /* White base for neon text */
  text-transform: uppercase;
  position: relative;
  /* Dynamic text glow */
  animation: text-glow-flow 3s ease-in-out infinite alternate, neon-flicker 2s infinite alternate;
  text-shadow: 
    0 0 5px var(--logo-glow-color),
    0 0 10px var(--logo-glow-color),
    0 0 15px var(--logo-glow-color);
  transition: all 0.3s ease;
}

.logo:hover {
  text-shadow: 
    0 0 8px var(--logo-glow-color),
    0 0 15px var(--logo-glow-color),
    0 0 25px var(--logo-glow-color);
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex; /* Show on desktop */
  gap: 15px;
  align-items: center;
}

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  overflow: hidden;
  z-index: 1;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic color for button border and shadow */
  text-shadow: 
    0 0 5px #ffffff,
    0 0 10px var(--btn-glow-color); /* Cyan glow for button text */
  transition: all 0.3s ease;
}

.btn:hover {
  animation-duration: 2s; /* Speed up color change on hover */
  transform: translateY(-2px);
  box-shadow: 
    0 0 15px currentColor,
    0 0 30px currentColor,
    0 0 45px currentColor,
    inset 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Main Navigation (Desktop) */
.main-nav {
  background: var(--header-nav-bg);
  border-top: 2px solid var(--header-nav-glow-color); /* Different glow color for nav */
  border-bottom: 2px solid var(--header-nav-glow-color);
  box-shadow: 
    0 0 8px var(--header-nav-glow-color),
    0 0 16px var(--header-nav-glow-color),
    0 0 24px var(--header-nav-glow-color),
    inset 0 0 15px rgba(255, 102, 0, 0.1); /* Orange glow for nav */
  padding: 10px 0;
  display: flex; /* Default desktop: visible, horizontal */
  justify-content: center;
  animation: theme-colors 5s linear infinite reverse; /* Dynamic color for border and shadow, reversed */
}

.main-nav .nav-container {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav-link {
  color: #e0e0e0;
  font-size: 1.1em;
  font-weight: bold;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--neon-glow-color1); /* Cyan underline */
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--neon-glow-color1); /* Cyan on hover */
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger Menu (Mobile Only) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1001; /* Above logo */
  position: relative;
  /* Neon glow for hamburger */
  box-shadow: 
    0 0 5px var(--neon-glow-color5),
    0 0 10px var(--neon-glow-color5); /* Green glow */
  animation: pulse-glow 2s ease-in-out infinite alternate;
  padding: 5px;
  border-radius: 3px;
}

.hamburger-menu .bar {
  width: 100%;
  height: 3px;
  background-color: var(--neon-glow-color5); /* Green color */
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 0 3px var(--neon-glow-color5);
}

.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Mobile Navigation Buttons */
.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
  padding: 10px 20px;
  background: var(--header-top-bg); /* Same background as header-top */
  border-top: 1px solid rgba(255,255,255,0.1);
  justify-content: center;
  gap: 15px;
  animation: theme-colors 6s linear infinite; /* Dynamic color for border and shadow */
  box-shadow: 
    0 0 5px var(--header-top-glow-color),
    0 0 10px var(--header-top-glow-color); /* Yellow glow */
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none; /* Hidden by default */
  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: #0a0a0a;
  color: #a0a0a0;
  padding-top: 40px;
  font-size: 0.9em;
  border-top: 1px solid #333;
}

.footer-container {
  padding: 0 20px;
}

.footer-top {
  margin-bottom: 40px;
}

.footer-top .footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 15px;
  position: relative;
}

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

.footer-logo {
  font-size: 1.8em;
  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;
  color: #b0b0b0;
}

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

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

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

.footer-nav a:hover {
  color: var(--primary-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; /* Consistent gap for all icon sections */
  width: 100%;
}

.payment-methods .payment-icons img,
.game-providers-section .game-providers-icons img,
.social-media-section .social-media-icons img {
  max-height: 40px; /* Reduced max-height for better fit */
  height: auto;
  width: auto;
  object-fit: contain;
  filter: grayscale(80%) brightness(120%); /* Subtle effect for icons */
  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%);
}

.footer-middle {
  padding: 30px 0;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  margin-bottom: 30px;
}

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

.game-providers-section h4,
.social-media-section h4 {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 15px;
  position: relative;
}

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

.footer-bottom {
  padding-bottom: 30px;
  text-align: center;
}

.footer-bottom .footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-bottom-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.footer-bottom-nav a {
  color: #a0a0a0;
  transition: color 0.3s ease;
}

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

.copyright {
  color: #888;
  font-size: 0.85em;
}

/* --- Responsive Styles (Mobile First Reverse) --- */
@media (max-width: 768px) {
  body {
    padding-top: 150px; /* Adjust padding for mobile fixed header + mobile buttons */
  }

  /* Header */
  .site-header {
    flex-direction: column;
    min-height: auto; /* Allow height to adjust */
  }

  .header-top {
    padding: 10px 0;
  }

  .header-top .header-container {
    padding: 0 15px;
    justify-content: space-between; /* Space between hamburger and logo */
  }

  .hamburger-menu {
    display: flex; /* Show hamburger on mobile */
    order: 1; /* Place hamburger first */
    margin-right: auto; /* Push logo to center */
    box-shadow: 
      0 0 3px var(--neon-glow-color5),
      0 0 6px var(--neon-glow-color5); /* Smaller glow for mobile */
    animation: pulse-glow 1.5s ease-in-out infinite alternate; /* Faster pulse for mobile */
  }

  .logo {
    order: 2; /* Place logo second */
    flex-grow: 1; /* Allow logo to take available space */
    text-align: center; /* Center logo */
    font-size: 2em; /* Smaller logo on mobile */
    animation: text-glow-flow 2.5s ease-in-out infinite alternate; /* Faster text glow */
    margin-left: -30px; /* Compensate for hamburger pushing it right */
  }
  
  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons on mobile */
  }

  .mobile-nav-buttons {
    display: flex; /* Show mobile buttons */
    justify-content: center;
    padding: 10px 15px;
    gap: 10px;
    box-shadow: 
      0 0 3px var(--header-top-glow-color),
      0 0 6px var(--header-top-glow-color); /* Smaller glow for mobile */
  }

  .btn {
    padding: 10px 20px; /* Smaller buttons on mobile */
    font-size: 0.9em;
    animation-duration: 3s; /* Adjust animation speed for mobile */
    box-shadow: 
      0 0 8px currentColor,
      0 0 16px currentColor; /* Smaller glow for mobile buttons */
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0; /* Will be adjusted by JS to be below header-top+mobile-nav-buttons */
    left: 0;
    width: 80%; /* Sidebar width */
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: var(--header-nav-bg);
    padding-top: 100px; /* Space for logo/hamburger on mobile menu */
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-out;
    border-right: 2px solid var(--header-nav-glow-color);
    box-shadow: 
      0 0 10px var(--header-nav-glow-color),
      0 0 20px var(--header-nav-glow-color); /* Smaller glow for mobile menu */
    z-index: 1000; /* Below hamburger, above overlay */
    overflow-y: auto; /* Allow scrolling for long menus */
  }

  .main-nav.active {
    display: flex; /* Must set display when active */
    transform: translateX(0); /* Slide in */
  }

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

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

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

  /* Footer */
  .footer-top .footer-container {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  
  .footer-col {
    text-align: center; /* Center align footer columns */
  }
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-logo {
    font-size: 1.5em;
    text-align: center;
  }

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

  .footer-bottom-nav {
    flex-direction: column;
    gap: 10px;
  }

  .footer-container {
    width: 100%; /* Ensure full width on mobile */
    max-width: none; /* Remove max-width on mobile */
    padding: 0 15px; /* Smaller padding on mobile */
  }
}