:root {
  /* Site Base Colors */
  --primary-site-color: #1A1A2E; /* Dark blue/purple */
  --secondary-site-color: #E94560; /* Red/pink */

  /* Neon Dynamic Colors - derived from site colors for harmony */
  --neon-primary: #FF00FF; /* Bright Magenta */
  --neon-secondary: #00FFFF; /* Cyan */
  --neon-accent: #FFFF00; /* Yellow */
  --neon-header-border: #FFFF00; /* Yellow for header top border */
  --neon-nav-border: #FF1744; /* Bright Red for nav border */

  /* Dark Backgrounds */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --dark-bg-4: #0f3460;
}

/* Animations for dynamic 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 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); }
  100% { filter: hue-rotate(360deg); }
}

@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%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@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(--neon-primary);
    box-shadow: 
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary),
      inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
  33% {
    border-color: var(--neon-secondary);
    box-shadow: 
      0 0 10px var(--neon-secondary),
      0 0 20px var(--neon-secondary),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  66% {
    border-color: var(--neon-accent);
    box-shadow: 
      0 0 10px var(--neon-accent),
      0 0 20px var(--neon-accent),
      inset 0 0 10px rgba(255, 255, 0, 0.3);
  }
}

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

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

/* Base Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--dark-bg-1);
    color: #e0e0e0;
    line-height: 1.6;
    padding-top: 130px; /* Default for desktop (header-top + main-nav height) */
}

/* Header - Desktop First */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex; /* Ensures header-top and main-nav stack vertically */
    flex-direction: column;
}

/* Header Top Section (Logo + Buttons) */
.header-top {
    background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
    border-bottom: 2px solid var(--neon-header-border);
    box-shadow: 
      0 0 10px var(--neon-header-border),
      0 0 20px var(--neon-header-border),
      0 0 30px var(--neon-header-border),
      inset 0 0 20px rgba(255, 255, 0, 0.1);
    padding: 10px 0;
    min-height: 60px; /* Ensure minimum height */
    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; /* Padding for logo and buttons from container edge */
}

.logo {
    color: #ffffff; /* Base color for text glow */
    font-size: 2.5em;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    animation: text-glow-flow 3s ease-in-out infinite alternate; /* Dynamic text glow */
    filter: brightness(1.2); /* Enhance glow */
    padding: 5px 0; /* Vertical padding for logo */
}

/* Main Navigation Section */
.main-nav {
    background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3), var(--dark-bg-4));
    border-top: 2px solid var(--neon-nav-border);
    border-bottom: 2px solid var(--neon-nav-border);
    box-shadow: 
      0 0 10px var(--neon-nav-border),
      0 0 20px var(--neon-nav-border),
      0 0 30px var(--neon-nav-border),
      inset 0 0 20px rgba(255, 0, 0, 0.1);
    padding: 10px 0;
    min-height: 50px; /* Ensure minimum height */
    display: flex; /* Desktop: display flex */
    flex-direction: row; /* Desktop: horizontal */
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center; /* Center menu items */
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller desktop screens */
    padding: 0 20px;
    gap: 25px; /* Spacing between nav links */
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1em;
    padding: 8px 15px;
    transition: color 0.3s ease, background-color 0.3s ease, text-shadow 0.3s ease;
    border-radius: 5px;
    white-space: nowrap; /* Prevent menu items from breaking */
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-accent);
    text-shadow: 0 0 8px var(--neon-accent), 0 0 15px var(--neon-accent);
    background-color: rgba(255, 255, 0, 0.1);
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
    display: flex;
    gap: 12px;
}

/* Functional Buttons */
.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;
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic border/shadow color */
    text-shadow: 
      0 0 5px #ffffff,
      0 0 10px var(--neon-primary);
    transition: all 0.3s ease;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
}

.btn:hover {
    animation-duration: 2s; /* Faster color change on hover */
    transform: translateY(-2px);
    filter: brightness(1.2);
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1001;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--neon-primary); /* Initial glow */
    animation: pulse-glow 2s ease-in-out infinite alternate; /* Dynamic glow */
}

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

/* Mobile Nav Buttons (Hidden on Desktop) */
.mobile-nav-buttons {
    display: none;
}

/* Mobile Menu Overlay (Hidden on Desktop) */
.mobile-menu-overlay {
    display: none;
}

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

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

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

.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: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-site-color);
    margin-top: 5px;
}

.footer-about .footer-logo {
    color: #ffffff;
    font-size: 2em;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

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

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

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

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

.footer-nav a:hover {
    color: var(--secondary-site-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: 50px;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: grayscale(80%) brightness(1.5);
    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(1.2);
}

.footer-middle {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .header-container, .nav-container, .site-footer .footer-container {
        padding: 0 15px;
    }
    .nav-container {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 180px; /* Adjusted for mobile header-top + mobile-nav-buttons height */
    }

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

    /* Header Top */
    .header-top {
        padding: 10px 0;
        min-height: 50px;
    }
    .header-container {
        justify-content: space-between;
        padding: 0 15px;
        max-width: none;
        width: 100%;
    }
    .logo {
        flex-grow: 1;
        text-align: center;
        font-size: 2em;
        order: 2;
        padding: 0;
    }
    .desktop-nav-buttons {
        display: none;
    }
    .hamburger-menu {
        display: flex;
        order: 1;
        align-self: center;
        margin-right: auto;
    }
    .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);
    }

    /* Mobile Navigation Buttons (below header-top) */
    .mobile-nav-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
        background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-4));
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 2px solid var(--neon-nav-border);
        box-shadow: 
          0 0 8px var(--neon-nav-border),
          0 0 15px var(--neon-nav-border),
          inset 0 0 10px rgba(255, 0, 0, 0.1);
        min-height: 60px;
        align-items: center;
    }
    .mobile-nav-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    /* Main Navigation (Hamburger Menu Content) */
    .main-nav {
        display: none; /* Default hidden on mobile */
        position: fixed;
        top: 0; /* Will be adjusted by JS */
        left: 0;
        width: 75%;
        height: 100%; /* Will be adjusted by JS */
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        background: linear-gradient(180deg, var(--dark-bg-4), var(--dark-bg-1));
        padding: 80px 0 20px; /* Initial padding, top will be adjusted by JS */
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        border-right: 2px solid var(--neon-primary);
        box-shadow: 
          0 0 15px var(--neon-primary),
          0 0 30px var(--neon-primary),
          inset -5px 0 15px rgba(255, 0, 255, 0.1);
    }
    .main-nav.active {
        display: flex; /* Show menu when active */
        transform: translateX(0);
    }
    .main-nav .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
        max-width: none;
        width: 100%;
        gap: 10px;
    }
    .main-nav .nav-link {
        width: 100%;
        text-align: left;
        padding: 12px 15px;
        font-size: 1.2em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .main-nav .nav-link:last-child {
        border-bottom: none;
    }

    /* Mobile Menu Overlay */
    .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: 998;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }
    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Footer Responsive */
    .footer-top .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-col {
        text-align: center;
    }
    .footer-col h4::after {
        margin: 5px auto 0;
    }
    .footer-about .footer-logo {
        text-align: center;
    }
    .payment-methods .payment-icons,
    .game-providers-section .game-providers-icons,
    .social-media-section .social-media-icons {
        justify-content: center;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .logo {
        font-size: 1.8em;
    }
    .mobile-nav-buttons .btn {
        padding: 8px 15px;
        font-size: 0.85em;
    }
    .nav-link {
        font-size: 1em;
    }
    body {
        padding-top: 160px;
    }
}