.skills-tabs {
    display: flex;
    width: 80vw;
    max-width: 1000px;
    min-height: 420px;
    margin: 2rem auto 5rem auto;
    overflow: hidden;
    background-color: #FFF;
    border-radius: 1.25rem;
    box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
}

/* Category columns */

.skills-tabs-nav {
    display: flex;
    flex: 0 0 260px;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background-color: #F5F6F8;
    border-right: 1px solid #E6E8EC;
}

.skills-tab {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 0.75rem;
    background: transparent;
    color: #3A3F47;
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.skills-tab::before {
    content: '';
    position: absolute;
    top: 25%;
    bottom: 25%;
    left: 0;
    width: 3px;
    border-radius: 3px;
    background-color: var(--hover-animation-title, #E4572E);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.skills-tab:hover {
    background-color: #E9EBEF;
}

.skills-tab.is-active {
    background-color: var(--header-footer, #171A21);
    color: #FFF;
}

.skills-tab.is-active::before {
    transform: scaleY(1);
}

.skills-tab:focus-visible {
    outline: 2px solid var(--hover-animation-title, #E4572E);
    outline-offset: -2px;
}

.skills-tab-count {
    flex: none;
    min-width: 1.6rem;
    padding: 0.1rem 0.45rem;
    border-radius: 1rem;
    background-color: #E2E5EA;
    color: #5A606B;
    font-size: 12px;
    text-align: center;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.skills-tab.is-active .skills-tab-count {
    background-color: var(--hover-animation-title, #E4572E);
    color: #FFF;
}

/* Skills zone */

.skills-tabs-panels {
    display: grid;
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
}

.skills-tabs-panel {
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
    pointer-events: none;
}

.skills-tabs-panel.is-active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.2s ease 0.12s, transform 0.2s ease 0.12s, visibility 0s linear 0.12s;
    pointer-events: auto;
}

.skills-tabs .category-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    align-items: start;
    align-content: start;
    gap: 0.5rem;
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.skills-tabs figure {
    width: auto;
    margin: 0;
    padding: 0.75rem 0.25rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.skills-tabs figure:hover {
    background-color: #F5F6F8;
    transform: translateY(-3px);
}

.skills-tabs figure img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.skills-tabs figcaption {
    font-size: 13px;
    line-height: 1.3;
}

.skills-tabs .skill-details {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0.5rem 0 0 0;
    padding: 0;
    background: none;
    box-shadow: none;
    justify-content: flex-start;
}

.skills-tabs .skill-details p {
    margin: 0 0 0 0.25rem;
    padding: 0.35rem 0.8rem;
    border-radius: 1rem;
    background-color: #F5F6F8;
    font-size: 13px;
}

/* Animation */
.skills-tabs-panel.is-active .category-items > * {
    animation: skills-item-in 0.4s ease both;
    animation-delay: calc(120ms + var(--i, 0) * 35ms);
}

@keyframes skills-item-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */

@media only screen and (max-width: 768px) {
    .skills-tabs {
        flex-direction: column;
        width: calc(100vw - 2rem);
        min-height: 0;
    }

    .skills-tabs-nav {
        flex: none;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid #E6E8EC;
        scrollbar-width: none;
    }

    .skills-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .skills-tab {
        flex: none;
        width: auto;
        white-space: nowrap;
        font-size: 14px;
    }

    .skills-tab::before {
        display: none;
    }

    .skills-tabs-panels {
        padding: 1rem;
    }

    .skills-tabs .category-items {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    }

    .skills-tabs figure img {
        width: 52px;
        height: 52px;
    }
}