.skills-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;

    width: min(1400px, 96vw);
    margin-left: calc(50% - min(1400px, 96vw) / 2);
    margin-right: calc(50% - min(1400px, 96vw) / 2);

    position: relative;
}

.skills-showcase {
    flex: 1;
    min-width: 0;

    position: relative;
    padding-inline: 2.5rem;
}

.skills-showcase::before {
    content: "";
    position: absolute;
    top: 4%;
    bottom: 4%;
    width: 1px;
    background: var(--color-border);
}

.skills-showcase::before {
    left: 0;
}

.skills-showcase::after {
    right: 0;
}

.skills-info {
    width: 380px;
    flex-shrink: 0;
}

.skills-info .category-title {
    margin-bottom: 1rem;
}

.skills-intro {
    margin: 0 0 2rem;
    max-width: 65ch;
}

.skills-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.skill-group {
    display: flex;
    flex-direction: column;
}

.skill-group h3 {
    margin: 0 0 2rem;
    text-align: center;
    font-size: 1.35rem;
}

.skill-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.skill-group-grid .tech-row:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
}

.tech-row {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;

    padding: 2rem 1.75rem;

    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
}

.tech-row > span {
    width: 100%;

    text-align: center;

    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;

    color: var(--color-text);
}

.icons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 68px));
    justify-content: center;
    justify-items: center;
    gap: 1.1rem;
}

.icons i,
.icons img {
    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: .85rem;

    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-background);

    transition: transform .15s ease,
                border-color .15s ease;
}

.icons i {
    font-size: 2.6rem;
}

.icons img {
    object-fit: contain;
}

.extras-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: .5rem;
}

.extras {
    padding: 1.5rem 2rem;

    border: 1px solid var(--color-border);
    border-radius: 14px;

    background: var(--color-surface);
}

.extras h3 {
    margin: 0 0 1rem;
    text-align: center;
}

.extras ul {
    margin: 0;
    padding-left: 1.2rem;
}

.extras li {
    margin: .65rem 0;
}

.extras p {
    margin: 0;
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 1000px) {

    .skills-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 3rem;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .skills-showcase {
        padding-inline: 0;
    }

    .skills-showcase::before,
    .skills-showcase::after {
        display: none;
    }

    .skills-info {
        width: 100%;
    }

    .skills-columns {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

}

@media (max-width: 700px) {

    .skill-group-grid {
        grid-template-columns: 1fr;
    }

    .tech-row {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        padding: 1.5rem;
    }

    .extras {
        padding: 1.5rem;
    }

}