/* --- CSS Variables --- */
:root {
    --primary-blue: #1e3d59;
    --accent-lime: #a8df65;
    --bg-light: #f5f7fa;
    --text-dark: #2e2e2e;
    --divider-gray: #d1d5db;
    --white: #ffffff;
    --font-header: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
}

/* --- Base & Typography --- */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-header);
    color: var(--primary-blue);
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--accent-lime); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-blue); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-section {
    padding: 6rem 0;
}

.page-section:nth-of-type(odd) {
    background-color: var(--bg-light);
}

.section-title {
    margin-bottom: 3rem;
}
.section-title.text-center {
    text-align: center;
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--divider-gray);
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.logo-icon {
    color: var(--accent-lime);
    font-size: 1.6rem;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.logo:hover .logo-icon {
    transform: rotate(360deg);
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
}
.main-nav a.active, .main-nav a:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--accent-lime);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-blue);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.mobile-nav.active {
    transform: translateX(0);
}
.mobile-nav ul { list-style: none; padding: 0; text-align: center; }
.mobile-nav li { margin-bottom: 1.5rem; }
.mobile-nav a { color: white; font-size: 2rem; font-family: var(--font-header); }
.mobile-nav .cta-button { border-color: white; color: white; }

/* --- CTA Buttons --- */
.cta-button {
    font-family: var(--font-header);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.cta-button.primary {
    background-color: var(--accent-lime);
    color: var(--primary-blue);
}
.cta-button.primary:hover {
    background-color: #97cc56;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.cta-button.secondary {
    background-color: var(--primary-blue);
    color: var(--white);
}
.cta-button.secondary:hover {
    background-color: #162f45;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.cta-button.primary-outline {
    border-color: var(--accent-lime);
    color: var(--primary-blue);
}
.cta-button.primary-outline:hover {
    background-color: var(--accent-lime);
}
.cta-button.large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}
.header-cta { display: block; }

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: var(--white);
    padding-top: 80px; /* Header offset */
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-background.jpg') no-repeat center center/cover;
    filter: brightness(0.6);
    z-index: -2;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(30, 61, 89, 0.8), rgba(30, 61, 89, 0.2));
    z-index: -1;
}
.hero-content {
    max-width: 800px;
}
.hero-headline {
    color: var(--white);
    opacity: 0;
    transform: translateY(30px);
}
.hero-subtext {
    font-size: 1.25rem;
    margin: 1.5rem 0 2.5rem;
    opacity: 0;
    transform: translateY(30px);
}
.hero-cta-group {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
}

/* --- Industries Served Section --- */
.grid-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.industry-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--divider-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.card-icon {
    font-size: 2.5rem;
    color: var(--accent-lime);
    margin-bottom: 1rem;
}

/* --- Why Us Section --- */
.split-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}
.split-grid-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.split-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.split-grid-image:hover img {
    transform: scale(1.05);
}
.split-grid-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.feature-icon {
    font-size: 1.5rem;
    color: var(--accent-lime);
    margin-top: 5px;
}
.feature-item h4 { margin-bottom: 0.25rem; }
.feature-item p { margin: 0; }

/* --- Capabilities Overview Section --- */
.grid-3-col-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.capability-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--divider-gray);
}

.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.capability-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.capability-card-content {
    padding: 1.5rem;
}

.capability-card-content h3 {
    margin-bottom: 0.5rem;
}


/* --- Process Timeline Section --- */
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.timeline-item {
    text-align: center;
    width: 20%;
    position: relative;
}
.timeline-step {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    border: 4px solid var(--bg-light);
}
.timeline-connector {
    flex-grow: 1;
    height: 4px;
    background: var(--divider-gray);
    align-self: center;
    margin: 0 -1rem;
    position: relative;
    top: -1.75rem;
}
.timeline-item:nth-of-type(odd) .timeline-step {
    background: var(--accent-lime);
    color: var(--primary-blue);
}

/* --- CTA Footer --- */
.cta-footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 5rem 0;
}
.cta-footer h2 {
    color: var(--white);
    font-size: 2.8rem;
}

