/* Анимация градиента фона */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Основной фон и центрирование окна */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a, #720c50, #480aac, #0d0d0d);
    background-size: 800% 800%;
    animation: gradientShift 20s ease infinite;
}

/* Окно визитки (glassmorphism) */
.modal {
    position: relative;
    padding: 80px 60px 60px 60px;
    max-width: 600px;
    width: 90%;
    border-radius: 25px;
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
    animation: appear 1s ease-in-out forwards;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

/* Анимация появления окна */
@keyframes appear {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Аватар */
.avatar {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.7);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

/* Заголовок и текст */
h1 {
    margin-bottom: 15px;
    font-size: 2.2em;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

p {
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1.1em;
    color: #f0f0f0; /* ярче для лучшей читаемости */
}

/* Социальные кнопки */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap; /* перенос кнопок на новую строку, если не помещаются */
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    padding: 12px 20px;
    text-decoration: none;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 15px;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

.social-icons a:hover {
    background: rgba(255,255,255,0.3);
    color: #000;
    border-color: rgba(255,255,255,0.9);
}

/* Адаптивность для смартфонов */
@media (max-width: 480px) {
    .modal {
        padding: 60px 20px 40px 20px;
    }
    .avatar {
        width: 90px;
        height: 90px;
        top: -45px;
    }
    h1 {
        font-size: 1.8em;
    }
    p {
        font-size: 1em;
    }
    .social-icons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .social-icons a {
        width: 80%;
        text-align: center;
        padding: 12px 0;
    }
}
