﻿.modular-service {
    background: #e9eef3;
    padding: 80px 20px;
    font-family: 'Poppins', sans-serif;
}

.modular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

.modular-block {
    padding: 40px;
    border-radius: 20px; /* More rounded for modern look */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1); /* Deeper shadow for more depth */
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Prevents content overflow */
}

    .modular-block:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2); /* More pronounced shadow on hover */
    }

.image-block img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

    .image-block img:hover {
        transform: scale(1.05); /* Slight zoom effect on hover */
    }

.text-block h2 {
    font-size: 2.8rem; /* Slightly larger title for better impact */
    margin-bottom: 20px;
    color: #333333;
    font-weight: 600; /* Slightly bolder text */
    transition: color 0.3s ease;
}

.text-block p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555; /* Lighter gray text for better readability */
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

    .text-block h2:hover,
    .text-block p:hover {
        color: #0b1220; /* Darken text on hover for interactivity */
    }


/* Responsive */
@media (max-width: 768px) {
    .modular-grid {
        grid-template-columns: 1fr;
    }

    .modular-block {
        padding: 20px;
    }

    .text-block h2 {
        font-size: 2.2rem; /* Slightly larger heading on smaller screens */
    }

    .text-block p {
        font-size: 1.1rem;
    }

 
}
/* Responsive */
@media (max-width: 480px) {
    .text-block h2 {
        font-size: clamp(1.2rem, 6vw, 3.6rem);
    }

    .text-block p {
        font-size: clamp(0.95rem, 5vw, 3.6rem);
    }
}
