body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
}

header {
    background-color: #333;
    color: #fff;
    padding: 5px;
    text-align: center;
}

header .logo {
    width: 100px;
    margin-bottom: 1px;
}

header nav ul {
    list-style: none;
    padding: 2;
    display: flex;
    justify-content: center;
    gap: 50px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

h1 {
    margin-top: 1px;
    font-size: 36px;
}

.services-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 boxes in a row */
    gap: 20px;
    padding: 40px 20px;
    max-width: 100%; /* Full width to use the entire horizontal space */
    margin: 0 auto;
}

.service-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 30px; /* Increased padding for a larger box */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 600px; /* Set a fixed height for the boxes */
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-image {
    height: 500px; /* Adjusted height for the image */
    background-position: center;
    background-size: cover;
    position: relative;
}

/* Overlay for the background image */
.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
    z-index: 1;
}

.service-content {
    position: relative;
    padding: 20px;
    color: #333;
    z-index: 2; /* Ensure text stays on top of the overlay */
    text-align: center;
    flex-grow: 1; /* Allow the content to grow and fill available space */
}

.service-content h3 {
    font-size: 22px;
    margin: 0 0 10px;
}

.service-content p {
    font-size: 18px;
    line-height: 1.5;
    color: #000; /* Lighter text for better contrast */
    margin-bottom: 20px; /* Add space before the button */
}

.service-button {
    background-color: #007bff;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    font-size: 16px;
}

.service-button:hover {
    background-color: #0056b3;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .services-section {
        grid-template-columns: 1fr; /* 1 box in a row on mobile */
    }

    header nav ul {
        padding: 0.1px;
    }
