:root {
    --primary-color: #FFD700; /* Gold/Yellow */
    --secondary-color: #1E90FF; /* Dodger Blue */
    --neon-yellow: #FFFF00;
    --neon-blue: #00FFFF;
    --neon-pink: #FF00FF;
    --dark-bg-1: #0a0a0a;
    --dark-bg-2: #1a1a2e;
    --dark-bg-3: #16213e;
    --text-color: #f0f0f0;
    --link-color: #c0c0c0;
    --hover-color: var(--primary-color);
    --btn-text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background-color: #000;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--link-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

.no-scroll {
    overflow: hidden;
}

/* ==================================================================
   Header Styles (Desktop First - Neon, Cyberpunk, Retro-futuristic)
   ================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.header-top {
    background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
    border-bottom: 2px solid var(--neon-yellow);
    box-shadow:
        0 0 10px var(--neon-yellow),
        0 0 20px var(--neon-yellow),
        inset 0 0 20px rgba(255, 255, 0, 0.1);
    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-family: 'Orbitron', sans-serif; /* Example futuristic font */
    font-size: 2.5em;
    font-weight: bold;
    color: var(--neon-yellow);
    text-shadow:
        0 0 5px var(--neon-yellow),
        0 0 10px var(--neon-yellow),
        0 0 15px var(--neon-blue),
        0 0 20px var(--neon-blue);
    animation: neon-glow 2s ease-in-out infinite alternate;
    display: block; /* Ensure logo is visible */
}

@keyframes neon-glow {
    from {
        text-shadow:
            0 0 5px var(--neon-yellow),
            0 0 10px var(--neon-yellow),
            0 0 15px var(--neon-blue);
    }
    to {
        text-shadow:
            0 0 10px var(--neon-yellow),
            0 0 20px var(--neon-yellow),
            0 0 30px var(--neon-blue),
            0 0 40px var(--neon-blue);
    }
}

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

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

.main-nav {
    background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
    border-top: 2px solid var(--neon-blue);
    border-bottom: 2px solid var(--neon-blue);
    box-shadow:
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    padding: 10px 0;
    display: flex; /* Default for desktop */
    flex-direction: row; /* Default for desktop */
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out; /* For mobile menu */
}

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

.nav-link {
    color: var(--text-color);
    font-size: 1.1em;
    padding: 10px 15px;
    margin: 0 5px;
    white-space: nowrap;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

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

.hamburger-menu {
    display: none; /* Hidden on desktop */
}

.mobile-menu-overlay {
    display: none; /* Hidden on desktop */
}

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    overflow: hidden; /* Important for pseudo-elements */
    z-index: 1;
    transition: all 0.3s ease;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid var(--primary-color);
    box-shadow:
        0 0 10px var(--primary-color),
        0 0 20px var(--secondary-color),
        inset 0 0 10px rgba(255, 215, 0, 0.3);
    color: var(--btn-text-color);
    text-shadow: 0 0 5px var(--btn-text-color), 0 0 10px var(--primary-color);
}

.btn:hover {
    box-shadow:
        0 0 20px var(--primary-color),
        0 0 30px var(--secondary-color),
        inset 0 0 15px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.btn > * {
    position: relative;
    z-index: 1;
}

/* Neon Edge Running Effect - Light 1 */
.btn::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background:
        linear-gradient(90deg, transparent 0%, transparent 40%, var(--neon-yellow) 50%, transparent 60%, transparent 100%) 0% 0% / 100% 3px,
        linear-gradient(180deg, transparent 0%, transparent 40%, var(--neon-yellow) 50%, transparent 60%, transparent 100%) 100% 0% / 3px 100%,
        linear-gradient(270deg, transparent 0%, transparent 40%, var(--neon-yellow) 50%, transparent 60%, transparent 100%) 100% 100% / 100% 3px,
        linear-gradient(0deg, transparent 0%, transparent 40%, var(--neon-yellow) 50%, transparent 60%, transparent 100%) 0% 100% / 3px 100%;
    background-repeat: no-repeat;
    border-radius: inherit;
    animation: chase-border 3s linear infinite;
    z-index: 0;
    pointer-events: none;
    filter: blur(1px);
    box-shadow:
        0 0 10px var(--neon-yellow),
        0 0 20px var(--neon-yellow);
}

