:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #DC143C; /* Crimson */
    --neon-primary: var(--primary-color);
    --neon-secondary: var(--secondary-color);
    --neon-accent: #00FFFF; /* Cyan for contrast */
    --dark-bg: #0a0a0a;
    --darker-bg: #1a1a2e;
    --darkest-bg: #16213e;
}

/* Base styles for body to ensure content padding and smooth scrolling */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 120px; /* Adjust based on header height, approx sum of header-top and main-nav */
}

body.no-scroll {
    overflow: hidden;
}

/* Dynamic Neon Glow Colors - Multiple Flowing Color Effects */
@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); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
    100% { filter: hue-rotate(360deg); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
}

@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%; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff8000; }
    50% { background-position: 100% 50%; box-shadow: 0 0 10px #00ffff, 0 0 20px #0000ff; }
    100% { background-position: 0% 50%; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff8000; }
}

@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, 215, 0, 0.3); /* Based on primary-color #FFD700 */
    }
    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(220, 20, 60, 0.3); /* Based on secondary-color #DC143C */
    }
    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(0, 255, 255, 0.3); /* Based on accent-color #00FFFF */
    }
}

@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 {
    from { box-shadow: 0 0 5px currentColor, 0 0 10px currentColor; }
    to { box-shadow: 0 0 15px currentColor, 0 0 30px currentColor, 0 0 45px currentColor; }
}

@keyframes led-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 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; }
}

/* Header Styles (Desktop First) */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    font-family: 'Orbitron', sans-serif; /* Cyberpunk font */
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7); /* Light bloom effect for the entire header */
    backdrop-filter: blur(5px); /* Acrylic effect */
    -webkit-backdrop-filter: blur(5px);
}

.header-top {
    background: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic color border for top header */
    padding: 10px 0;
}

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

.logo {
    font-size: 2.2em;
    font-weight: bold;
    text-decoration: none;
    color: #fff; /* Base color for text, glow will add effect */
    animation: text-glow-flow 3s ease-in-out infinite alternate; /* Dynamic text glow */
    letter-spacing: 2px;
    text-shadow: 0 0 8px var(--neon-primary), 0 0 15px var(--neon-primary);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

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

.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 glow for buttons */
    text-shadow: 0 0 5px #ffffff, 0 0 10px var(--neon-primary);
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 1px;
    overflow: hidden;
    white-space: nowrap; /* Prevent text wrapping on desktop */
}

.btn:hover {
    animation-duration: 2s; /* Speed up glow on hover */
    transform: translateY(-2px);
    box-shadow: 
        0 0 15px var(--neon-primary),
        0 0 30px var(--neon-secondary),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.main-nav {
    background: linear-gradient(135deg, var(--darker-bg), var(--darkest-bg));
    border-top: 2px solid;
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite reverse; /* Different dynamic color for main nav */
    padding: 10px 0;
    display: flex; /* Desktop default */
    flex-direction: row; /* Desktop default */
    justify-content: center; /* Desktop default */
    position: static; /* Desktop default */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap; /* Allow navigation items to wrap if screen is too narrow on desktop */
    gap: 20px;
}

.nav-link {
    color: #c0c0c0;
    text-decoration: none;
    font-size: 1.1em;
    padding: 8px 15px;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap; /* Keep nav links on one line */
}

.nav-link:hover, .nav-link.active {
    color: var(--neon-primary);
    text-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
    transform: translateY(-2px);
}

/* Hamburger menu for mobile */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    animation: random-glow 5s linear infinite; /* Dynamic glow for hamburger */
}

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

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu-overlay {
    display: none; /* Hidden on desktop */
    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 Styles */
.site-footer {
    background-color: #1a1a2e; /* Dark background, no neon */
    color: #c0c0c0;
    padding: 40px 0 20px 0;
    font-size: 0.9em;
    border-top: 1px solid #333;
}

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

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

.footer-col h4 {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-logo {
    font-size: 1.8em;
    font-weight: bold;
    text-decoration: none;
    color: var(--primary-color); /* Use primary color for footer logo */
    margin-bottom: 15px;
    display: block;
}

.footer-description {
    line-height: 1.6;
    word-wrap: break-word; /* Ensure full display */
    overflow-wrap: break-word; /* Ensure full display */
    text-align: justify;
}

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

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

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

.footer-nav-list a:hover {
    color: var(--primary-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-methods h4, .game-providers-section h4, .social-media-section h4 {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.game-providers-section, .social-media-section {
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

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

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

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

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

    .site-header {
        flex-direction: column;
        align-items: center;
    }

    .header-top {
        width: 100%;
        padding: 10px 0;
        border-bottom: none; /* No border for header-top on mobile, mobile-nav-buttons will have it */
        animation: none; /* No animation for header-top background on mobile */
    }

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

    .logo {
        flex: 1; /* Allows logo to take available space for centering */
        text-align: center;
        font-size: 1.8em;
        order: 2; /* Position logo in the middle */
    }

    .hamburger-menu {
        display: flex; /* Show hamburger on mobile */
        order: 1; /* Position hamburger to the left */
        margin-right: auto; /* Push logo to center */
        animation: theme-colors 4s ease-in-out infinite; /* Dynamic glow for hamburger */
    }

    .desktop-nav-buttons {
        display: none; /* Hide desktop buttons */
    }

    .main-nav {
        display: none; /* Hidden by default on mobile, shown via JS */
        flex-direction: column; /* Vertical layout for mobile menu */
        position: fixed; /* Fixed position for mobile menu */
        top: 0; /* Align to top */
        left: 0; /* Align to left */
        width: 70%; /* Slide-in menu width */
        height: 100%;
        overflow-y: auto;
        transform: translateX(-100%); /* Start off-screen */
        transition: transform 0.3s ease-in-out;
        z-index: 1000; /* Ensure menu is above overlay */
        padding-top: 100px; /* Space for logo/hamburger */
        box-shadow: 5px 0 15px rgba(0, 255, 255, 0.7); /* Side shadow for menu */
        animation: none; /* No animation for main-nav background on mobile */
        border-top: none;
        border-bottom: none;
    }

    .main-nav.active {
        display: flex; /* Show when active */
        transform: translateX(0); /* Slide into view */
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 15px;
        width: 100%; /* Must be 100% */
        max-width: none; /* No max-width */
        gap: 10px;
    }

    .nav-link {
        width: 100%;
        padding: 12px 15px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        white-space: normal; /* Allow nav links to wrap */
    }

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

    .mobile-nav-buttons {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 10px 15px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        background: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
        border-bottom: 2px solid;
        animation: theme-colors 4s ease-in-out infinite; /* Dynamic color border for mobile buttons */
    }

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

    .footer-top-grid {
        grid-template-columns: 1fr; /* Single column layout for mobile */
    }

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

    .footer-bottom {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .logo {
        font-size: 1.6em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .mobile-nav-buttons .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    .site-footer {
        padding: 30px 0 15px 0;
    }
    .footer-top-grid {
        gap: 20px;
    }
    .game-providers-section, .social-media-section {
        margin-bottom: 20px;
    }
}