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

body {
    background-color: #0a0a0a;
    color: #00ffcc;
    font-family: 'Fira Code', monospace;
    overflow: hidden;
    height: 100vh;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    transition: all 0.5s ease;
}

h1 {
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 0 0 15px #00ffcc;
    margin-bottom: 15px;
}

.brand-tag {
    color: #00ffcc;
    font-size: 0.95rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
    opacity: 0.8;
    font-weight: bold;
}

.subtitle {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 40px;
}

.links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Главные кнопки */
.btn {
    background: transparent;
    color: #00ffcc;
    border: 1px solid #00ffcc;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #00ffcc;
    color: #0a0a0a;
    box-shadow: 0 0 20px #00ffcc;
}

/* Стили модальных окон (Стекломорфизм) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px); /* Размытие заднего плана */
    z-index: 10;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(0, 255, 204, 0.3);
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.1);
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

h2 {
    color: #00ffcc;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.modal-body h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.modal-body p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Кнопки внутри окон */
.sub-btn {
    display: inline-block;
    text-decoration: none;
    background: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    border: 1px solid #00ffcc;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sub-btn:hover {
    background: #00ffcc;
    color: #0a0a0a;
    box-shadow: 0 0 10px #00ffcc;
}

.social-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Кнопка закрытия окна (крестик) */
.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #00ffcc;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

.feedback-form textarea {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 204, 0.3);
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    resize: none;
    outline: none;
    transition: border 0.3s ease;
}

.feedback-form textarea:focus {
    border-color: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}

.feedback-form button {
    align-self: flex-start;
    cursor: pointer;
}

/* --- Типинг-курсор подзаголовка --- */
.subtitle {
    min-height: 1.4em;
}
.typed-cursor {
    color: #00ffcc;
    animation: blink 1s steps(1) infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* --- CTA-кнопки на ботов --- */
.bot-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}
.cta-primary, .cta-secondary {
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.cta-primary {
    background: #00ffcc;
    color: #0a0a0a;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
}
.cta-primary:hover {
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.8);
}
.cta-secondary {
    background: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    border: 1px solid #00ffcc;
}
.cta-secondary:hover {
    background: #00ffcc;
    color: #0a0a0a;
}

/* --- Live-бейдж статуса сервера --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 26px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    background: rgba(0, 255, 204, 0.05);
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 0.74rem;
    color: #bcd;
}
.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #555;
    display: inline-block;
    transition: background 0.4s ease;
}
.status-dot.online {
    background: #28e07a;
    box-shadow: 0 0 8px #28e07a;
    animation: pulse 1.8s ease-in-out infinite;
}
.status-dot.offline {
    background: #ff3333;
    box-shadow: 0 0 8px #ff3333;
}
@keyframes pulse {
    50% { opacity: 0.4; }
}

/* --- Бейдж NEW в проектах --- */
.tag-new {
    color: #28e07a;
    font-weight: normal;
    font-size: 0.7rem;
    border: 1px solid #28e07a;
    border-radius: 10px;
    padding: 1px 8px;
    margin-left: 6px;
    vertical-align: middle;
}

/* --- Адаптив под телефоны: убираем горизонтальный скролл и тесноту --- */
@media (max-width: 600px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    #particles-js {
        position: fixed;        /* фон держится, контент скроллится поверх */
        pointer-events: none;   /* частицы не перехватывают тапы по кнопкам */
    }
    .content {
        position: relative;     /* relative (не static!) — чтобы z-index работал и контент был ВЫШЕ частиц */
        z-index: 2;
        transform: none;        /* убираем абсолютное центрирование -> нет переполнения по ширине */
        width: 100%;
        padding: 56px 16px 40px;
    }
    h1 { font-size: 1.9rem; }
    .subtitle { font-size: 0.95rem; }
    .links, .bot-cta {
        flex-wrap: wrap;
        gap: 10px;
    }
    .btn { padding: 10px 18px; font-size: 0.78rem; }
    .cta-primary, .cta-secondary { font-size: 0.78rem; padding: 11px 18px; }
    .status-badge {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        font-size: 0.68rem;
        margin-left: 12px;
        margin-right: 12px;
    }
    .modal-content { padding: 28px 20px; }
    .social-grid { justify-content: center; }
}