/* CSS for the Skills Section */
@import url(style.css);

.skill-group-title {
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    font-size: 3rem;
    padding-bottom: 15px;
}

.skill-group-title::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--highlight);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 140px));
    gap: 20px;
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.skill-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    max-width: 140px;
    width: 140px;
    height: 140px;
    margin-left: auto;
    margin-right: auto;
}

.skill-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--highlight, #4CAF50);
}

.skill-box img {
    width: 65px;
    height: 65px;
    margin-bottom: 12px;
}

.skill-box p {
    margin: 0;
    font-weight: bold;
    color: #333;
    font-size: 1.60rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .skill-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .skill-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .skill-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}