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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

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

.section-padding {
    padding: 80px 0;
}

/* Color Palette: Navy Blue (#002D62) and Gold/Yellow (#FFC300) */
.bg-light { background-color: #f4f4f4; }
.bg-dark { background-color: #002D62; color: white; }

/* Header & Navigation */
header {
    background: #002D62; 
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.logo {
    font-size: 1.6em;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s;
    font-size: 0.95em;
}

nav ul li a:hover {
    background-color: #004F98;
}

.cta-button {
    background-color: #FFC300; 
    color: #002D62 !important;
    border-radius: 5px;
    font-weight: bold;
    padding: 8px 15px !important;
}

.cta-button:hover {
    background-color: #FFA500;
}

/* Hero Section */
.hero {
    /* Background image is set inline in HTML using the generated image content_id */
    height: 70vh;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

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

.hero-content {
    z-index: 2;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.4em;
    margin-bottom: 40px;
    font-weight: 300;
}

.primary-cta {
    display: inline-block;
    background-color: #FFC300;
    color: #002D62;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.primary-cta:hover {
    background-color: #FFA500;
    transform: translateY(-2px);
}

/* General Headings */
h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2em;
    color: #002D62;
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-card {
    padding: 40px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: white;
    transition: box-shadow 0.3s, transform 0.3s;
}

.service-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-card h3 {
    color: #002D62;
    margin-bottom: 15px;
    font-size: 1.4em;
}

/* Portfolio Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.project-placeholder {
    height: 300px;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    margin-bottom: 15px;
}

.project-item h4 {
    color: #002D62;
    margin: 10px 0 5px;
}
.project-item p {
    padding-bottom: 20px;
    font-size: 0.9em;
    color: #555;
}

.secondary-cta {
    display: block;
    width: 280px;
    margin: 30px auto 0;
    text-align: center;
    padding: 12px;
    border: 2px solid #002D62;
    color: #002D62;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.secondary-cta:hover {
    background-color: #002D62;
    color: white;
}

/* About Us Section */
#about {
    text-align: center;
}
#about p {
    max-width: 800px;
    margin: 0 auto 20px;
}
.small-text {
    font-size: 0.85em;
    color: #666;
    margin-top: 30px !important;
}

/* Testimonials Section */
.testimonial-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-left: 5px solid #FFC300;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-style: italic;
    text-align: center;
}
.testimonial-card p:last-child {
    font-weight: 600;
    margin-top: 15px;
    font-style: normal;
    color: #002D62;
}


/* Contact Section */
#contact {
    text-align: center;
}

#contact form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 30px auto;
}

#contact input, #contact textarea {
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    width: 100%;
}

#contact button[type="submit"] {
    cursor: pointer;
    border: none;
}

.contact-info {
    margin-top: 30px;
}
.contact-info p {
    margin: 5px 0;
    font-size: 1.1em;
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

footer p {
    margin: 5px 0;
}