.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-card {
    flex: 1 1 calc(33% - 40px);
    max-width: 400px;
    text-align: center;
    padding: 20px;
    background-color: #f2f2f2;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    /* Initially hidden */
    transform: translateY(20px) rotate(0deg);
    /* Initial position for slide-up and rotation */
    animation: fadeInUpRotate 1s ease forwards;
    /* Combined fade, slide, and rotate animation */
}

.service-card:hover {
    box-shadow: 3px gray;
}

/* Combined Animation Keyframes: fadeInUpRotate */
@keyframes fadeInUpRotate {
    0% {
        opacity: 0;
        transform: translateY(20px) rotate(0deg);
        /* Start at 0 degrees */
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(360deg);
        /* Rotate a full circle (360 degrees) */
    }
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    .service-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}





