/* --- Global Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* --- Header --- */
header {
    background-color: #ffffff; /* White background */
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    position: sticky; /* Makes header stick to the top on scroll */
    top: 0;
    z-index: 1000;
}

.header-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #333; /* Dark text for readability on white */
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #2E7D32; /* Green on hover */
}


/* --- Hero Sections --- */
#hero { /* Homepage Hero */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-background-bw.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 6rem 2rem;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

#hero-tech { /* Technology Page Hero */
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('green-hex-background.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 3.375rem 2rem; 
}

#hero-tech h1 {
    font-size: 5.5rem;
    font-weight: 700;
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.9);
}

#hero-tech p {
    font-size: 1.4rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.cta-button {
    background-color: #4CAF50;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #43A047;
}


/* --- General Page Section Styles --- */
.page-section {
    padding: 4rem 2rem;
}

.page-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 3rem;
}

.alternate-bg {
    background-color: #f8f9fa;
}

/* --- Homepage Specific Sections --- */
#about {
    background-color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h3 {
    font-size: 1.5rem;
    color: #2E7D32;
    margin-top: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left;
}

#features {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

#features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}

.feature-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.feature-item h4 {
    font-size: 1.3rem;
    color: #2E7D32;
    margin-bottom: 1rem;
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.5;
}

#contact {
    padding: 4rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact input, #contact textarea {
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

#contact button {
    background-color: #2E7D32;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

#contact button:hover {
    background-color: #1b4d1e;
}


/* --- Generic Intro Sections for Sub-Pages --- */
#roadmap-intro, #team-intro, #tech-intro, #opportunity-intro, #investor-intro {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #ffffff;
}

#roadmap-intro h1, #team-intro h1, #tech-intro h1, #opportunity-intro h1, #investor-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}


/* --- Roadmap / Journey Page --- */
#inspirations {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#inspirations h2 {
    color: #ffffff;
}

.inspirations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.inspiration-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.inspiration-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1rem;
}

.inspiration-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ecf0f1;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0 4rem 0;
    text-align: center;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 20px; 
    background-image: url('vine-texture.svg');
    background-repeat: repeat-y; 
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -10px; 
}

.timeline h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 0 25px;
    background-color: #f9f9f9;
}

.timeline-item {
    padding: 10px 60px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-content h3 {
    margin-top: 0;
    color: #2E7D32;
}

.timeline-content .date {
    font-size: 0.9rem;
    font-weight: bold;
    color: #666;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-item::after { /* The reverted circle icons */
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    top: 25px;
    background-color: white;
    border-radius: 50%;
    z-index: 1;
}

.timeline-left::after {
    right: -16px;
}

.timeline-right::after {
    left: -16px;
}

.milestone-completed::after {
    border: 4px solid #2E7D32;
}
.milestone-current::after {
    border: 4px solid #f0ad4e;
}
.milestone-future::after {
    border: 4px solid #5bc0de;
}

.milestone-completed .timeline-content {
    border-left: 5px solid #2E7D32;
}
.milestone-current .timeline-content {
    border-left: 5px solid #f0ad4e;
}
.milestone-future .timeline-content {
    border-left: 5px solid #5bc0de;
}


/* --- Team Page --- */
.team-container {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.team-member-card {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.team-member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 5px solid #f0f0f0;
}

.team-member-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.team-member-card .title {
    color: #2E7D32;
    font-weight: bold;
    margin: 0 0 1rem 0;
}

.team-member-card .bio {
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
}

/* --- Technology Page --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add this line */
}

.tech-card:hover {
    transform: translateY(-8px); /* This "lifts" the card up by 8 pixels */
    box-shadow: 0 6px 20px rgba(0,0,0,0.12); /* This makes the shadow more pronounced */
}

.tech-card h3 {
    font-size: 1.5rem;
    color: #2E7D32;
    margin-top: 0;
    margin-bottom: 1rem;
}

.tech-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.tech-card-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 1rem;
    color: #2E7D32;
    font-weight: bold;
    text-decoration: none;
    border-top: 1px solid #e0e0e0;
}

.tech-card-link:hover {
    text-decoration: underline;
}

/* --- Opportunity Page --- */
.stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background-color: #2E7D32;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    flex-grow: 1;
    min-width: 280px;
}

.stat-card .stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card .stat-description {
    font-size: 1.1rem;
}

.market-size-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.market-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.market-card h3 {
    font-size: 1.5rem;
    color: #2E7D32;
    margin-top: 0;
}

.market-card .market-value {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.trends-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.trend-card {
    padding: 2rem;
    background-color: #f8f9fa;
    border-left: 5px solid #2E7D32;
    border-radius: 0 8px 8px 0;
}

.trend-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.trend-card p {
    line-height: 1.7;
    font-size: 1.1rem;
}

#impact-metric {
    background-color: #2E7D32;
    color: #ffffff;
}

#impact-metric h2 {
    color: #ffffff;
}

.impact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.impact-number {
    font-size: 10rem;
    font-weight: 700;
    line-height: 1;
}

.impact-description {
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 1rem 0;
}

