.skills {
    overflow: hidden;
    img {
        width: 30px;
        aspect-ratio: 1;
        object-fit: contain;
    }

    ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        list-style: none;
        animation: slideIn 10s linear forwards infinite;

        li {
            position: relative;
            background-color: transparent;
            align-content: center;
            padding: 4px 10px;
            transition: transform 0.3s ease;

            .tooltip {
                position: absolute;
                bottom: 100%;
                left: 50%;
                transform: translateX(-50%);
                opacity: 0;
                visibility: hidden;
                background-color: #000;
                color: #fff;
                border: 1px solid #fff;
                border-radius: 4px;
                padding: 4px;
                font-size: 8px;
                white-space: nowrap;
                pointer-events: none;
                transition: opacity 0.3s ease;
            }

            &:hover {
                transform: scale(1.5);
                .tooltip {
                    opacity: 1;
                    visibility: visible;
                }
            }
        }
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(10%);
    }
    50% {
        transform: translateX(0);
    }
    75% {
        transform: translateX(-10%);
    }
    100% {
        transform: translateX(0);
    }
}