div2 {
    font-size: x-large;
    display: flex;
    justify-content: center;
    margin-bottom: 3%;
}

.skills {
    width: 100%;
    height: auto;
    padding: 4rem 0;
    margin-top: 5rem;
    /* pushes Skills down */
    padding-bottom: 10rem;
}


.skills-grid {
    justify-content: center;
    justify-items: center;
    align-items: center;
    background-color: black;
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
    margin: auto;
    padding: 3rem 2rem;
    max-width: 1000px;
    border-radius: 10px;
    position: relative;
}

.skills-grid img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 50%;
    padding: 0.5rem;
    background-color: #0a0a0a;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px #0ef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-grid img:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px #0ef;
}



/* Gradient Box Code */

@property --deg {
    syntax: '<angle>';
    inherits: true;
    initial-value: 0deg;
}

.skills-grid::before,
.skills-grid::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background: conic-gradient(from var(--deg) at center,
            #00c3ff,
            #4d0199,
            #6300c3,
            #00c3ff);
    border-radius: inherit;
    z-index: -2;
    padding: 2px;
    animation: autoRotate 2s linear infinite;
}

@keyframes autoRotate {
    to {
        --deg: 360deg;
    }
}


.skills-grid::after {
    filter: blur(10px);
}

@media screen and (max-width: 768px) {
    .skills {
        padding: 50px 5%;
        margin-top: 2rem;
        padding-bottom: 5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 2rem 1rem;
        margin: 0 auto;
        justify-content: center;
        max-width: 100%;
    }

    .skills-grid img {
        width: 60px;
        height: 60px;
    }
}