/* styles.css */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
}

header {
    background: #007BFF;
    color: #fff;
    padding: 20px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

#hero {
    background: url('img/finance.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 150px 20px;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Add a dark overlay for better text visibility */
}

#hero .container {
    position: relative;
    max-width: 1200px;
    max-height: 720px;
    margin: 0 auto;
}

.hero-text {
    background: rgba(0, 123, 255, 0.8); /* Semi-transparent blue background */
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
}

.hero-text h2,
.hero-text p {
    margin: 0 0 20px;
    color: #fff; /* White text color */
}

.hero-text h2 {
    font-size: 2.5em;
}

.hero-text p {
    font-size: 1.2em;
}

#hero .btn {
    background: #FF5733;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
}

section {
    padding: 60px 0;
    background: #f9f9f9;
}

section:nth-of-type(even) {
    background: #fff;
}

section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 40px;
    color: #007BFF;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 10px;
    padding: 20px;
    flex: 1 1 calc(25% - 40px);
    box-sizing: border-box;
}

.card h3 {
    font-size: 1.5em;
    color: #007BFF;
}

.card p {
    font-size: 1em;
    color: #666;
}

#benefits ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

#benefits ul li {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 10px;
    flex: 1 1 calc(45% - 40px);
    box-sizing: border-box;
    font-size: 1.2em;
}

#contact form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

#contact form label {
    margin-bottom: 10px;
    font-weight: 700;
}

#contact form input, #contact form textarea {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

#contact form button {
    padding: 15px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 700;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
}

/* Media Queries */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav ul li {
        margin-left: 0;
        margin-top: 10px;
    }

    .hero-text h2 {
        font-size: 2em;
    }

    .hero-text p {
        font-size: 1em;
    }

    .service-cards {
        flex-direction: column;
    }

    .card {
        flex: 1 1 100%;
        margin: 10px 0;
    }

    #benefits ul {
        flex-direction: column;
    }

    #benefits ul li {
        flex: 1 1 100%;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .hero-text h2 {
        font-size: 1.5em;
    }

    .hero-text p {
        font-size: 0.9em;
    }

    .hero-text {
        padding: 10px;
    }

    #hero .btn {
        padding: 10px 20px;
    }

    section h2 {
        font-size: 1.5em;
    }

    #contact form input, #contact form textarea {
        padding: 10px;
    }

    #contact form button {
        padding: 10px;
    }
}
