/* ============================= */
/* Skills                        */
/* ============================= */

.skills-content {
    align-items: center;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 40px;
    row-gap: 40px;
    align-items: center;
    justify-items: center;
}

.skill-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.skill-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.skills-learning {
    position: relative;

    width: 360px;
    height: 360px;
    padding: 48px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;

    justify-self: center;
    box-sizing: border-box;
    text-align: center;
}

.skills-learning::before,
.skills-learning::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    transition: opacity 500ms ease-in-out;
}

.skills-learning::before {
    background-image: url("../assets/icons/ellipse-25-default.svg");
    opacity: 1;
}

.skills-learning::after {
    background-image: url("../assets/icons/ellipse-25-hover.svg");
    opacity: 0;
}

.skills-learning:hover::before {
    opacity: 0;
}

.skills-learning:hover::after {
    opacity: 1;
}

.skills-learning>* {
    position: relative;
    z-index: 1;
}

.skills-learning h3 {
    margin: 0;

    color: var(--color-secondary);
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
    font-size: 18px;
    line-height: 120%;
}

.learning-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.learning-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.learning-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.skills-learning p {
    margin: 0;

    color: var(--color-secondary);
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
    font-size: 18px;
    line-height: 120%;
}

.skills-contact-btn {
    display: none;
}

/* ============================= */
/* Skills Mobile                 */
/* ============================= */

@media (max-width: 1024px) {
    .skills-content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .skills-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 32px;
    }

    .skill-icon {
        width: 56px;
        height: 56px;
    }

    .skills-learning {
        width: 100%;
        height: auto;
        padding: 0;

        align-items: stretch;
        gap: 24px;
    }

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

    .learning-icons {
        position: relative;
        padding: 28px 32px;
    }

    .learning-icons::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;

        background-image: url("../assets/icons/ellipse-25-default.svg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .learning-item {
        position: relative;
        z-index: 1;
    }

    .skills-learning {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 16px;
        row-gap: 24px;
    }

    .skills-learning h3 {
        color: var(--color-primary);
        width: 100%;
        order: 1;
    }

    .skills-learning p {
        order: 2;
        flex: 1 1 0;
        text-align: left;
        font-size: 16px;
    }

    .learning-icons {
        order: 3;
        flex: 0 0 auto;

        width: 136px;
        height: 104px;
        padding: 0;
        box-sizing: border-box;

        gap: 16px;
    }

    .learning-icon {
        width: 40px;
        height: 40px;
    }

    .skills-contact-btn {
        width: fit-content;
        margin: 40px auto 0;

        display: flex;

        background-color: var(--color-primary);
        color: var(--color-background);
        font-size: 14px;
    }

    .skills-contact-btn:active {
        background-color: var(--color-secondary);
        color: var(--color-background);
    }
}


/* ============================= */
/* Skills Tablet Refinement      */
/* ============================= */

@media (min-width: 768px) and (max-width: 1024px) {
    .skills-content {
        max-width: 720px;
        margin: 0 auto;
        align-items: center;
        gap: 48px;
    }

    .skills-list {
        max-width: 440px;
        margin: 0 auto;
        justify-content: center;
        column-gap: 40px;
        row-gap: 32px;
    }

    .skills-learning {
        max-width: 640px;
        margin: 0 auto;

        justify-content: center;
        column-gap: 32px;
    }

    .learning-icons {
        flex: 0 0 150px;
    }

    .skills-learning h3 {
        font-size: 22px;
    }

    .skills-learning p {
        flex: 0 1 440px;
        text-align: center;
        font-size: 20px;
        line-height: 130%;
    }

    .skills-contact-btn {
        font-size: 18px;
    }

    .skill-icon {
        width: 72px;
        height: 72px;
    }

    .learning-icon {
        width: 48px;
        height: 48px;
    }
}