:root {
    --primary: #1a531f;
    --accent: #8eb057;
    --bg: #fdfdfd;
    --text: #333;
    --white: #ffffff;
    --container-padding: 10%; /* JS will adjust this */
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { background-color: var(--bg); color: var(--text); line-height: 1.6; width: 100%; }

/* Navigation */
header {
    min-height: 80px; padding: 15px 5%; 
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.logo { font-family: 'Syncopate'; color: var(--primary); font-size: 1.3rem; font-weight: 700; letter-spacing: 2px; }
nav ul { display: flex; list-style: none; gap: 30px; }
nav ul li a { text-decoration: none; color: var(--text); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; transition: 0.3s; }
nav ul li a.active, nav ul li a:hover { color: var(--primary); }

/* Buttons */
.btn-vision {
    background: var(--primary); color: white; border: none; padding: 12px 25px;
    font-weight: bold; border-radius: 50px; cursor: pointer; text-transform: uppercase; font-size: 0.7rem;
    transition: 0.3s;
}
.btn-vision:hover { background: var(--accent); transform: translateY(-3px); }

/* Hero */
.hero { 
    min-height: 85vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; 
    background: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)), url('https://images.unsplash.com/photo-1500622855663-c373a79c1eb5?auto=format&fit=crop&q=80&w=1600');
    background-size: cover; background-position: center; padding: 20px;
}
.hero h1 { font-family: 'Syncopate'; font-size: clamp(2.5rem, 8vw, 5rem); color: var(--primary); line-height: 1.1; }
.hero span { color: var(--accent); }

/* Sections & Grids */
.container { padding: 80px var(--container-padding); text-align: center; }
.section-title { font-family: 'Syncopate'; font-size: 2rem; color: var(--primary); margin-bottom: 40px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: white; padding: 40px; border-radius: 20px; border: 1px solid #eee; transition: 0.3s; }

/* 3D Box Logic */
.visual-box {
    width: 100px; height: 100px; background: #f4f7f4; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px auto; transform-style: preserve-3d;
}
.visual-box i { font-size: 3rem; color: var(--primary); transform: translateZ(30px); }

/* Responsive Media Queries */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; }
    nav ul { gap: 15px; }
    .hero h1 { font-size: 3rem; }
}

/* Legend Footer Styling */
.legend-footer {
    background: #0f1a0f; /* Deep dark green */
    color: #e0e0e0;
    padding: 80px 0 20px 0;
    font-size: 0.9rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 var(--container-padding);
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--white);
    font-family: 'Syncopate';
    font-size: 0.8rem;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.footer-logo { font-family: 'Syncopate'; color: var(--white); margin-bottom: 20px; font-size: 1.2rem; }
.footer-logo span { color: var(--accent); }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #aaa; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }

.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { 
    width: 35px; height: 35px; background: rgba(255,255,255,0.05); 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; color: white; transition: 0.3s;
}
.social-links a:hover { background: var(--accent); transform: translateY(-5px); }

.trust-badge { color: var(--accent); line-height: 2; font-weight: 600; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 30px 0;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* Lab Section Styling */
.lab-section {
    padding: 100px var(--container-padding);
}

.lab-card {
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--primary) !important;
    text-align: center;
    background: #ffffff;
}

.lab-badge {
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    padding: 5px 35px;
    transform: rotate(45deg);
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.view-report {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent);
    transition: 0.3s;
}

.view-report:hover {
    color: var(--accent);
    letter-spacing: 1px;
}

/* Mobile Fix for Lab Section */
@media (max-width: 600px) {
    .lab-section { padding: 60px 5%; }
}