/* Basic Reset & Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Variables */
:root {
    --primary-color: #0a2e5c; /* Deep Blue */
    --secondary-color: #f4f7fa; /* Light Gray */
    --accent-color: #007bff; /* Accent Blue for links/buttons */
    --text-color: #333333;
    --light-text-color: #ffffff;
    --border-color: #e0e0e0;
}

/* General Styles */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent bottom space */
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Navigation */
header {
    background-color: var(--light-text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after { /* Add .active class via JS later if needed */
    width: 100%;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(10, 46, 92, 0.8), rgba(10, 46, 92, 0.8)), url('../images/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--light-text-color);
    text-align: center;
    padding: 150px 20px;
    position: relative;
}

.hero h1 {
    color: var(--light-text-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #0056b3; /* Darker accent */
    color: var(--light-text-color);
    transform: translateY(-2px);
}

/* Content Section Wrapper */
.content-section {
    padding: 60px 20px; /* Standard padding */
    max-width: 1200px;
    margin: 0 auto;
}

.content-section.bg-secondary {
    background-color: var(--secondary-color);
}

/* Section Title (within content sections) */
.section-title {
    text-align: center;
    margin-bottom: 40px; /* Space between title and content below */
}

.section-title h1 {
    margin-bottom: 0.5rem;
}

.section-title p {
    color: #555;
    font-size: 1.1rem;
}


/* Services Overview Section (Home Page) */
.services-overview {
    background-color: var(--secondary-color);
    text-align: center;
}

.services-overview h2 {
    margin-bottom: 2rem;
}

.service-summary {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 2rem;
}

.service-summary p {
    background-color: var(--light-text-color);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 0.95rem;
}

.learn-more-button {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-color);
    padding: 10px 20px;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.learn-more-button:hover {
    background-color: var(--accent-color);
    color: var(--light-text-color);
}

/* Service Details Section */
.service-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px;
    max-width: 1200px; /* Ensure content aligns */
    margin: 0 auto; /* Center grid if needed */
}

.service-item {
    background-color: var(--light-text-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.service-item h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-item p {
    color: #555; /* Slightly lighter text for description */
    font-size: 0.95rem;
}

/* About Section Specific Styles */
.about-content { /* This is now the main section wrapper for About */
    max-width: 900px; /* Slightly narrower content for readability */
}

.about-section { /* Individual parts within About */
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.about-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.about-section p {
    color: #555;
    text-align: justify; /* Justify text for mission/team */
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.value-item {
    background-color: var(--secondary-color); /* Light background for value items */
    padding: 25px;
    border-radius: 8px;
}

.value-item .value-icon {
    font-size: 2.5rem; /* Make icons larger */
    display: block;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.value-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.value-item p {
    font-size: 0.9rem;
    text-align: center; /* Center text within value item */
}

.team-section p {
    text-align: center; /* Center team description */
}

/* Contact Form Section Styles */
.contact-form-section {
    max-width: 700px; /* Limit form width */
    margin-left: auto;
    margin-right: auto;
    background-color: var(--light-text-color); /* Keep white background for form itself */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"], /* Added phone type */
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus, /* Added phone type */
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resize */
}

.submit-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%; /* Make button full width */
}

.submit-button:hover {
    background-color: #0056b3; /* Darker accent */
    transform: translateY(-2px);
}

#form-status {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

#form-status.success {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green */
    border: 1px solid #c3e6cb;
}

#form-status.error {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red */
    border: 1px solid #f5c6cb;
}


/* Footer */
footer {
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    color: var(--light-text-color);
    text-align: center;
    padding: 30px;
    margin-top: 40px; /* Add some space before footer */
}

footer p {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 15px;
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
        text-align: center; /* Center nav items on mobile */
    }

    nav ul li a {
        display: block; /* Make links take full width */
        padding: 10px;
    }

    .hero {
        padding: 80px 20px;
    }

    .service-summary {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .cta-button, .learn-more-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