/* Neon Edge Running Effect - Light 2 */
.btn::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background:
        linear-gradient(90deg, transparent 0%, transparent 40%, var(--neon-blue) 50%, transparent 60%, transparent 100%) 0% 0% / 100% 3px,
        linear-gradient(180deg, transparent 0%, transparent 40%, var(--neon-blue) 50%, transparent 60%, transparent 100%) 100% 0% / 3px 100%,
        linear-gradient(270deg, transparent 0%, transparent 40%, var(--neon-blue) 50%, transparent 60%, transparent 100%) 100% 100% / 100% 3px,
        linear-gradient(0deg, transparent 0%, transparent 40%, var(--neon-blue) 50%, transparent 60%, transparent 100%) 0% 100% / 3px 100%;
    background-repeat: no-repeat;
    border-radius: inherit;
    animation: chase-border 3s linear infinite;
    animation-delay: 1.5s;
    z-index: 0;
    pointer-events: none;
    filter: blur(1px);
    box-shadow:
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue);
}

@keyframes chase-border {
    0% {
        background-position:
            0% 0%,
            100% 0%,
            100% 100%,
            0% 100%;
    }
    25% {
        background-position:
            100% 0%,
            100% 0%,
            100% 100%,
            0% 100%;
    }
    50% {
        background-position:
            100% 0%,
            100% 100%,
            100% 100%,
            0% 100%;
    }
    75% {
        background-position:
            100% 0%,
            100% 100%,
            0% 100%,
            0% 100%;
    }
    100% {
        background-position:
            0% 0%,
            100% 0%,
            0% 100%,
            0% 0%;
    }
}

.btn:hover::before {
    box-shadow:
        0 0 15px var(--neon-yellow),
        0 0 30px var(--neon-yellow);
    filter: blur(1.5px);
}

.btn:hover::after {
    box-shadow:
        0 0 15px var(--neon-blue),
        0 0 30px var(--neon-blue);
    filter: blur(1.5px);
}

/* ==================================================================
   Footer Styles (Regular Dark Theme)
   ================================================================== */
.site-footer {
    background-color: var(--dark-bg-1);
    color: var(--text-color);
    padding: 40px 20px 20px;
    border-top: 1px solid #333;
    font-size: 0.9em;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 15px;
}

.footer-column p {
    color: #aaa;
}

.footer-nav a {
    display: block;
    color: #aaa;
    margin-bottom: 8px;
}

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

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

/* ==================================================================
   Mobile Styles (@media max-width: 768px)
   ================================================================== */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
    }

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

    .header-top {
        padding: 10px 0;
        flex-wrap: wrap; /* Allow hamburger, logo, buttons to wrap if needed */
    }

    .logo {
        flex-grow: 1;
        text-align: center;
        font-size: 2em;
        order: 2;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        order: 1;
        position: relative;
        transition: all 0.3s ease;
        box-shadow: 0 0 5px var(--neon-yellow), 0 0 10px var(--neon-yellow);
        border-radius: 3px;
    }

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

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

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

    .mobile-buttons-area {
        display: block; /* Show mobile buttons area */
        background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
        border-bottom: 2px solid var(--neon-pink); /* Different color for distinction */
        box-shadow:
            0 0 8px var(--neon-pink),
            0 0 15px var(--neon-pink),
            inset 0 0 15px rgba(255, 0, 255, 0.1);
        padding: 10px 0;
        z-index: 999; /* Below main nav, above content */
    }

    .mobile-buttons-area .header-container {
        justify-content: center;
        gap: 10px;
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 75%;
        height: 100%;
        background: var(--dark-bg-3); /* Solid dark background for menu */
        overflow-y: auto;
        transform: translateX(-100%); /* Off-screen by default */
        z-index: 1000;
        padding-top: 80px; /* Space for fixed header content */
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
        border-right: 2px solid var(--neon-blue);
        border-top: none; /* Remove top border for mobile menu */
        border-bottom: none; /* Remove bottom border for mobile menu */
    }

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

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 15px;
        width: 100%;
        max-width: none; /* Ensure it takes full width of menu */
    }

    .nav-link {
        width: 100%;
        padding: 15px 10px;
        border-bottom: 1px solid #333;
        margin: 0;
        font-size: 1.2em;
    }

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

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

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-column {
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .footer-column h3 {
        font-size: 1.1em;
    }

    .footer-nav a {
        margin-bottom: 5px;
    }
}
