/* Основные стили для десктопа */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 35px;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.19),
        0 6px 6px rgba(0, 0, 0, 0.23);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 480px;
    margin: 50px auto;
    transition: transform 0.4s ease;
}


.contact-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Стили кнопок для ПК */
.contact-card a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 14px;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* 3D-эффект при наведении */
.contact-card a:hover {
    transform: 
        translateY(-8px)
        translateZ(20px)
        rotateX(5deg);
    box-shadow: 
        0 15px 25px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(255, 255, 255, 0.1) inset;
    filter: brightness(1.15);
}

/* Анимированный градиентный фон */
.contact-card a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.15) 50%, 
        transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: all 0.6s ease;
    transform: translateX(-100%);
}

.contact-card a:hover::before {
    opacity: 1;
    transform: translateX(100%);
}

/* Анимация иконок */
.contact-card a i {
    font-size: 28px;
    width: 35px;
    text-align: center;
    transition: all 0.5s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    flex-shrink: center;
}

.contact-card a:hover i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.text_bio {
    margin-left: 22px;
    font-weight: 100;
    font-size: 18px;
    letter-spacing: 0.3px;
    transition: transform 0.4s ease;
    font-family: 'Days_Sans_Black', Arial, sans-serif;
}

.contact-card a:hover .text_bio {
    transform: translateX(8px);
}

/* Telegram стили */
.telegram {
    background: 
        linear-gradient(115deg, 
        #0088cc 0%, 
        #00a8ff 45%, 
        #0088cc 100%);
    border: 1px solid rgba(0, 200, 255, 0.4);
}

.telegram:hover {
    background: 
        linear-gradient(115deg, 
        #0077b3 0%, 
        #0099e6 45%, 
        #0077b3 100%);
}

/* Discord стили */
.discord {
    background: 
        linear-gradient(115deg, 
        #5865F2 0%, 
        #7289da 45%, 
        #5865F2 100%);
    border: 1px solid rgba(120, 150, 255, 0.4);
}

.discord:hover {
    background: 
        linear-gradient(115deg, 
        #4752c4 0%, 
        #5d6fdd 45%, 
        #4752c4 100%);
}

/* GitHub стили */
.github {
    background: 
        linear-gradient(115deg, 
        #333333 0%, 
        #555555 45%, 
        #333333 100%);
    border: 1px solid rgba(150, 150, 150, 0.4);
}

.github:hover {
    background: 
        linear-gradient(115deg, 
        #222222 0%, 
        #444444 45%, 
        #222222 100%);
}

/* Стили иконок */
.tg-contact-icon {
    color: #b3e5ff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.ds-contact-icon {
    color: #d0d5ff;
    text-shadow: 0 0 10px rgba(120, 150, 255, 0.5);
}

.git-contact-icon {
    color: #f5f5f5;
    text-shadow: 0 0 10px rgba(200, 200, 200, 0.5);
}

/* Дополнительные эффекты */
.contact-card a:active {
    transform: scale(0.97) translateY(-5px);
    filter: brightness(0.95);
}

.contact-bt {
    color: white;
    font-weight: 200;
}

@media (max-width: 600px) {
    .card {
        padding: 20px 15px;
        border-radius: 14px;
        margin: 20px;
    }
    
    .contact-card {
        gap: 12px;
    }
    
    .contact-card a {
        padding: 14px 16px;
        border-radius: 12px;
    }
    
    .contact-card a i {
        font-size: 22px;
        width: 30px;
    }
    
    .text_bio {
        font-size: 16px;
        margin-left: 12px;
    }
    
    /* Уменьшаем эффекты для мобилок */
    .contact-card a:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }
}

/* Дополнительные улучшения */
.contact-card a:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}