/* ===== Видео-фон ===== */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

/* ===== Основные стили ===== */
body {
    color: white;
    background-color: black;
    font-family: Arial, sans-serif;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;
    cursor: default;
}

/* ===== Экран приветствия ===== */
#welcome-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
}

/* После клика экран исчезает */
#welcome-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===== Вертикальная карточка ===== */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 300px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
}

/* ===== Аватарка ===== */
.avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* ===== Ник ===== */
.card h1 {
    font-size: 24px;
    margin: 5px 0;
    color: white;
}

/* ===== Текст Cybersecurity Worker (ближе к нику) ===== */
.cybersecurity {
    font-size: 14px;
    color: #bbb;
    margin-top: -5px; /* Подтягиваем ближе к нику */
}

/* ===== Печатающая строка ===== */
.typing-text {
    font-size: 14px;
    color: #ddd;
    height: 20px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid white;
    display: inline-block;
    padding: 5px;
}

/* ===== Кнопки с логотипами (одинаковый размер и выравнивание) ===== */
.links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease-in-out;
}

.links a img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

/* ===== Эффект при наведении ===== */
.links a:hover {
    transform: scale(1.1);
}

/* ===== Кнопка полного выключения звука ===== */
.mute-control {
    position: absolute;
    top: 20px;
    right: 20px;
}

#mute-button {
    background: none;
    border: none;
    cursor: pointer;
}

#mute-button img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* ===== Счетчик просмотров (под карточкой, теперь ровно по центру) ===== */
.view-counter {
    margin-top: 15px; /* Отступ от карточки */
    font-size: 14px;
    color: #aaa;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== 📱 АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ===== */
@media screen and (max-width: 768px) {
    .card {
        width: 250px; /* Уменьшаем размер карточки */
        padding: 15px;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .card h1 {
        font-size: 20px;
    }

    .cybersecurity {
        font-size: 12px;
    }

    .links a {
        width: 35px;
        height: 35px;
    }

    .links a img {
        width: 35px;
        height: 35px;
    }

    .mute-control {
        top: 15px;
        right: 15px;
    }

    #mute-button img {
        width: 25px;
        height: 25px;
    }
}


/* Оптимизация видео для мобильных устройств */
@media screen and (max-width: 768px) {
    #background-video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        position: fixed;
        top: 0;
        left: 0;
    }

    /* Карточка становится меньше */
    .card {
        width: 90%;
        max-width: 250px;
        padding: 15px;
    }

    .avatar {
        width: 90px;
        height: 90px;
    }

    .links a {
        width: 30px;
        height: 30px;
    }

    .links a img {
        width: 30px;
        height: 30px;
    }

    .mute-control {
        top: 10px;
        right: 10px;
    }

    #mute-button img {
        width: 20px;
        height: 20px;
    }
}
