.rosa-footer-social {
    --particle-color: rgba(255, 255, 255, 0.6);
    position: relative;
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    perspective: 2000px;
    transform-style: preserve-3d;
    transition: all 0.4s ease;
}

.rosa-footer-social a {
    position: relative;
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transform-origin: center center -60px;
    transition: 
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease,
        filter 0.4s ease,
        opacity 0.3s ease,
        background 0.5s ease;
    cursor: pointer;
    background: linear-gradient(45deg, rgba(0,0,0,0.4), rgba(255,255,255,0.05));
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.15);
    overflow: hidden;
    filter: 
        drop-shadow(0 2px 4px var(--particle-color)) /* Уменьшен размытый тень */
        brightness(1.1);
    animation: 
        iconEntrance 0.6s ease-out backwards, 
        shimmer 2s infinite;
    will-change: transform, box-shadow, filter;
}

.rosa-footer-social a::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 16px;
    background: conic-gradient(
        from var(--angle),
        var(--gradient-colors),
        var(--gradient-colors)
    );
    filter: blur(10px);
    opacity: 0.6;
    animation: 
        hologram 4s linear infinite,
        gradientPan 20s linear infinite; /* Убраны лишние анимации */
    z-index: -1;
}

.rosa-footer-social a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(0,0,0,0.3));
    transform: translateZ(-40px);
    filter: blur(15px);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.rosa-footer-social a:hover {
    transform: 
        translateZ(80px) /* Уменьшена глубина */
        scale(1.2); /* Упрощенный масштаб */
    box-shadow: 
        0 35px 65px rgba(0,0,0,0.4),
        inset 0 0 25px rgba(255,255,255,0.2);
    filter: 
        drop-shadow(0 0 20px var(--particle-color))
        brightness(1.3) 
        contrast(1.1);
    animation: glow 1.5s infinite;
}

.rosa-footer-social a i {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    color: white;
    transition: 
        transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55),
        filter 0.8s ease,
        color 0.4s ease;
    text-shadow: 
        0 2px 8px rgba(0,0,0,0.2),
        0 0 15px rgba(255,255,255,0.2);
}

.rosa-footer-social a:hover i {
    transform: 
        scale(1.8) 
        rotateY(180deg) 
        translateZ(20px);
    color: rgba(255,255,255,0.9);
    filter: 
        drop-shadow(0 0 15px currentColor)
        brightness(1.5);
}

/* Индивидуальные цвета с 3D эффектами */
.rosa-footer-social a[aria-label="Instagram"] {
    --angle: 45deg;
    --gradient-colors: #833ab4 0%, #fd1d1d 33%, #fcb045 66%, #833ab4 100%;
}

.rosa-footer-social a[aria-label="Telegram"] {
    --angle: 90deg;
    --gradient-colors: #0088cc 0%, #00a8e8 50%, #00c3f3 100%;
}

.rosa-footer-social a[aria-label="WhatsApp"] {
    --angle: 135deg;
    --gradient-colors: #25d366 0%, #128c7e 100%;
}

.rosa-footer-social a[aria-label="YouTube"] {
    --angle: 180deg;
    --gradient-colors: #ff0000 0%, #cc0000 100%;
}

/* Анимации */
@keyframes hologram {
    0% { filter: hue-rotate(0deg) blur(8px); }
    100% { filter: hue-rotate(360deg) blur(8px); }
}

@keyframes ripple {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes gradientPan {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; filter: blur(15px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes iconEntrance {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(90deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes shimmer {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
    100% { filter: brightness(1); }
}

@keyframes glow {
    0% { box-shadow: 0 0 20px rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 40px rgba(255,255,255,0.6); }
    100% { box-shadow: 0 0 20px rgba(255,255,255,0.3); }
}

@keyframes iconPulse {
    50% { transform: scale(1.1); }
}

/* Адаптивные улучшения */
@media (max-width: 768px) {
    .rosa-footer-social {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .rosa-footer-social a {
        width: 65px;
        height: 65px;
        font-size: 1.8rem;
        animation: 
            iconEntrance 0.6s ease-out backwards, 
            mobilePulse 2s infinite ease-in-out;
    }

    .rosa-footer-social a::before {
        display: none; /* Отключаем эффекты для мобильных */
    }

    @keyframes mobilePulse {
        0%, 100% { transform: translateZ(20px); }
        50% { transform: translateZ(40px); }
    }
    
    .rosa-footer-social a:hover {
        transform: scale(1.15) !important;
    }
}

/* Эффект жидкого металла */
.rosa-footer-social a:hover::before {
    filter: 
        blur(15px)
        brightness(1.5)
        contrast(1.2);
    opacity: 0.9;
    mix-blend-mode: screen;
}

/* Динамическое освещение */
.rosa-footer-social a:hover::after {
    opacity: 1;
    background: radial-gradient(
        circle at var(--x-pos) var(--y-pos),
        rgba(255,255,255,0.4),
        transparent 70%
    );
}

/* CSS-переменные для анимации градиента */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}