:root {
    --primary-color: #1a202c; /* Dark background - similar to Greylock */
    --secondary-color: #00d4ff; /* Bright cyan/blue accent */
    --text-color: #e2e8f0; /* Light gray/off-white text */
    --heading-color: #ffffff; /* White for main headings */
    --background-color: #1a202c; /* Dark background */
    --card-background: #2d3748; /* Slightly lighter dark for cards/sections if needed */
    --border-color: #4a5568; /* Subtle border color */
    --link-hover-color: var(--secondary-color);
    --heading-font: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Clean sans-serif */
    --body-font: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Clean sans-serif */
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    line-height: 1.7; /* Slightly increased line height */
    font-size: 16px; /* Base font size */
}

header {
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky; /* Sticky header */
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 600; /* Semi-bold */
    color: var(--heading-color);
    text-transform: uppercase; /* Uppercase like Greylock */
    letter-spacing: 1px;
    display: flex; /* Arrange text and animation side-by-side */
    align-items: center; /* Vertically align items */
    gap: 0.5rem; /* Add small space between text and animation */
}

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

nav ul li {
    margin-left: 2.5rem; /* Increased spacing */
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500; /* Medium weight */
    font-size: 0.95rem;
    transition: color 0.3s ease;
    text-transform: uppercase; /* Uppercase like Greylock */
    letter-spacing: 0.5px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--secondary-color);
}

main {
    max-width: 1200px; /* Match nav's max-width */
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative; /* Add relative positioning to be the context for the absolute Lottie background */
    overflow: hidden; /* Hide parts of Lottie overflowing main */
}

section {
    margin-bottom: 0;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color); /* Separator line like Greylock */
}

section:last-child {
    border-bottom: none; /* No border for the last section */
}

.hero {
    text-align: left; /* Align text left */
    padding: 1.5rem 0 3rem 0;
    background-color: var(--primary-color);
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
    margin-top: 0;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.hero h1 {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    border-bottom: none; /* Remove default border */
}

.hero p {
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 0 2rem 0;
    color: var(--text-color);
}

.cta-button {
    display: inline-block;
    background-color: transparent; /* Transparent background */
    color: var(--secondary-color); /* Accent color text */
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600; /* Bold */
    transition: all 0.3s ease;
    border: 1px solid var(--secondary-color); /* Accent color border */
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2rem;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color); /* Dark text on hover */
    border-color: var(--secondary-color);
}

/* General heading styles */
h2 {
    font-family: var(--heading-font);
    color: var(--heading-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
}

h3 {
     font-family: var(--heading-font);
    color: var(--heading-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* Overview section specific styles */
.overview {
     border-bottom: 1px solid var(--border-color); /* Add separator */
}

.overview h2 {
     /* specific styles if needed */
}


.overview-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem; /* Increased gap */
}

.point h3 {
   /* Using general h3 style */
   margin-bottom: 0.5rem;
}
.point p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}


/* Page Title Section */
.page-title {
    text-align: left; /* Left align */
    margin-bottom: 3rem; /* Increased margin */
     border-bottom: 1px solid var(--border-color); /* Add separator */
     padding-bottom: 2rem;
}

.page-title h1 {
     font-family: var(--heading-font);
    font-size: 3rem; /* Larger title */
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 600;
     border-bottom: none; /* Remove default border */
     padding-bottom: 0;
}


.page-title p {
     color: var(--text-color); /* Use standard text color */
     font-size: 1.1rem;
}

.page-title p a {
    color: var(--secondary-color); /* Accent color for link */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-title p a:hover {
    color: var(--heading-color); /* Lighter hover */
    text-decoration: underline;
}

/* Philosophy Page Styles */
.philosophy-content {
     border-bottom: 1px solid var(--border-color); /* Add separator */
     padding-bottom: 2rem;
}
.philosophy-content:last-child {
    border-bottom: none;
}


.philosophy-content h2 {
    /* Using general h2 style */
     margin-bottom: 1.5rem;
}
.philosophy-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}


.philosophy-content ul {
    list-style: none;
    padding-left: 0;
}

.philosophy-content li {
    margin-bottom: 1.2rem;
    padding-left: 1.8rem; /* Increase padding */
    position: relative;
}

.philosophy-content li::before {
    content: ''; /* Use border instead of bullet */
    background-color: var(--secondary-color);
    width: 8px; /* Square marker */
    height: 8px;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 8px; /* Adjust vertical position */
}

.philosophy-content li strong {
    color: var(--heading-color); /* Make strong text stand out */
    font-weight: 600;
}


/* Placeholder Styles */
.placeholder-content {
    text-align: center;
    padding: 4rem 1rem; /* Increased padding */
    /* background-color: var(--card-background); Slightly different background */
    background-color: transparent; /* Match background */
    border-radius: 0;
    color: var(--text-color);
    border: 1px dashed var(--border-color); /* Dashed border for placeholder */
}
.placeholder-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}