/* --- Main Footer --- */
.main-footer-section {
    background: var(--text-dark);
    color: var(--bg-light);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-grid h4 {
    color: var(--white);
    font-family: var(--font-header);
    margin-bottom: 1rem;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a, .footer-contact a {
    color: var(--bg-light);
}
.footer-links a:hover, .footer-contact a:hover {
    color: var(--accent-lime);
}
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 1.5rem;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #4a4a4a;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--divider-gray);
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    .page-section { padding: 4rem 0; }

    .main-nav, .header-cta { display: none; }
    .menu-toggle { display: block; }
    
    .grid-4-col { grid-template-columns: 1fr 1fr; }
    .split-grid { grid-template-columns: 1fr; }
    .split-grid-image { grid-row: 1; }
    .grid-3-col-images { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .timeline-connector { display: none; }
    .timeline { flex-direction: column; gap: 2rem; }
    .timeline-item { width: 100%; }
}

@media (max-width: 576px) {
    .container { padding: 0 1rem; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .hero-cta-group { flex-direction: column; align-items: stretch; text-align: center; }
    .grid-4-col { grid-template-columns: 1fr; }
}

/* ---
--- About Page Styles
--- */

/* Page Header */
.page-header {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 6rem 2rem;
    margin-top: 80px; /* Header offset */
}
.page-header h1 {
    color: var(--white);
    font-size: 3rem;
}
.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 0;
    opacity: 0.9;
}

/* Alternate Split Grid Layout */
.split-grid.alt-layout .split-grid-image {
    order: -1; /* Flips the order */
}

/* History Timeline */
.history-timeline {
    background-color: var(--bg-light);
}

.history-timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 0;
    border-left: 3px solid var(--accent-lime);
    padding: 1rem 0 1rem 3rem;
}
.history-timeline-item {
    position: relative;
    padding-bottom: 3rem;
}
.history-timeline-item:last-child {
    padding-bottom: 0;
}

.history-timeline-item::before {
    content: '';
    position: absolute;
    left: -48px; /* (padding + border-width/2) */
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    border: 3px solid var(--white);
}

.history-timeline-year {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.history-timeline-content h4 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.history-timeline-content p {
    margin: 0;
}

/* Team Highlight Section */
.team-card {
    text-align: center;
}
.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--white);
}
.team-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}
.team-card span {
    color: var(--accent-lime);
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}
.team-card p {
    font-size: 0.95rem;
}

/* --- Additions to Responsive Design --- */
@media (max-width: 992px) {
    /* ... existing rules ... */
    .page-header {
        margin-top: 64px; /* Adjust for smaller header */
        padding: 5rem 1rem;
    }
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    /* ... existing rules ... */
    .split-grid.alt-layout .split-grid-image {
        order: 0; /* Revert order for mobile stacking */
    }
    
    .history-timeline-wrapper {
        padding-left: 2rem;
    }
    .history-timeline-item::before {
        left: -33px; /* Adjust for new padding */
    }
}

/* ---
--- Capabilities Page Styles
--- */

.capabilities-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.capability-card-large {
    background: var(--white);
    border: 1px solid var(--divider-gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.capability-card-large img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.capability-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.capability-visible {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.capability-visible h3 {
    margin: 0;
}

.capability-visible > div {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.capability-icon {
    font-size: 2.5rem;
    color: var(--accent-lime);
    width: 40px; /* For alignment */
    text-align: center;
}

.toggle-arrow {
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.toggle-arrow.rotate-180 {
    transform: rotate(180deg);
}

.capability-hidden {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--divider-gray);
    color: var(--text-dark);
    line-height: 1.7;
    /* x-collapse adds overflow: hidden and transition */
}
.capability-hidden p {
    margin: 0;
}


/* --- Additions to Responsive Design --- */
@media (max-width: 992px) {
    /* ... existing rules ... */
    .capabilities-layout {
        grid-template-columns: 1fr;
    }
}

/* ---
--- Industries Page Styles
--- */

.industries-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.industry-showcase-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--divider-gray);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.industry-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.industry-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.industry-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.industry-card-content h3 {
    margin-bottom: 1rem;
}

.industry-card-content > p {
    flex-grow: 1; /* Pushes the 'use-case' to the bottom */
}

.use-case {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--divider-gray);
}

.use-case-header {
    font-family: var(--font-header);
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.use-case-body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.client-logo {
    flex-shrink: 0;
    border-radius: 4px;
    /* The placeholder service will provide the image */
}

.use-case-body p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}


/* --- Additions to Responsive Design --- */
@media (max-width: 992px) {
    /* ... existing rules ... */
    .industries-showcase-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    /* ... existing rules ... */
    .use-case-body {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---
--- Contact Page Styles
--- */

.contact-banner {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 6rem 2rem;
    margin-top: 80px; /* Header offset */
}
.contact-banner h1 {
    color: var(--white);
    font-size: 3rem;
}
.contact-banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 0;
    opacity: 0.9;
}

.contact-section {
    background-color: var(--bg-light);
}

.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Give more space to the form */
    gap: 4rem;
}

.contact-info h3, .contact-form-container h3 {
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.contact-info-item i {
    color: var(--accent-lime);
    font-size: 1.2rem;
    margin-top: 5px;
    width: 20px;
    text-align: center;
}
.contact-info-item span, .contact-info-item a {
    color: var(--text-dark);
    font-weight: 600;
}

.map-container {
    margin-top: 3rem;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--divider-gray);
}

.contact-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--divider-gray);
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--divider-gray);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-lime);
    box-shadow: 0 0 0 3px rgba(168, 223, 101, 0.3);
}

textarea {
    resize: vertical;
}

.full-width {
    width: 100%;
    text-align: center;
}


/* --- Additions to Responsive Design --- */
@media (max-width: 992px) {
    /* ... existing rules ... */
    .contact-layout-grid {
        grid-template-columns: 1fr;
    }
    .contact-banner {
        margin-top: 64px;
        padding: 5rem 1rem;
    }
    .contact-banner h1 {
        font-size: 2.5rem;
    }
}