/* Core Variables */
:root {
    --primary-earth: #2C5F2D;
    --secondary-leaf: #97BC62;
    --background-clay: #F4F1EA;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --card-bg: #FFFFFF;
    --nav-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body { background-color: var(--background-clay); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }

a { text-decoration: none; color: inherit; transition: 0.3s ease; }

/* --- NAVIGATION --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; height: var(--nav-height); position: fixed; top: 0; width: 100%; z-index: 2000;
    transition: 0.4s;
}
.navbar.scrolled { background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,0.05); }

.logo-placeholder { font-size: 1.5rem; font-weight: bold; color: var(--text-light); z-index: 2002; letter-spacing: 1px; }
.navbar.scrolled .logo-placeholder { color: var(--text-dark); }

.nav-toggle { display: none; }
.nav-toggle-label { display: block; cursor: pointer; z-index: 2002; }
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    display: block; background: var(--text-light); height: 2px; width: 30px; position: relative; transition: 0.4s;
}
.navbar.scrolled .nav-toggle-label span, .navbar.scrolled .nav-toggle-label span::before, .navbar.scrolled .nav-toggle-label span::after { background: var(--text-dark); }
.nav-toggle-label span::before { content: ''; position: absolute; top: -10px; width: 100%; }
.nav-toggle-label span::after { content: ''; position: absolute; top: 10px; width: 100%; }

#nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
#nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); top: 0; background: var(--text-light); }
#nav-toggle:checked ~ .nav-toggle-label span::after { transform: rotate(-45deg); top: 0; background: var(--text-light); }

.nav-links {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--primary-earth);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
    opacity: 0; visibility: hidden; transition: 0.6s; z-index: 2001;
}
#nav-toggle:checked ~ .nav-links { opacity: 1; visibility: visible; }
.nav-links a { color: var(--text-light); font-size: clamp(1.8rem, 5vw, 3rem); text-transform: uppercase; font-weight: 200; }

/* --- HERO --- */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background: #000; }
.hero-video-container::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.hero-bg-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: 1.5s ease-in-out; }
.hero-bg-video.active { opacity: 1; }

.hero-nav {
    position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between;
    padding: 0 3%; transform: translateY(-50%); z-index: 10;
}
.hero-arrow {
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light); width: 50px; height: 50px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; transition: 0.3s;
}
.hero-arrow:hover { background: var(--secondary-leaf); color: var(--text-dark); border-color: var(--secondary-leaf); }

.hero-content { color: var(--text-light); z-index: 2; padding: 0 5%; }
.kinetic-text { font-size: clamp(2.2rem, 10vw, 4rem); margin-bottom: 1rem; animation: fadeUp 1s forwards; }

/* --- LAYOUT & CARDS --- */
/* Changed opacity to 1 by default to ensure visibility if JS fails */
.content-section { padding: 120px 5%; opacity: 1; transition: 0.8s; }
.section-container { max-width: 1200px; margin: 0 auto; }
.section-container h2 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--primary-earth); }

.grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.card { background: var(--card-bg); padding: 2.5rem; border-radius: 4px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.card h3 { margin-bottom: 1rem; color: var(--primary-earth); }

/* --- BUTTONS --- */
.cta-button {
    padding: 1.2rem 3rem; background: var(--secondary-leaf); color: var(--text-dark);
    border: none; border-radius: 4px; font-weight: bold; text-transform: uppercase; cursor: pointer;
    transition: 0.3s; display: inline-block;
}
.cta-button:hover { background: var(--primary-earth); color: var(--text-light); transform: translateY(-2px); }

/* --- FORM --- */
.contact-form { max-width: 800px; margin-top: 3rem; display: grid; gap: 2rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.input-group { display: flex; flex-direction: column; }
.input-group label { font-size: 0.8rem; text-transform: uppercase; font-weight: bold; margin-bottom: 0.5rem; color: var(--primary-earth); }
.input-group input, .input-group textarea {
    background: transparent; border: none; border-bottom: 1px solid rgba(0,0,0,0.1); padding: 0.8rem 0; outline: none; transition: 0.4s;
}
.input-group input:focus, .input-group textarea:focus { border-bottom: 1px solid var(--secondary-leaf); }

/* --- FOOTER --- */
.main-footer { background: var(--primary-earth); color: var(--text-light); padding: 5rem 5% 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; max-width: 1200px; margin: 0 auto; }
.footer-links h4 { color: var(--secondary-leaf); margin-bottom: 1rem; text-transform: uppercase; font-size: 0.9rem; }
.footer-links ul { list-style: none; }
.footer-links a { opacity: 0.7; font-size: 0.9rem; }
.footer-links a:hover { opacity: 1; border-bottom: 1px solid var(--secondary-leaf); }
.footer-bottom { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.6; font-size: 0.8rem; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- VISION COLUMN LAYOUT --- */
.vision-grid {
    column-count: 2;
    column-gap: 4rem;
    text-align: justify;
    margin-top: 2rem;
}

/* Forces each paragraph to stay in one column without splitting */
.vision-grid p {
    margin-bottom: 1.5rem;
    break-inside: avoid;
    display: inline-block; /* Additional reinforcement for older browsers */
    width: 100%;
}

/* This forces the image to span across both columns */
.full-width-break {
    column-span: all;
    width: 100%;
    margin: 3rem 0;
    break-inside: auto; /* Images are allowed to sit between columns */
}

.full-width-break img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Mobile Fallback */
@media (max-width: 900px) {
    .vision-grid {
        column-count: 1;
    }
}

/* --- SECTION SPACING REFINEMENT --- */
.content-section { 
    padding: 80px 5%; /* Reduced from 120px for a tighter flow */
    opacity: 1; 
    transition: 0.8s; 
}

/* Add this to remove the "double padding" effect between connected sections */
.content-section + .content-section {
    padding-top: 40px; 
}

/* Adjust the Manifesto expansion margin[cite: 3] */
#vision-expansion {
    margin-top: 2rem; /* Reduced from 3rem[cite: 3] */
    border-top: 1px solid rgba(0,0,0,0.1); 
    padding-top: 2rem;
}

/* --- TECHNOLOGY DETAIL PANELS --- */
.tech-details-container {
    margin-top: 2rem;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.6s ease-in-out, opacity 0.4s ease;
    opacity: 0;
    background: var(--card-bg);
    border-radius: 4px;
    /* Safety buffer */
    scroll-margin-top: 100px; 
}

.tech-details-container.active {
    max-height: 2000px; /* High value to allow long content */
    opacity: 1;
    padding: 3rem;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

.tech-detail-content h3 {
    color: var(--primary-earth);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.tech-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .tech-detail-grid { grid-template-columns: 1fr; }
}

.card { cursor: pointer; transition: transform 0.3s, border-color 0.3s; }
.card.active-card { border: 2px solid var(--secondary-leaf); transform: translateY(-5px); }

/* --- UPDATED SECTION HEADERS --- */
.section-container h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    color: var(--primary-earth);
    text-align: center; /* Centers the headline */
    width: 100%;
}

/* --- REFINED CONSULTATION WRAPPER --- */
.consultation-text-wrapper {
    width: 100%;
    max-width: 1100px; /* Slightly wider to match the card grid visually */
    margin: 0 auto 3rem auto; /* Centers the entire block */
    display: flex;
    flex-direction: column;
}

.consultation-text-wrapper p {
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: left; /* Keeps the text itself easy to read */
}

/* --- CINEMATIC IMAGE BREAKOUT --- */
.full-width-break {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 4rem;
    margin-bottom: 4rem;
    overflow: hidden;
}

.full-width-break img {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: cover;
    display: block;
}

/* --- CAREERS FLASHY SECTION --- */
.careers-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.big-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.2;
    font-weight: 200;
    margin-bottom: 3rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-leaf);
}

.stat-item span {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-light);
}

.roles-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.role-card {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-left: 3px solid var(--secondary-leaf);
    transition: 0.3s;
    cursor: pointer;
}

.role-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(10px);
}

.role-card h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary-leaf);
}

@media (max-width: 900px) {
    .careers-hero-grid { grid-template-columns: 1fr; }
}