/* --- Global Styles --- */
:root {
    --primary-color: #2C7A51; /* Earthy Green */
    --secondary-color: #F3A847; /* Warm Yellow/Orange */
    --accent-color: #4A90E2; /* Tech Blue */
    --text-color: #333333;
    --light-text-color: #FFFFFF;
    --background-color: #FFFFFF;
    --light-gray-bg: #f8f9fa;
    --border-color: #dddddd;
    --heading-font: 'Roboto', sans-serif;
    --body-font: 'Roboto', sans-serif;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px; /* Base font size */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: 0.75em;
    color: var(--primary-color);
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-top: 1.5em; }
h3 { font-size: 1.8rem; color: var(--accent-color); }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1.2em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 20px;
}

li {
    margin-bottom: 0.5em;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-gray-bg);
}

.text-center {
    text-align: center;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* --- Navbar --- */
.navbar {
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 50px;
    margin-right: 10px;
}
.logo-small {
    height: 30px;
    margin-right: 8px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    text-decoration: none;
    position: relative;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Nav toggle active states for hamburger animation */
.nav-toggle.active .hamburger {
    background-color: transparent; /* Middle bar disappears */
}
.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}


/* --- Hero Section --- */
.hero {
    position: relative;
    color: var(--light-text-color);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh; /* Adjust as needed */
    padding: 40px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/hero-background.jpg') no-repeat center center/cover; /* Placeholder */
    filter: brightness(0.6); /* Darken background for text visibility */
    z-index: -1;
}
/* Add subtle animation or video background here if desired */

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5em;
    color: var(--light-text-color); /* Override default heading color */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero .sub-headline {
    font-size: 1.5rem;
    margin-bottom: 1.5em;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-buttons .btn {
    margin: 0 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    border: 2px solid var(--secondary-color);
}
.btn-primary:hover {
    background-color: #e09335; /* Darker shade of secondary */
    color: var(--light-text-color);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-text-color); /* Default for hero, can be overridden */
    border: 2px solid var(--secondary-color);
}
.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    transform: translateY(-2px);
    text-decoration: none;
}
section:not(.hero) .btn-secondary { /* Secondary button outside hero */
    color: var(--primary-color);
    border-color: var(--primary-color);
}
section:not(.hero) .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}


.btn-tertiary {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    border: 2px solid var(--accent-color);
}
.btn-tertiary:hover {
    background-color: #3a7bc8; /* Darker tech blue */
    color: var(--light-text-color);
    text-decoration: none;
}


/* --- Problem Statement & Solution Overview --- */
.problem-statement, .solution-overview {
    text-align: center;
}
.problem-statement h2, .solution-overview h2 {
    margin-bottom: 0.5em;
}
.problem-statement p, .solution-overview p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Key Differentiators --- */
.differentiators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.differentiator-item .icon {
    width: 60px; /* Adjust as needed */
    height: 60px;
    margin-bottom: 15px;
    /* If using Font Awesome, style the <i> tag instead */
}
.differentiator-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

/* --- Traction/Highlights & Bottom CTA --- */
.traction-highlights p, .bottom-cta p {
    font-size: 1.1rem;
}

/* --- Footer --- */
footer {
    background-color: var(--text-color);
    color: #cccccc;
    padding: 40px 0 20px;
    text-align: center;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}
