/* Общие стили */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #03010a;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    position: relative;
}


/* Падающие звезды */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    /* Звезды должны быть на фоне */
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
    opacity: 0;
    animation: fall 2s linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-50px) translateX(0);
        opacity: 0.5;
    }

    100% {
        transform: translateY(100vh) translateX(50px);
        opacity: 0;
    }
}

/* Панель навигации */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.836);
    padding: 15px 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

nav:hover {
    background-color: rgba(0, 0, 0, 1);
}

nav .logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    /* Задайте размер логотипа */
    height: auto;
}

.logo img {
    width: 100%;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 20px;
    position: relative;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(0.875rem, 0.7639rem + 0.5556vw, 1.25rem);
    padding: 10px;
    transition: background 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Выпадающее меню */
nav ul li.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 30px;
    left: 0;
    background-color: rgba(0, 0, 0, 1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    min-width: 160px;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #555;
}

/* Основная надпись */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    margin-top: 1000px;
    animation: fadeIn 2s ease;
}

@media (width < 1300px) {
    .container {
        margin-top: 800px;
    }
}

@media (width < 1000px) {
    .container {
        margin-top: 600px;
    }
}

@media (width < 850px) {
    .container {
        margin-top: 400px;
    }
}

@media (width < 500px) {
    .container {
        margin-top: 1000px;
    }
}

.bubble-text {
    font-size: clamp(3.125rem, 2.5694rem + 2.7778vw, 5rem);
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.4);
    animation: glow 1.5s ease-in-out infinite alternate;
}

/* Анимация для надписи */
@keyframes glow {
    0% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.3);
    }

    100% {
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.9), 0 0 60px rgba(255, 255, 255, 0.5);
    }
}

/* Кнопка Go! */
.go-button {
    margin-top: 20px;
    padding: 15px 40px;
    background-color: rgba(53, 27, 118, 0.8);
    /* Прозрачный фиолетовый */
    color: white;
    font-size: 1.5em;
    border: none;
    border-radius: 30px;
    /* Закругленные углы */
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 15px rgba(53, 27, 118, 0.5);
}

.go-button:hover {
    background-color: rgba(54, 18, 109, 0.8);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(54, 18, 109, 0.7);
}

/* Описание */
.description {
    margin-top: 30px;
    text-align: center;
    max-width: 600px;
    padding: 0 20px;
    animation: slideInUp 1s ease;
}

.description h2 {
    font-size: clamp(1rem, 0.7407rem + 1.2963vw, 1.875rem);
    margin-bottom: 10px;
}

.description p {
    font-size: clamp(0.75rem, 0.6759rem + 0.3704vw, 1rem);
}

/* Анимация для описания */
@keyframes slideInUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Социальные ссылки */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    animation: fadeIn 2s ease;
    margin-bottom: 40px;
}

.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    padding: 10px 20px;
    border-radius: 5px;
    background: rgba(160, 45, 45, 0);
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.social-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

/* Новый раздел с функциями */
.features {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70%;
    gap: 20px;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    margin-bottom: 40px;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.493);
    border-radius: 10px;
    gap: 30px;
}



.feature-image {
    margin: 0;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.feature-text {
    max-width: 500px;
    margin: auto;
    padding: 10px 20px;
}

.feature-text h3 {
    font-size: clamp(1rem, 0.7407rem + 1.2963vw, 1.875rem);
}

.feature-text p {
    font-size: clamp(0.875rem, 0.7639rem + 0.5556vw, 1.25rem);
}


.feature-item.reverse {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    animation: fadeInUpReverse 1s ease-in-out forwards;
    justify-content: end;
}


@media (width < 500px) {
    .feature-item {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr .3fr;
        gap: 10px;
    }
    .feature-item.reverse {
        grid-template-columns:1fr;
        grid-template-rows: .3fr 1fr;
    }
    .feature-text {
        text-align: center;
    }
}

/* Анимация для появления контента */
@keyframes fadeInUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUpReverse {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}