@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;700&display=swap');

body {
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
}


.container {
    position: relative;
    text-align: center;
}


@keyframes letterGlow {
    0% { text-shadow: 0 0 6px rgba(164, 143, 255, 0.3); }
    50% { text-shadow: 0 0 12px rgba(255, 255, 255, 0.3); }
    100% { text-shadow: 0 0 6px rgba(164, 143, 255, 0.3); }
}

.title {
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    background: linear-gradient(135deg, #ffffff, #a48fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 0px;
    animation: shineText 6s infinite ease-in-out;
}


@keyframes shineText {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}





@keyframes runningGlow {
    0% { text-shadow: 0 0 4px rgba(164, 143, 255, 0.1); }
    50% { text-shadow: 0 0 10px rgba(164, 143, 255, 0.5); }
    100% { text-shadow: 0 0 4px rgba(164, 143, 255, 0.1); }
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0px;
    display: inline-block;
}

.subtitle span {
    display: inline-block;
    animation: runningGlow 3s infinite ease-in-out;
}




@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.menu-bar {
    margin-top: 0px;
}

.nav-button {
    font-size: 1rem;
    color: white;
    text-decoration: none;
    padding: 9px 30px;
    border-radius: 50px;
    margin: 10px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(164, 143, 255, 0.3);
    background: linear-gradient(45deg, rgba(164, 143, 255, 0.08), rgba(255, 255, 255, 0));
    backdrop-filter: blur(5px);
    transition: border-color 0.4s ease-in-out, box-shadow 0.6s ease-in-out;
}

/* Псевдоэлемент для плавной заливки */
.nav-button::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    background: white;
    top: var(--y);
    left: var(--x);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.8s ease-in-out;
    z-index: 1;
}

/* Обертка для текста */
.nav-button span {
    position: relative;
    display: inline-block;
    transition: color 0.4s ease-in-out;
    z-index: 2;
}

/* Второй псевдоэлемент для маскировки границы */
.nav-button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    border: 2px solid #a48fff;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
}

/* Анимация заливки */
.nav-button:hover::before {
    transform: translate(-50%, -50%) scale(3);
}

/* Теперь граница плавно становится белой */
.nav-button:hover::after {
    opacity: 1;
}

/* Текст становится черным там, где надо */
.nav-button:hover span {
    color: black;
}

/* Убираем дергание рамки */
.nav-button:focus {
    outline: none;
}

/* Мягкое сжатие при нажатии */
.nav-button:active {
    transform: scale(0.97);
    transition: transform 0.15s ease-in-out;
}





@keyframes moveParticles {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(var(--moveY)) translateX(var(--moveX));
        opacity: 0;
    }
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: var(--size);
    height: var(--size);
    background: rgba(255, 255, 255, 0.38);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    filter: blur(1px);
    animation: moveParticles var(--duration) ease-in-out infinite alternate;
}



#cometCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
}


@media (max-width: 768px) {


    body {
        padding: 0;
    }

    .title {
        font-size: 3rem;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .nav-button {
        font-size: 0.9rem;
        padding: 8px 24px;
        margin: 8px;
    }

    .menu-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .container {
        padding: 0 10px;
    }

}
