/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #004080;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #66b3ff;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 64, 128, 0.8), rgba(0, 64, 128, 0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23e6f3ff" width="1200" height="600"/></svg>'); /* Subtle blue gradient fallback */
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: #ffffff;
    color: #004080;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e6f3ff;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: white;
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: #f0f8ff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-item h3 {
    color: #004080;
    margin-bottom: 1rem;
}

/* About Section - Enhanced Centering */
.about {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
    justify-content: center; /* NEW: Centers the entire grid horizontally */
    max-width: 100%; /* Ensures it doesn't overflow */
}

.about-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto; /* Centers image within its grid cell */
    justify-self: center; /* NEW: Centers image in grid */
}

.about-text {
    text-align: left; /* Left-align for readability on desktop */
    justify-self: start; /* Keeps text aligned to the left of its cell */
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: white;
}

.contact h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.contact p {
    text-align: center;
    margin-bottom: 2rem;
}

form {
    max-width: 600px;
    margin: 0 auto 2rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

textarea {
    height: 120px;
    resize: vertical;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #004080;
    text-decoration: none;
}

/* Footer */
footer {
    background-color: #004080;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

/* Responsive Design - Mobile Fixes */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav li {
        margin: 0 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr; /* Stacks vertically on mobile */
        gap: 1.5rem;
        text-align: center; /* Centers everything when stacked */
        justify-content: center;
    }

    .about-text {
        text-align: center; /* Centers text on mobile */
        order: 2; /* Text after image on mobile */
    }

    .about-image {
        order: 1; /* Image first on mobile */
        max-width: 250px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}