@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #0d0d1e;
    color: #e0e0e0;
    overflow: hidden;
    position: relative;
}


.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 50px 50px,
                radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 25px 25px / 50px 50px;
    animation: stars 60s linear infinite;
    opacity: 0.8;
    z-index: -1;
}

@keyframes stars {
    from {
        background-position: 0 0, 25px 25px;
    }
    to {
        background-position: 1000px 1000px, 1025px 1025px;
    }
}


.card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.card {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 450px;
    max-width: 90%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar-container {
    width: 150px;
    height: 150px;
    margin-bottom: 25px;
    position: relative;
    border-radius: 90px;

    opacity: 0;
    transform: scale(0.8);
    animation: popIn 0.8s ease-out forwards;
    animation-delay: 1.2s;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


.avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nickname {
    font-size: 2.8em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);

    opacity: 0;
    transform: translateY(10px);
    animation: fadeInSlideUp 0.8s ease-out forwards;
    animation-delay: 1.5s;
}

.role {
    font-size: 1.1em;
    color: #b0b0b0;
    margin-bottom: 30px;
    font-weight: 600;

    opacity: 0;
    transform: translateY(10px);
    animation: fadeInSlideUp 0.8s ease-out forwards;
    animation-delay: 1.8s;
}

.role .highlight {
    color: #ff6b6b;
}

.about-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: #c0c0c0;
    margin-bottom: 35px;
    max-width: 400px;

    opacity: 0;
    transform: translateY(10px);
    animation: fadeInSlideUp 0.8s ease-out forwards;
    animation-delay: 2.1s;
}

.tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: #9bd0ff; /* Цвет для хэштегов */
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 0.85em;
    margin: 0 3px;
    display: inline-block;
    white-space: nowrap;
    margin-bottom: 5px;
}

.contact-button {
    background-color: transparent;
    border: 2px solid #ff6b6b;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(106, 5, 114, 0.4);

    opacity: 0;
    transform: translateY(10px);
    animation: fadeInSlideUp 0.8s ease-out forwards;
    animation-delay: 2.4s;
}

.contact-button:hover {
    background-color: #ff6b6b;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 25px rgba(106, 5, 114, 0.6);
}

@media (max-width: 600px) {
    .card {
        padding: 25px;
    }

    .nickname {
        font-size: 2em;
    }

    .role {
        font-size: 1em;
    }

    .about-text {
        font-size: 0.9em;
    }

    .contact-button {
        padding: 10px 25px;
        font-size: 1em;
    }
}