/* Skills section - Simple cards without bars */
#skills_body {
    display: grid;
    justify-content: center;
    background: transparent;
    color: var(--accent-text);
    padding: 28px 20px;
    padding-bottom: 80px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-primary);
    box-shadow: 0 5px 10px var(--shadow-primary);
}

#skills_body h2 {
    text-align: center;
    font-size: 2.4em;
    margin-bottom: 60px;
    color: var(--text-primary);
    font-weight: 700;
}

/* grid of skills */
.skills_grid_comp {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 8px;
    width: calc(96vw - 20px);
    align-items: start;
    justify-content: center;
}

/* make each category stack its header + skills vertically */
.skills_category {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    
    border-radius: 14px;
    padding: 16px 18px;
    background: #343741;
}

/* small tweak for category titles */
.category_title {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
    color: var(--accent-text);
    font-weight: 600;
}

/* single skill card */
.skill, .skill_other {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 5px 10px var(--shadow-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill_other {
    background: var(--bg-card);
    padding: 12px;
    box-shadow: none;
    max-width: 300px;
    width: calc(28vw - 20px);
    min-width: 180px;
}

.skill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-primary);
}

.skill_name, .skill_other_name {
    font-weight: 600;
    color: var(--accent-text);
    font-size: 1rem;
    text-align: center;
}

.skill_other_name {
    font-size: 0.9em;
    color: gray;
}

.skills_other_header {
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    color: gray;
    width: calc(86vw - 20px);
    font-weight: normal;
}

/* Other skills row - individual cards */
.skills_other_row {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 20px;
    width: calc(86vw - 20px);
    max-width: 1400px;
    justify-content: space-between;
    margin: auto;
}

/* responsive adjustments */
@media (max-width: 1200px) {
    .skills_grid_comp {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .skills_grid_comp {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        width: calc(92vw - 20px);
    }
}

@media (max-width: 480px) {
    .skills_grid_comp {
        grid-template-columns: 1fr;
        gap: 14px;
        width: calc(90vw - 20px);
    }
}
