:root {
    --nav-bg: rgba(7, 12, 26, 0.95);
}

@media (max-width: 900px) {
    .site-nav {
        position: relative;
        gap: 10px;
    }

    .nav-toggle {
        display: none;
    }

    .site-nav-links {
        display: none;
    }

    .bubble-menu {
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(10, 10, 10, 0.9);
        /* Dark background */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 999;
        padding: 8px;
        overflow: hidden;
    }

    .bubble-menu-inner {
        position: relative;
        z-index: 2;
        display: grid;
        gap: 8px;
        justify-items: center;
    }

    .bubble-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
        gap: 12px;
        max-width: 320px;
        /* Reduzido para centralizar melhor */
    }

    .bubble-button {
        position: relative;
        width: 65px;
        height: 65px;
        border-radius: 50%;
        border: 1px solid var(--glass-border);
        background: var(--glass);
        box-shadow: 0 0 15px rgba(255, 0, 212, 0.2);
        /* Neon Pink Glow */
        color: #fff;
        font-weight: 700;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 4px;
        transition: all 0.3s ease;
        font-size: 0.75rem;
        overflow: hidden;
        animation: pulseBtn 2s infinite;
    }

    @keyframes pulseBtn {
        0% {
            box-shadow: 0 0 0 0 rgba(255, 0, 212, 0.4);
        }

        70% {
            box-shadow: 0 0 0 10px rgba(255, 0, 212, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(255, 0, 212, 0);
        }
    }

    .bubble-button:nth-child(even) {
        box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
        /* Neon Cyan Glow */
        animation: pulseBtnCyan 2s infinite;
        animation-delay: 1s;
    }

    @keyframes pulseBtnCyan {
        0% {
            box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.4);
        }

        70% {
            box-shadow: 0 0 0 10px rgba(0, 242, 255, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(0, 242, 255, 0);
        }
    }

    .bubble-button:hover {
        transform: scale(1.1);
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--primary);
    }

    .bubble-button:nth-child(even):hover {
        border-color: var(--secondary);
    }

    .bubble-bg {
        position: absolute;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .bubble-bg span {
        position: absolute;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 30%, var(--primary), transparent);
        opacity: 0.2;
        animation: floaty 10s ease-in-out infinite;
        filter: blur(20px);
    }

    .bubble-bg span:nth-child(even) {
        background: radial-gradient(circle at 30% 30%, var(--secondary), transparent);
    }

    .bubble-bg span:nth-child(1) {
        width: 140px;
        height: 140px;
        left: 10%;
        top: 18%;
        animation-duration: 9s;
    }

    .bubble-bg span:nth-child(2) {
        width: 90px;
        height: 90px;
        left: 70%;
        top: 12%;
        animation-duration: 11s;
        animation-delay: 1s;
    }

    .bubble-bg span:nth-child(3) {
        width: 110px;
        height: 110px;
        left: 20%;
        top: 70%;
        animation-duration: 8.5s;
        animation-delay: 0.5s;
    }

    .bubble-bg span:nth-child(4) {
        width: 80px;
        height: 80px;
        left: 80%;
        top: 75%;
        animation-duration: 10s;
        animation-delay: 0.8s;
    }

    @keyframes floaty {

        0%,
        100% {
            transform: translateY(0) translateX(0) scale(1);
        }

        50% {
            transform: translateY(-20px) translateX(10px) scale(1.1);
        }
    }
}

@media (min-width: 901px) {
    .nav-toggle {
        display: none;
    }

    /* overlay mobile desabilitado no desktop */
    #bubbleMenu {
        display: none !important;
    }
}