/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background-color: #f7f7fc;
    color: #319be1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 6px 6px rgba(0, 0, 0, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 100px;
    border-radius: 50%;
}

.nav-title {
    flex-grow: 1;
    text-align: center;
}

.nav-title h1 {
    font-family: 'Georgia', serif;
    font-size:  40px;
    font-weight: bold;
    color: #007bff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    background-color: #0d62b7;
    padding: 10px 15px;
    border-radius: 5px;
    transition: color 0.3s, background-color 0.3s;
}

.nav-links a:hover {
    color: #e0e0e0;
    background-color: #0d62b7;
}

/* Hero Section */
.hero {
    background-color: #1476df;
    color: #ffffff;
    text-align: center;
    padding: 150px 20px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #ffffff;
    color: #007bff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: #e0e0e0;
}

/* About Us Section */
.about {
    padding: 60px 20px;
    text-align: center;
}

.about h2 {
    color: #007bff;
    margin-bottom: 20px;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.services h2 {
    color: #007bff;
    margin-bottom: 40px;
}

.service-card {
    background-color: #ffffff;
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
    width: calc(33% - 40px);
    vertical-align: top;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    color: #007bff;
    margin-bottom: 10px;
}

/* Contact Section */
.contact {
    padding: 60px 20px;
    text-align: center;
}

.contact h2 {
    color: #007bff;
    margin-bottom: 20px;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact label {
    display: block;
    margin-bottom: 5px;
}

.contact input, .contact textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact button {
    background-color: #007bff;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #007bff;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

footer p {
    margin: 0;
}

/* Back Image Styling */
.back img {
    max-height: 300px; /* Restrict the height to 50px */
    width: auto; /* Keep aspect ratio intact */
    display: block; /* Ensure proper layout flow */
    margin: 10px auto; /* Center the image with some margin */
    border-radius: 50%;
}

/* Responsive Adjustments */
@media only screen and (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .nav-links li {
        text-align: center;
        padding: 10px;
    }

    .logo img {
        width: 100px; /* Adjust logo size for smaller screens */
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .hero, .about, .services, .contact {
        padding: 20px; /* Add more padding on smaller screens */
    }

    #map {
        position: relative; /* Change to relative for mobile */
        width: 100%; /* Full width */
        height: 200px; /* Smaller height */
        bottom: 0;
        right: 0;
    }

    h1, h2, h3 {
        font-size: 1.5em; /* Reduce font size */
    }

    .cta-button, button {
        padding: 10px 20px; /* Larger touch targets */
    }

    input[type="text"], input[type="email"], textarea {
        width: 100%; /* Full-width inputs */
        box-sizing: border-box; /* Include padding and border in width */
    }
}