.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light-text-color);
}
.footer-links a {
    color: #cccccc;
    margin: 0 10px;
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
.social-media a {
    color: #cccccc;
    margin: 0 10px;
    font-size: 1.5rem;
}
.social-media a:hover {
    color: var(--secondary-color);
}
.copyright {
    font-size: 0.9rem;
    margin-top: 20px;
    margin-bottom: 5px;
}
.open-source-footer {
    font-size: 0.8rem;
    font-style: italic;
    color: #aaaaaa;
}

/* --- Page Hero (for internal pages) --- */
.page-hero {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 50px 0;
    text-align: center;
}
.page-hero h1 {
    color: var(--light-text-color);
    font-size: 2.8rem;
}

/* --- Vision Page Specifics --- */
.vision-article {
    margin-bottom: 40px;
}
.vision-article h2 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.inline-image-right {
    float: right;
    max-width: 40%;
    margin: 0 0 20px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.inline-image-left {
    float: left;
    max-width: 40%;
    margin: 0 30px 20px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.vision-article::after { /* Clearfix for floated images */
    content: "";
    clear: both;
    display: table;
}

/* --- Technology Page Specifics --- */
.lead-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.tech-flow-diagram {
    max-width: 800px;
    margin: 20px auto 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px;
}
.capability {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}
.capability:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.capability-text {
    flex: 2; /* Takes up more space */
    min-width: 300px;
}
.capability-visual {
    flex: 1; /* Takes up less space */
    min-width: 250px;
    text-align: center;
}
.capability-visual img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.african-optimization ul {
    list-style-type: disc;
    padding-left: 25px;
}
.african-optimization ul li {
    margin-bottom: 10px;
}

/* --- Tables --- */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure table has some width on small screens before scroll */
}
th, td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}
th {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    font-weight: 600;
}
tbody tr:nth-child(even) {
    background-color: var(--light-gray-bg);
}
tbody tr:hover {
    background-color: #e9ecef;
}

/* --- Open Source Page --- */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card {
    background-color: var(--background-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
.feature-card .icon-large {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.uvp ul {
    list-style: none;
    padding-left: 0;
}
.uvp ul li {
    font-size: 1.1rem;
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
}
.uvp ul li::before {
    content: "\f00c"; /* Font Awesome check icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

/* --- Invest Page --- */
.investment-infographic {
    max-width: 700px;
    margin: 0 auto 30px auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.business-model ol li, .investment-ask ul li ul li {
    margin-bottom: 8px;
}
.disclaimer {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    margin-top: 15px;
}
.investment-ask h3 {
    margin-top: 1.5em;
}
.investment-ask > ul > li > strong {
    display: block;
    margin-bottom: 5px;
}
.investment-ask > ul > li > ul {
    margin-top: 5px;
    margin-bottom: 10px;
    padding-left: 20px;
    list-style-type: circle;
}

/* --- Team Page --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.team-member-card {
    background: var(--background-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}
.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border: 3px solid var(--secondary-color);
}
.team-photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--light-gray-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    border: 3px solid var(--border-color);
}
.team-photo-placeholder i {
    font-size: 4rem;
    color: var(--border-color);
}
.team-member-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
}
.team-member-card .role {
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 500;
}
.team-passion, .commitment-statement {
    margin-top: 30px;
    font-size: 1.15rem;
    text-align: center;
    font-weight: 500;
}
.advisory-board ul, .impact-vision ul {
    list-style-type: disc;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}
.impact-item {
    text-align: center;
}
.impact-item .icon-feature {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* --- Community Page --- */
.community-links .btn {
    margin: 5px;
}
.icon-link i {
    margin-right: 8px;
}
.channel-card {
    background-color: var(--background-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}
.channel-card .icon-large {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.channel-card .btn-tertiary {
    margin-top: 10px;
}
.small-text {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
}
.social-media-large a {
    display: inline-block;
    margin: 10px 15px;
    font-size: 1.3rem;
    color: var(--primary-color);
}
.social-media-large a i {
    margin-right: 8px;
}
.social-media-large a:hover {
    color: var(--secondary-color);
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info column, Form column */
    gap: 40px;
}
.contact-info h2, .contact-form-container h2 {
    margin-bottom: 20px;
}
.contact-info ul {
    list-style: none;
    padding: 0;
}
.contact-info ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.contact-info ul li i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px; /* Align icons */
    text-align: center;
}
.social-media-contact a {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.social-media-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}


.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
}
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-form button {
    width: auto;
}
.form-status {
    margin-top: 15px;
    font-weight: bold;
}

.map-placeholder {
    width: 100%;
    height: 450px; /* Adjust as needed */
    background-color: var(--light-gray-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: var(--border-radius);
}
.map-placeholder p {
    color: #666;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .capability {
        flex-direction: column; /* Stack capability items */
    }
    .capability-text, .capability-visual {
        flex: none; /* Reset flex basis */
        width: 100%;
    }
    .capability-visual img {
        max-width: 70%; /* Don't let images get too big on medium screens */
        margin: 0 auto;
    }
    .inline-image-left, .inline-image-right {
        float: none;
        max-width: 80%; /* Allow larger images when not floated */
        margin: 20px auto; /* Center them */
    }
    .contact-grid {
        grid-template-columns: 1fr; /* Stack contact info and form */
    }
}


@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .nav-menu {
        display: none; /* Hide menu by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Adjust based on navbar height */
        left: 0;
        background-color: var(--background-color);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding-bottom: 10px; /* Add some padding */
    }
    .nav-menu.active {
        display: flex; /* Show when active */
    }
    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .nav-menu a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--light-gray-bg);
    }
    .nav-menu a::after { /* Remove underline animation for mobile dropdown */
        display:none;
    }
    .nav-menu li:last-child a {
        border-bottom: none;
    }
    .nav-toggle {
        display: block; /* Show hamburger icon */
    }

    .differentiators-grid, .grid-3-col, .team-grid, .impact-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }

    .cta-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
        max-width: 300px;
    }
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    .footer-links {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .footer-links a {
        display: block;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    h1 { font-size: 2rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero .sub-headline { font-size: 1.2rem; }
    .logo { height: 40px; }
    .logo-text { font-size: 1.5rem; }
    .capability-visual img { max-width: 90%; }
    .inline-image-left, .inline-image-right { max-width: 100%;}
}