:root {
    --neon-green: #39ff14;
    --neon-red: #ff073a;
    --neon-blue: #00f9ff;
    --neon-pink: #fe019a;
    --dark-bg: #050505;
    --font-main: 'Frosty Faktur', sans-serif;
}

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

body,
html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: var(--font-main);
    background-color: black;
    /* Fallback */
    color: white;
}

/* Background Video */
/* Background Video */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* Main Container */
/* Main Container */
.container {
    position: relative;
    z-index: 10;
    /* Higher than video */
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Navigation Bar */
nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.nav-main-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    align-items: center;
    text-align: center;
}

.nav-contract-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links-row {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px var(--neon-blue);
}

.nav-link:hover {
    color: var(--neon-green);
    text-shadow: 0 0 15px var(--neon-green), 0 0 30px var(--neon-green);
    transform: scale(1.1);
}

.nav-center {
    text-align: center;
    order: -1;
    /* Ensure logo is at the top */
}

.logo {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
    text-shadow:
        0 0 10px var(--neon-red),
        0 0 20px var(--neon-red),
        0 0 40px var(--neon-red),
        0 0 80px var(--neon-red);
    animation: christmas-strobe 1s infinite;
    will-change: text-shadow, color;
    transform: translateZ(0);
}

@keyframes christmas-strobe {
    0% {
        text-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red), 0 0 40px var(--neon-red);
        color: #fff;
    }

    25% {
        text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green), 0 0 40px var(--neon-green);
        color: #fff;
    }

    50% {
        text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue);
        color: #fff;
    }

    75% {
        text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink), 0 0 40px var(--neon-pink);
        color: #fff;
    }

    100% {
        text-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red), 0 0 40px var(--neon-red);
        color: #fff;
    }
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Contract Address Component */
.contract-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.contract-box:hover {
    background: rgba(57, 255, 20, 0.2);
    box-shadow: 0 0 20px var(--neon-green);
}

.contract-text {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--neon-green);
}

.copy-icon {
    width: 16px;
    height: 16px;
    fill: var(--neon-green);
}

/* Audio Button */
.audio-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    font-size: 28px;
    box-shadow: 0 0 15px var(--neon-pink);
    transition: all 0.3s ease;
    animation: audio-strobe 0.6s infinite alternate;
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.audio-btn:hover {
    transform: scale(1.2) rotate(10deg) translateZ(0);
    box-shadow: 0 0 40px var(--neon-pink), 0 0 80px var(--neon-pink);
    background: var(--neon-pink);
}

.audio-btn:hover .audio-emoji {
    filter: invert(1);
}

@keyframes audio-strobe {
    0% {
        box-shadow: 0 0 10px var(--neon-pink);
        border-color: var(--neon-pink);
        transform: scale(1) translateZ(0);
    }

    100% {
        box-shadow: 0 0 30px var(--neon-pink), 0 0 60px var(--neon-pink);
        border-color: #fff;
        transform: scale(1.1) translateZ(0);
    }
}

/* Party Button */
.party-btn {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    font-size: 28px;
    box-shadow: 0 0 15px var(--neon-green);
    transition: all 0.3s ease;
    animation: party-strobe 0.5s infinite alternate;
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.party-btn:hover {
    transform: scale(1.2) rotate(-10deg) translateZ(0);
    box-shadow: 0 0 40px var(--neon-green), 0 0 80px var(--neon-green);
    background: var(--neon-green);
}

@keyframes party-strobe {
    0% {
        box-shadow: 0 0 10px var(--neon-green);
        border-color: var(--neon-green);
        transform: scale(1) rotate(0deg) translateZ(0);
    }

    100% {
        box-shadow: 0 0 35px var(--neon-green), 0 0 70px var(--neon-green);
        border-color: #fff;
        transform: scale(1.15) rotate(5deg) translateZ(0);
    }
}

/* Strobing Lights Border */
/* Strobing Lights Border */
.lights-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

#lights-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* SVG Bulb Animations */
/* Base Styles - Simplified to single layer */
.bulb-core {
    transform-origin: center;
    transform-box: fill-box;
    filter: drop-shadow(0 0 10px currentColor);
    animation: rainbow-glow 1.2s infinite linear;
    will-change: fill;
    transform: translateZ(0);
}

.bulb-highlight {
    fill: none;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 1px;
    stroke-linecap: round;
    filter: drop-shadow(0 0 1px white);
    transform-origin: center;
    transform-box: fill-box;
    pointer-events: none;
    transform: translateZ(0);
}

/* Simplified Rainbow Animation */
@keyframes rainbow-glow {
    0% {
        fill: #ff073a;
    }

    25% {
        fill: #39ff14;
    }

    50% {
        fill: #00f9ff;
    }

    75% {
        fill: #fe019a;
    }

    100% {
        fill: #ff073a;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-main-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px;
        text-align: center;
    }

    .nav-left {
        justify-content: center;
        align-items: center;
    }

    .nav-links-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-right {
        justify-content: center;
    }

    .logo {
        font-size: 2rem;
        /* Reduced from 3rem */
    }

    .contract-box {
        padding: 8px 12px;
        /* Reduced from 10px 20px */
        max-width: 90%;
        overflow: hidden;
    }

    .contract-text {
        font-size: 0.7rem;
        /* Reduced from 0.9rem */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}