/* Social Icons in Header */
.social-icon {
    background: none !important;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    vertical-align: middle;
    line-height: 1;
    opacity: 0.8;
}

.social-icon:hover,
.social-icon:focus {
    transform: scale(1.15);
    background: none !important;
    outline: none !important;
    opacity: 1;
}

.social-icon:active {
    transform: scale(1);
    background: none !important;
    outline: none !important;
}

.social-icon .feather {
    width: 18px;
    height: 18px;
    display: block;
}

/* GitHub Icon */
.github-icon {
    color: var(--text-color);
}

.github-icon:hover,
.github-icon:focus {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

/* X Icon (Twitter) */
.x-icon {
    color: var(--text-color);
}

.x-icon svg {
    fill: currentColor;
}

.x-icon:hover,
.x-icon:focus {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

/* Telegram Icon */
.telegram-icon {
    color: #0088cc;
    position: relative;
    animation: telegram-breathe 3s ease-in-out infinite;
    filter: drop-shadow(0 0 2px rgba(0, 136, 204, 0.3));
}

.telegram-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.3) 0%, rgba(0, 136, 204, 0) 70%);
    z-index: -1;
    animation: telegram-glow 3s ease-in-out infinite;
}

.telegram-icon:hover,
.telegram-icon:focus {
    color: #00a8ff;
    animation: none;
    filter: drop-shadow(0 0 6px rgba(0, 168, 255, 0.6));
}

.telegram-icon:hover::before,
.telegram-icon:focus::before {
    animation: none;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.5) 0%, rgba(0, 168, 255, 0) 70%);
}

/* Анимация дыхания для Telegram - УСИЛЕННАЯ */
@keyframes telegram-breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
        filter: drop-shadow(0 0 3px rgba(0, 136, 204, 0.4));
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(0, 136, 204, 0.9));
    }
}

/* Анимация свечения круга - УСИЛЕННАЯ */
@keyframes telegram-glow {
    0%, 100% {
        width: 30px;
        height: 30px;
        opacity: 0.6;
    }
    50% {
        width: 50px;
        height: 50px;
        opacity: 1;
    }
}

/* Footer Social Icons */
.footer-social {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.7;
    border-bottom: none !important;
}

.footer-social a:hover {
    opacity: 1;
    transform: scale(1.15);
}

.footer-social .feather {
    width: 20px;
    height: 20px;
}

.footer-social .telegram-icon {
    animation: telegram-breathe 3s ease-in-out infinite;
}

