.services {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 20px;
    flex-wrap: wrap;
    overflow-x: hidden;
}

.service {
    background-color: rgba(0, 0, 0);
    border-radius: 8px;
    box-shadow: 0 52px 42px rgba(0, 0, 0, 0.4);
    text-align: center;
    padding: 20px;
    width: 300px;
    transition: 1s;
    opacity: 0;
}


.service i{
    color: rgb(177, 177, 177);
}

.service h3 {
    color: rgb(255, 255, 255);
    font-size: 1.2rem;
    margin-top: 15px;
}

.service p {
    color: rgb(255, 255, 255);
    font-size: 1rem;
    margin-top: 10px;
}

.service:nth-child(1) {
    transform: translateX(-50%);
}
.service:nth-child(2) {
    width: 350px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: scale(0.7);
}
.service:nth-child(3) {
    transform: translateX(50%);
}

/* Responsive Styles */
@media (max-width: 900px) {
    .service {
        width: 45%;
    }
    .service:nth-child(2) {
        width: 50%; /* Make the middle container relatively larger */
        order: 3;
    }
}

@media (max-width: 600px) {
    .service {
        width: 100%;
    }
    .service:nth-child(2) {
        width: 100%; /* Full width on small screens */
        order: initial;
    }
}