.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px; 
    max-width: 700px; 
    margin: 0 auto;
    margin-top: 2rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.img-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(
        0 0 20px rgba(0, 0, 0, .8)
    );
}

.img-1 {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.img-2 {
    position: relative;
    opacity: 0;
}

.img-container:hover .img-2 {
    transform: scale(1.1);
    opacity: 1;
}

.img-container:hover .img-1 {
    transform: scale(1.1);
    opacity: 0;
}

.tech-item span {
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 10px;
}

@media (max-width: 430px) {
    .img-container {
        width: 70px;
        height: 70px;
    }
}