h1 {
    margin-top: 120px;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3.5rem;
    color: #db1f1f;
}

.services-container {
    margin-top: 120px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-box {
    background-color: #222;
    border: 2px solid #db1f1f;
    border-radius: 15px;
    padding: 2rem;
    width: 300px;
    box-shadow: 0 4px 15px rgba(219, 31, 31, 0.5);
    opacity: 0; /* Hidden by default */
    transform: translateY(40px); /* Start with lower position */
    transition: opacity 0.5s ease, transform 0.5s ease, transform 0.3s ease-in-out; /* Smooth transition */
}

.service-box.visible {
    opacity: 1; /* Show when visible */
    transform: translateY(0); /* Reset to original position */
}

/* Add zoom effect on hover */
.service-box:hover {
    transform: scale(1.05); /* Slight zoom-in on hover */
}

.service-box h2 {
    color: #db1f1f;
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.service-box p {
    font-size: 1.6rem;
    color: #e2e2e2;
}

/* Media query for responsiveness */
@media (max-width: 768px) {
    .service-box {
        width: 100%; /* Full width on small screens */
    }
}