.impact-comparison {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
    border-top: 2px solid rgba(255,255,255,0.5);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.business-model-container, .competitive-container {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.business-model-container ul, .competitive-container ul {
    text-align: left;
    padding-left: 20px;
}

.business-model-container h3, .competitive-container h3 {
    text-align: left;
    font-size: 1.5rem;
    color: #333;
}

/* --- Investor Relations Page --- */
.investment-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-start;
}

.investment-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    height: 100%;
}

.investment-card h3 {
    font-size: 1.5rem;
    color: #2E7D32;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #2E7D32;
    padding-bottom: 0.5rem;
}

.investment-card .ask-amount {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
}

.investment-card .ask-type {
    font-size: 1.2rem;
    color: #666;
}

.use-of-funds-list {
    list-style: none;
    padding: 0;
}

.use-of-funds-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.use-of-funds-list span {
    font-weight: bold;
    color: #333;
}

.data-room-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

#investor-contact-form form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* --- Detail Page (for drawings/mockups) --- */
.detail-page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.detail-page-container h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.detail-grid {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.detail-image-column {
    flex: 1 1 40%;
}

.detail-image-column img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.detail-text-column {
    flex: 1 1 60%;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .detail-grid {
        flex-direction: column;
    }
}


/* --- Thank You Page --- */
.thank-you-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 60vh;
    padding: 2rem;
}

.thank-you-logo {
    max-width: 200px;
    margin-bottom: 2rem;
}

.thank-you-container h1 {
    font-size: 3rem;
    color: #2E7D32;
    margin-bottom: 1rem;
}

.thank-you-container p {
    max-width: 500px;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}


/* --- Footer --- */
footer {
    background-color: #333;
    color: #ccc;
    text-align: center;
    padding: 2rem 1rem;
}

/* --- Image Gallery on Detail Page --- */
.image-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Creates a 2-column grid */
    gap: 1rem; /* Space between images */
}

.gallery-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden; /* Ensures image corners are rounded */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block; /* Removes any extra space below the image */
}

.gallery-caption {
    padding: 0.75rem;
    background-color: #f8f9fa;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

/* --- Homepage System Overview Section --- */
.detail-text-column h3 {
    font-size: 1.8rem;
    color: #2E7D32;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* --- Mini-Gallery Inside Tech Cards --- */
.card-image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2-column grid */
    gap: 1rem;
    margin-top: auto; /* Pushes gallery to the bottom of the card */
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.card-gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.card-gallery-item span {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    font-style: italic;
    color: #777;
    margin-top: 0.5rem;
}

/* --- Inline Image on Detail Page --- */
.inline-detail-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 2rem 0; /* Adds space above and below the image */
}

/* --- Timeline Images --- */
.timeline-content img.timeline-image {
    max-width: 100%; /* Make images responsive within their container */
    height: auto;
    border-radius: 8px; /* Optional: Rounded corners for the images */
    margin-bottom: 1rem; /* Add some space between the image and the text */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: Subtle shadow */
}

/* --- Blog Page --- */
.blog-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.blog-intro h1 {
    font-size: 2.5rem;
}

.post-list-container {
    max-width: 800px;
    margin: 0 auto;
}

.post-preview {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.post-preview h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.post-preview h2 a {
    text-decoration: none;
    color: #333;
}

.post-preview h2 a:hover {
    color: #2E7D32;
}

.post-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #2E7D32;
    font-weight: bold;
    text-decoration: none;
}

.post-read-more:hover {
    text-decoration: underline;
}

/* --- Single Blog Post Page --- */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-post {
    background-color: #ffffff;
    padding: 2rem 3rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.blog-post h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-top: 0;
}

.blog-post h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.blog-post p, .blog-post li {
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-post ul {
    padding-left: 25px;
}
.blog-post blockquote {
    border-left: 5px solid #2E7D32;
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
}

.blog-post blockquote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: bold;
    color: #333;
}

/* --- Mobile Navigation and Responsiveness --- */

/* The hamburger button */
.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
}

/* Styles for smaller screens */
@media (max-width: 768px) {
    /* Make the navigation list a block that we can animate */
    .primary-navigation ul {
        position: fixed;
        inset: 0 0 0 30%; /* Start off-screen to the right */
        flex-direction: column;
        padding: min(20vh, 10rem) 2rem;
        gap: 2rem;
        background-color: hsl(0 0% 100% / 0.1); /* Semi-transparent white */
        backdrop-filter: blur(1rem); /* Frosted glass effect */
        transform: translateX(100%);
        transition: transform 350ms ease-out;
    }

    /* When the menu is open, bring it on-screen */
    .primary-navigation[data-visible="true"] ul {
        transform: translateX(0%);
    }

    /* Show the hamburger button on mobile */
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        z-index: 2000;
        right: 1rem;
        top: 2rem;
        background: transparent;
        border: 0;
        aspect-ratio: 1;
        width: 2rem;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(51, 51, 51)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
    }

    /* Change to an "X" when the menu is open */
    .mobile-nav-toggle[aria-expanded="true"] {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(51, 51, 51)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M6 24L24 6'/%3e%3c/svg%3e");
    }

    /* Accessibility helper for screen readers */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    /* Responsive font sizes for large text */
    #hero-tech h1 {
        font-size: 3.5rem;
    }

    .impact-number {
        font-size: 6rem;
    }
}
