/* Custom Design tokens & Reset */
:root {
    --primary-green: #1E4620;
    --emerald-bright: #2E7D32;
    --earth-dark: #121812;
    --cream-light: #F4F6F4;
    --amber-warn: #D84315;
    --accent-blue: #1565C0;
    --text-dark: #2C3E2E;
    --text-muted: #667A6B;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--cream-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header & Menu styles */
.main-header {
    background: rgba(30, 70, 32, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: #81C784;
}

.nav-links a {
    color: #E8F5E9;
    text-decoration: none;
    margin: 0 1.2rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: #81C784;
}

/* Base Buttons */
button, .btn-primary, .btn-secondary {
    cursor: pointer;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--emerald-bright);
    color: white;
}

.btn-primary:hover {
    background-color: #1B5E20;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-green);
}

.btn-cta {
    background-color: var(--amber-warn);
    color: white;
}

/* Hero Frame */
.hero-section {
    height: 85vh;
    background: url('https://unsplash.com') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    margin-top: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;

    background-image: linear-gradient(rgba(27, 67, 50, 0), rgba(17, 42, 31, 0.9)), 
                      url('/images/forest.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* background: linear-gradient(90deg, rgba(18,24,18,0.9) 0%, rgba(18,24,18,0.4) 100%); */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: white;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: #E8F5E9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Content Layout Sections */
.pillars-section, .dashboard-section, .prototype-section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Grid Components */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--emerald-bright);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--emerald-bright);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Live Telemetry Display CSS */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.metric-box {
    background: #fff;
    border: 1px solid #E0E6E1;
    border-radius: 8px;
    padding: 1.5rem;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-green);
}

.text-green { color: var(--emerald-bright); }
.text-amber { color: var(--amber-warn); }
.text-blue { color: var(--accent-blue); }

/* Interface Mock Map Component */
.map-placeholder {
    height: 450px;
    background: #CFD8DC;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(circle, #B0BEC5 10%, transparent 11%);
    background-size: 20px 20px;
}

.map-overlay-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    width: 350px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
}

.form-control {
    width: 100%;
    padding: 0.6rem;
    margin: 0.8rem 0;
    border: 1px solid #CCC;
    border-radius: 4px;
}

.log-output {
    background: #1E293B;
    color: #38BDF8;
    font-family: monospace;
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    min-height: 60px;
}

/* Benchmark Split Block */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-graphic {
    background: #E8F5E9;
    padding: 3rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.graphic-node {
    background: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 2px solid transparent;
}

.graphic-node.active-node {
    border-color: var(--emerald-bright);
    color: var(--emerald-bright);
}

.graphic-line {
    width: 2px;
    height: 40px;
    background: #A5D6A7;
}

/* Backdrop Modal UI */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
}

.modal-box label {
    display: block;
    margin-top: 1rem;
    font-weight: 500;
}

.modal-box input, .modal-box select {
    width: 100%;
    padding: 0.7rem;
    margin-top: 0.4rem;
    border: 1px solid #CCC;
    border-radius: 6px;
}

.modal-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Footer elements */
.main-footer {
    background: var(--earth-dark);
    color: #81C784;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .split-layout { grid-template-columns: 1fr; gap: 2rem; }
    .hero-content h1 { font-size: 2.2rem; }
}