/* Contact Form Styles */
.contact-form-section {
    max-width: 700px;
    margin: 0 auto 4rem auto; /* Adjust margin */
    padding-top: 2rem;
}

.contact-form-section h1 { /* Style the "Get in touch" within the section if needed, else use .page-title */
     font-family: var(--heading-font);
    color: var(--heading-color);
    font-size: 2.5rem;
     border-bottom: 1px solid var(--border-color);
     padding-bottom: 1rem;
     margin-bottom: 2rem;
}


.form-group {
    margin-bottom: 1.8rem; /* Increased spacing */
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem; /* Increased spacing */
    font-weight: 500; /* Medium weight */
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem; /* Adjusted padding */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    background-color: var(--card-background); /* Dark input background */
    color: var(--text-color); /* Light text in input */
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color); /* Highlight focus */
    outline: none;
}


.form-group input[type="file"] {
    padding: 0.6rem;
    background-color: var(--card-background);
    cursor: pointer;
}
/* Style file input button if possible/needed */


.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #a0aec0; /* Lighter gray for helper text */
    font-size: 0.9rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px; /* Minimum height */
}

/* Add button container for better centering */
.button-container {
    width: 100%;
    text-align: center;
    margin: 2rem 0 1rem;
}

/* Contact form specific button alignment */
.contact-form-section form button.cta-button {
    width: auto;
    /* Use standard styling, let container handle positioning */
}

.contact-form-section p small {
     color: #a0aec0;
     display: block;
     margin-top: 1.5rem;
     text-align: center;
}

/* Footer Styles */
footer {
    text-align: center;
    margin-top: 6rem; /* Increased spacing */
    padding: 3rem 1rem; /* Increased padding */
    background-color: var(--primary-color); /* Match header/body */
    border-top: 1px solid var(--border-color); /* Add top border */
    color: #a0aec0; /* Lighter gray for footer text */
    font-size: 0.9rem;
}

footer p {
    margin: 0.5rem 0; /* Increased spacing */
}

/* Add Lottie Background Styles */
.lottie-background {
    position: absolute; /* Position relative to the .hero container */
    bottom: 0rem; /* Sit flush on the divider line */
    right: 0; /* Align to the right edge of hero */
    width: 50%; /* Increase width to accommodate new dimensions */
    min-width: 500px;
    max-width: 700px; /* Adjust max width as needed */
    height: auto; /* Maintain aspect ratio */
    z-index: 0; /* Place it behind the hero content (hero has z-index: 1) */
    opacity: 0.3; /* Increase opacity to make it more pronounced */
    pointer-events: none; /* Allow clicks to go through */
    /* Remove left/right/width:100% that were based on main */
}

/* Ensure main content sections are above the Lottie background */
main > section {
    position: relative;
    z-index: 1;
    background-color: transparent; /* Make sections transparent to see animation */
}

