.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.icon {
    text-decoration: none;
    width: 2rem;
    height: 2rem;
    border-radius: 5px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
        rgba(0, 0, 0, 0.5) 0px 4px 6px -2px;
}

.icon>i {
    color: #2dd4bf;
    font-size: 1.5rem;
    transition: all 0.2s;
}

.icon:hover>i {
    scale: 1.2;
    color: #f1f1f1;
}

.icon::before {
    background: var(--color);
    content: '';
    position: absolute;
    width: 130%;
    height: 130%;
    left: -110%;
    top: 80%;
    transform: rotate(45deg);
}

.icon:hover::before {
    animation: slide 0.7s forwards;
}

@keyframes slide {
    50% {
        left: 10%;
        top: -40%;
    }

    100% {
        left: -15%;
        top: -15%;
    }
}

.icon:has(.fa-instagram) {
    --color: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
}

.icon:has(.fa-linkedin-in) {
    --color: #0077b5;
}

.icon:has(.fa-youtube) {
    --color: #ff0000;
}

.icon:has(.fa-x-twitter) {
    --color: #000;
}

.icon:has(.fa-github) {
    --color: #333;
}