body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #007bff;
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: #0056b3 3px solid;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
    background-color: #333;
    margin: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: inline-block;
    transition: background-color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    background-color: #007bff;
}

.container {
    width: 80%;
    margin: 20px auto;
    overflow: hidden;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#home h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: calc(33.333% - 40px); /* Adjust for gap */
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.service-item img {
    max-width: 100px; /* Adjust as needed */
    height: auto;
    margin-bottom: 15px;
    border-radius: 4px;
}

.service-item h3 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 0.9rem;
    color: #666;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    margin-top: 30px; /* Changed from fixed to allow scrolling */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .service-item {
        width: calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    nav ul li a {
        padding: 1rem;
    }
    .container {
        width: 95%;
    }
    .service-item {
        width: calc(100% - 40px);
    }
    header h1 {
        font-size: 2rem;
    }
}