/* Give hero and overview a background again if needed, or keep transparent */
.hero, .overview {
    background-color: var(--primary-color); /* Restore background color */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    nav, main {
        max-width: 100%;
        padding: 0 1rem;
    }
    .logo {
        margin-bottom: 1rem;
        width: 100%;
        justify-content: center;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        margin-top: 1.5rem; /* Add a bit more space below logo */
        /* Change from flex column to a 2x2 grid */
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two equal columns */
        gap: 1rem; /* Space between grid items */
        width: 100%;
        /* Remove align-items: center from flex, grid handles alignment */
        padding: 0; /* Ensure no default padding interferes */
        justify-items: center; /* Center items horizontally within grid cells */
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 0; /* Gap handles vertical spacing now */
        width: auto;
        text-align: center; /* Keep text centered within the link */
    }

    .hero {
        padding: 3rem 0;
        margin-top: -2rem;
        text-align: center;
        margin-bottom: 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.05rem;
    }

    h2 {
        font-size: 1.8rem;
    }
    .page-title h1 {
        font-size: 2.2rem;
    }
    .contact-form-section h1 {
        font-size: 2rem;
    }

    .overview-points {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-section {
        max-width: 100%;
    }

    .lottie-background {
        top: 0;
        height: 500px;
        opacity: 0.2;
    }

    /* Portfolio List Mobile Adjustments */
    .company-row {
        flex-direction: column; /* Stack items vertically */
        align-items: center;   /* Center flex items (like the logo wrapper) */
        gap: 1rem;             /* Adjust gap for vertical spacing */
        text-align: center;    /* Center inline/inline-block children like the badge */
    }

    .company-logo {
        margin-bottom: 0.5rem;
    }

    .company-info {
        order: 2;
        width: 100%;
    }

    .company-info h3 {
        margin-bottom: 0.8rem;
        order: 1;
    }
    
    .company-info p {
        margin-bottom: 1rem;
        order: 2;
    }

    .company-link {
        order: 3;
        margin-bottom: 1rem;
    }

    .incubator-badge {
        /* Completely override desktop styling for consistent mobile centering */
        display: inline-block; /* Same as cta-button */
        margin: 1.5rem auto 0; /* Top, auto left/right like cta-button */
        padding: 0.5rem 1.2rem;
        border: 2px solid var(--secondary-color);
        border-radius: 4px;
        color: var(--secondary-color);
        font-weight: 600;
        font-size: 1rem;
        background: transparent;
        transition: background 0.2s, color 0.2s;
        /* Undo all flexbox positioning */
        order: 4;
        align-self: auto;
        /* Ensure it's treated as a standalone element */
        float: none;
        clear: both;
    }

    /* Add specific rule to handle the logo link wrapper */
    .company-row > a {
        order: 0;
        display: block;
        text-align: center;
    }

    /* Force center incubator-badge on mobile with !important */
    .company-row .incubator-badge {
        /* Match width and display of cta-button */
        display: inline-block !important; /* Like cta-button, not block */
        width: auto !important; /* Not 100% width, size to content */
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
        
        /* Maintain consistent mobile centering */
        float: none !important;
        position: static !important;
        align-self: auto !important;
        order: 4;
        
        /* Badge styling, consistent with cta-button */
        padding: 0.8rem 1.8rem !important; /* Match cta-button padding */
        border: 1px solid var(--secondary-color) !important; /* Match cta-button border */
        border-radius: 4px !important; /* Match cta-button border-radius */
    }
    
    /* Ensure company-row is set up for vertical stacking */
    .company-row {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1rem !important;
        /* Ensure proper containment of children */
        padding: 1.5rem !important;
    }

    /* Mobile form improvements */
    .contact-form-section form {
        width: 100%;
    }
    
    .contact-form-section form .form-group {
        width: 100%;
        text-align: left;
    }
    
    /* Simplify button styling, let container handle centering */
    .contact-form-section form button.cta-button {
        display: inline-block;
        float: none;
        padding: 0.8rem 1.8rem;
    }
    
    /* Ensure button container is centered */
    .button-container {
        width: 100%;
        text-align: center !important;
        display: block !important;
        margin: 1.5rem 0 1rem !important;
    }
}

/* Portfolio List Styles */
.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Space between rows */
    /* Add border around the portfolio list */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 3rem 2rem; /* Vertical and horizontal padding */
}
.company-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    position: relative;
}
.company-row:last-child {
    border-bottom: none; /* No divider after last row */
}
.company-logo {
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
    border-radius: 8px; /* Slight rounding if desired */
    background-color: var(--card-background);
}
.company-info h3 {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    color: var(--heading-color);
    margin: 0 0 0.5rem 0;
}
.company-info p {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
}

.company-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--secondary-color);
    text-decoration: underline;
    font-size: 0.98rem;
    word-break: break-all;
}
.company-link:hover {
    color: var(--heading-color);
    text-decoration: underline;
}

.incubator-badge {
    display: inline-block;
    margin-left: auto;
    margin-right: 0;
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    transition: background 0.2s, color 0.2s;
    align-self: center;
}

.company-info {
    flex: 1 1 auto;
}

.portfolio-note {
    margin: 2.5rem auto 0 auto;
    max-width: 750px;
    background: var(--card-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.2rem 2rem;
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    letter-spacing: 0.01em;
}

.contact-section {
    /* Revert to default section width within main, respecting main padding */
    margin: 0 auto 4rem auto;
    padding-top: 2rem;
}
/* Two-column layout using CSS grid */
.contact-columns {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem; /* increased space between map and form */
    align-items: start; /* align map col and form col at top */
}
.contact-map-col {
    flex: 0 0 auto; /* shrink to map's content width */
}
.map-description {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
.map-description p {
    margin-top: 1rem; /* shift description down further to align with form label */
}
.office-address {
    margin-top: 1rem;
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.5;
}
.contact-form-col {
    flex: 1 1 auto; /* take remaining space */
}
/* Make map iframe square with fixed size */
.contact-map-col iframe {
    width: 100%; /* fill 400px column */
    height: 400px;
    border-radius: 8px;
    border: 0;
}
@media (max-width: 600px) {
    .contact-columns {
        grid-template-columns: 1fr;
    }
}

.form-status-message {
  margin-top: 1rem;
}

.form-status-message.success {
  color: green;
  text-align: center; /* Add this line to center the success message */
}

.form-status-message.error {
  color: red;
} 