* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden; /* Ensure image does not overflow when scaled */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover transition for card */
}

.service-card:hover {
    transform: translateY(-10px); /* Moves the card up slightly when hovered */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Adds more shadow on hover */
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease; /* Smooth transition for image */
}

.service-card img:hover {
    transform: scale(1.1); /* Image pops by scaling up slightly */
}

.service-card h3 {
    margin: 15px 0;
    font-size: 1.5em;
}

.service-card p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

.service-card a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.service-card a:hover {
    text-decoration: underline;
}
