﻿.about__skills-content {
    grid-template-columns: repeat(8, max-content);
    justify-content: center;
    align-items: center;
    gap: 1.5rem 1.5rem;
}

.icon {
    position: relative;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    transition-timing-function: cubic-bezier (0.68, -0.55, 0.265, 1.55);
}

.tooltip {
    color: var(--title-color);
    font-weight: var(--font-medium);
    position: absolute;
    top: 0;
    font-size: 0.8rem;
    background: var(--first-color);
    padding: 5px 8px;
    border-radius: 5px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    transition-timing-function: cubic-bezier (0.68, -0.55, 0.265, 1.55);
    white-space: nowrap;
}

    .tooltip::before {
        position: absolute;
        content: "";
        height: 8px;
        width: 8px;
        background: var(--first-color);
        bottom: -3px;
        left: 50%;
        transform: translate(-50%) rotate(45deg);
        transition: all 0.3s;
        transition-timing-function: cubic-bezier (0.68, -0.55, 0.265, 1.55);
    }

.icon:hover .tooltip {
    top: -40px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    white-space: nowrap;
}

.icon:hover span,
.icon:hover .tooltip {
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (min-width: 320px) and (max-width: 448px) {

    .about__skills-content {
        grid-template-columns: repeat(4, max-content);
    }
}

@media screen and (min-width: 448px) and (max-width: 576px) {

    .about__skills-content {
        grid-template-columns: repeat(5, max-content);
    }
}

/* For medium devices */
@media screen and (min-width: 576px) and (max-width: 720px) {
    .about__skills-content {
        grid-template-columns: repeat(6, max-content);
    }
}
