body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f7f8; /* Softer background color */
    line-height: 1.6;
}

header {
    background-color: #2c3e50; /* Darker, modern navy blue color */
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
}

nav a {
    color: #ecf0f1; /* Light grey for contrast */
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #e74c3c; /* Bright accent color for hover effect */
}

.hero {
    background-image: url('happy-agents.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay */
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.cta-button {
    background-color: #e74c3c;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 20px;  /* Smaller radius */
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: inline-block; /* Ensures proper sizing */
    line-height: normal; /* Ensures text is vertically centered */
    overflow: visible; /* Ensures it’s not clipped */
}

.cta-button:hover {
    background-color: #c0392b; /* Darken on hover */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.service-item {
    flex: 1 1 calc(33.333% - 40px);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px; /* Slightly larger radius */
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin-bottom: 15px; /* Slight increase for spacing */
}

.about, .contact {
    padding: 50px 0;
    background-color: #ecf0f1; /* Light contrasting section color */
}

.about .about-img img {
    width: 100%;
    max-width: 400px;
    border-radius: 5px;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.contact form input, .contact form textarea {
    width: 100%;
    padding: 12px; /* Increase padding for better feel */
    border: 1px solid #ccc;
    border-radius: 5px;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px 0;
}

.testimonial-list blockquote {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
    }

    .service-item {
        flex: 1 1 100%;
    }
}
