/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0a2540; /* Deep Blue/Charcoal */
    --secondary-color: #f8f9fa; /* Light Gray Background */
    --accent-color: #00aacc; /* Vibrant Teal */
    --text-color: #333;
    --light-text-color: #f8f9fa;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --base-font-size: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--base-font-size);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--primary-color);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: #007a99; /* Darker accent */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Utility Classes --- */
.text-center {
    text-align: center;
}

.large-text {
    font-size: 1.1rem;
    color: #555;
}

.bg-light {
    background-color: var(--secondary-color);
}
.bg-dark {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}
.bg-dark h2, .bg-dark h3 {
    color: var(--light-text-color);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #007a99; /* Darker accent */
    color: #fff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* --- Header / Navigation --- */
#main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid transparent; /* Placeholder for scrolled state */
}

#main-header.scrolled {
     background-color: rgba(255, 255, 255, 0.95);
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
     border-bottom: 1px solid #eee;
}

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

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

.main-nav .nav-links {
    display: flex;
}

.main-nav .nav-links li {
    margin-left: 25px;
}

.main-nav .nav-links a {
    color: var(--primary-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}
.main-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.main-nav .nav-links a:hover::after,
.main-nav .nav-links a.active::after { /* Add .active class with JS if needed */
    width: 100%;
}

.nav-cta {
    margin-left: 20px;
    padding: 10px 20px; /* Slightly smaller than default btn */
}

/* Mobile Menu Styles */
#menu-toggle {
    display: none; /* Hidden by default on larger screens */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-nav {
    display: none; /* Hidden by default */
    background-color: #fff;
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    width: 100%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;
}
.mobile-nav.active {
    display: block; /* Show when active class is added */
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
}

.mobile-nav-links li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
}

.mobile-nav-links a {
    color: var(--primary-color);
    font-weight: 500;
    display: block;
    padding: 10px 0;
}
.mobile-nav-links a:hover {
    color: var(--accent-color);
}

.mobile-cta-btn {
    margin-top: 10px;
    width: 80%;
    margin: 0 auto;
}


/* --- Hero Section --- */
#hero {
    background: url('/images/bg1.webp') no-repeat center center/cover; /* Replace with actual image */
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--light-text-color);
    padding: 100px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 37, 64, 0.6); /* Dark blue overlay */
    z-index: 1;
}

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

#hero h1 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 3.2rem; /* Larger hero heading */
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.trusted-logos {
    margin-top: 3rem;
}
.trusted-logos span {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}
.trusted-logos i {
    margin: 0 15px;
    opacity: 0.8;
}

/* --- General Section Styling --- */
section {
    padding: 80px 0;
}

/* --- Intro Section --- */
#intro p.large-text {
    max-width: 800px;
    margin: 0 auto;
}

#intro {
    background: url('/images/bg2.webp') no-repeat center center/cover; /* Replace with actual image */
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--light-text-color);
}

#intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255 255 255 / 86%);
    z-index: 0;
}


#intro > * {
    position: relative;
    z-index: 1;
}

#services > div > h2 {
    color: #fff;
}

#services {
    background: url('/images/bg3.webp') no-repeat center center/cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(6 23 40 / 80%);
    z-index: 0;
}

#services > * {
    position: relative;
    z-index: 1;
}

/* Why us */
#why-us > div > h2 {
    color: var(--primary-color);
}

#why-us {
    background: url('/images/bg4.webp') no-repeat center center/cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#why-us::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255 255 255 / 90%);
    z-index: 0;
}

#why-us > * {
    position: relative;
    z-index: 1;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card i {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 0.8rem;
}

/* --- Why Us Section --- */
.why-us-grid {
     display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 3rem;
    text-align: center;
}

.benefit-item i {
    color: var(--accent-color);
    margin-bottom: 1rem;
    background-color: #e6f7ff; /* Light accent background */
    border-radius: 50%;
    padding: 15px;
    width: 60px; /* Fixed width/height for circle */
    height: 60px;
    display: inline-flex; /* Use flex to center icon inside */
    align-items: center;
    justify-content: center;
}

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

/* --- Portfolio Section --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.85), rgba(10, 37, 64, 0)); /* Gradient overlay */
    color: #fff;
    padding: 40px 20px 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    margin-bottom: 0.2rem;
    color: #fff;
    font-size: 1.3rem;
}
.portfolio-overlay p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* --- Testimonials Section --- */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.testimonial {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
}

.testimonial blockquote {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 25px;
}
.testimonial blockquote::before {
    content: '\201C'; /* Left double quotation mark */
    font-family: Georgia, serif;
    font-size: 3rem;
    color: var(--accent-color);
    position: absolute;
    left: -10px;
    top: -10px;
    opacity: 0.8;
}

.testimonial .attribution {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1rem;
    margin-bottom: 0;
}

/* --- Final CTA Section --- */
#cta {
    padding: 60px 0;
}
#cta h2 {
    margin-bottom: 1rem;
}
#cta p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* --- Contact Section --- */
.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Form takes more space */
    gap: 50px;
    margin-top: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group textarea {
    resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 170, 204, 0.2);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}
.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
    width: 20px; /* Align icons */
    text-align: center;
}
.contact-info a {
    color: var(--text-color);
}
.contact-info a:hover {
    color: var(--accent-color);
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 0;
    margin-top: 50px; /* Add some space before footer */
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Wrap on smaller screens */
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 15px;
}
.footer-links a:hover {
    color: #fff;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    #hero h1 { font-size: 2.8rem; }

    .contact-content {
        grid-template-columns: 1fr; /* Stack form and info */
        gap: 40px;
    }
    .contact-info {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    body { font-size: calc(var(--base-font-size) * 0.95); }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    #hero h1 { font-size: 2.4rem; }
    #hero p { font-size: 1.1rem; }

    .container { padding: 0 15px; }
    section { padding: 60px 0; }

    /* Mobile Navigation */
    .main-nav { display: none; } /* Hide desktop nav links container */
    .nav-cta { display: none; } /* Hide desktop CTA */
    #menu-toggle { display: block; } /* Show hamburger */

    .services-grid,
    .why-us-grid,
    .portfolio-grid,
    .testimonials-container {
        grid-template-columns: 1fr; /* Stack grids */
        gap: 25px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        margin-top: 10px;
    }
    .footer-links a {
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
     h1 { font-size: 2rem; }
     h2 { font-size: 1.6rem; }
    #hero h1 { font-size: 2.1rem; }
    #hero p { font-size: 1rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem;}
    .btn-large { padding: 12px 25px; font-size: 1rem;}
    .logo { font-size: 1.5rem; }
    .trusted-logos i { margin: 0 10px; font-size: 1.8em; } /* Adjusted icon size */
}