/* ══ SKILLS: Teal, spreadsheet table ══ */

.skills-section {
    background: var(--teal);
    padding: 0 0 28px;
    position: relative;
    border-bottom: 3px solid var(--black);
    overflow: hidden;
}

/* Skills section label: centered */
.skills-section .section-label {
    color: var(--black);
    border-left-color: var(--black);
    display: block;
    text-align: center;
    border-left: none;
    padding-left: 0;
    margin-bottom: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    line-height: 1;
}

.skills-inner {
    padding: 22px 6% 0;
    position: relative;
    z-index: 1;
}

.skills-label-col { display: none; }
.skills-section-title { display: none; }

.skills-body { width: 100%; }

/* ── Table ── */
.skills-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid var(--black);
    font-family: var(--f-body);
}

.skills-table thead tr { background: var(--black); }

.skills-table th {
    font-family: var(--f-cond);
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--teal);
    padding: 14px 24px;
    text-align: left;
    border-right: 2px solid rgba(255,255,255,0.08);
    width: 33.33%;
}

.skills-table th:last-child { border-right: none; }

.skills-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.12);
    transition: background 0.15s;
}

.skills-table tbody tr:last-child { border-bottom: none; }

.skills-table tbody tr:hover { background: rgba(0,0,0,0.05); }

.skills-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.035); }

.skills-table tbody tr:nth-child(even):hover { background: rgba(0,0,0,0.08); }

.skills-table td {
    padding: 12px 24px;
    border-right: 1px solid rgba(0,0,0,0.12);
    vertical-align: middle;
    width: 33.33%;
}

.skills-table td:last-child { border-right: none; }

.skill-tag {
    font-family: var(--f-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    display: inline-block;
    white-space: nowrap;
    padding: 3px 0;
    position: relative;
    transition: letter-spacing 0.2s;
    cursor: default;
}

.skill-tag::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--black);
    transition: width 0.2s;
}

.skills-table tbody tr:hover .skill-tag::after { width: 100%; }
.skills-table tbody tr:hover .skill-tag { letter-spacing: 0.03em; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .skills-inner {
        padding: 18px 4% 0;
    }

    .skills-label-col { display: none; }

    .skills-body {
        width: 100%;
    }

    .skills-table,
    .skills-table thead,
    .skills-table tbody,
    .skills-table tr,
    .skills-table th,
    .skills-table td {
        display: block;
        width: 100%;
    }

    .skills-table {
        border: 2px solid var(--black);
        background: rgba(255,255,255,0.08);
    }

    .skills-table thead {
        display: block;
    }

    .skills-table thead tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .skills-table th {
        font-size: 0.8rem;
        padding: 10px 12px;
        text-align: center;
        border-right: 1px solid rgba(255,255,255,0.08);
    }

    .skills-table th:last-child {
        border-right: none;
    }

    .skills-table tbody {
        display: block;
    }

    .skills-table tbody tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        border: none;
        background: transparent;
    }

    .skills-table td {
        padding: 12px 10px;
        border-right: 1px solid rgba(0,0,0,0.12);
        border-bottom: 1px solid rgba(0,0,0,0.12);
        text-align: center;
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .skills-table td:last-child {
        border-right: none;
    }

    .skills-table tbody tr:last-child td {
        border-bottom: none;
    }

    .skill-tag {
        font-size: 0.95rem;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }
}
