/* ==========================================================================
   IKAMaT - Cinematic 3D Website Stylesheet
   Yayasan Inspirasi Keluarga KeSEMaT
   Target Domain: https://ikamat.my.id
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg-deep: #03140e;
    --bg-dark: #061e16;
    --bg-surface: #0a291f;
    --bg-card: rgba(10, 41, 31, 0.72);
    --bg-glass: rgba(14, 52, 40, 0.55);
    
    --primary-emerald: #00e599;
    --primary-glow: rgba(0, 229, 153, 0.35);
    --secondary-mint: #4ade80;
    --accent-amber: #f59e0b;
    --accent-gold: #ffd166;
    --accent-glow: rgba(245, 158, 11, 0.3);
    
    --text-pure: #ffffff;
    --text-primary: #e6f4f1;
    --text-muted: #8ea89d;
    --text-dark: #122820;

    --border-glass: rgba(255, 255, 255, 0.12);
    --border-emerald: rgba(0, 229, 153, 0.28);
    --blur-glass: blur(18px);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    --shadow-cinematic: 0 20px 45px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 35px var(--primary-glow);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    background: radial-gradient(circle at 50% 0%, #08291d 0%, var(--bg-deep) 70%);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* 3D WebGL Background Canvas */
#webgl-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.88;
}

/* Glassmorphism base helper */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: var(--shadow-cinematic);
    transition: all 0.35s ease;
}

.glass-panel:hover {
    border-color: var(--border-emerald);
    box-shadow: var(--shadow-cinematic), 0 0 25px rgba(0, 229, 153, 0.15);
}

/* Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#main-header.scrolled {
    padding: 12px 0;
    background: rgba(3, 20, 14, 0.85);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 229, 153, 0.4));
    transition: transform 0.3s ease;
}

.brand-logo-wrap:hover .brand-logo-img {
    transform: scale(1.05);
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-pure);
    letter-spacing: 1.5px;
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--primary-emerald);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.25s, text-shadow 0.25s;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-emerald);
    box-shadow: 0 0 10px var(--primary-emerald);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-emerald);
    text-shadow: 0 0 12px var(--primary-glow);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Sound Toggle & Mode Buttons */
.icon-btn-glass {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: var(--blur-glass);
    transition: all 0.3s ease;
}

.icon-btn-glass:hover, .icon-btn-glass.playing {
    background: rgba(0, 229, 153, 0.15);
    border-color: var(--primary-emerald);
    color: var(--primary-emerald);
    box-shadow: 0 0 15px var(--primary-glow);
}

.eq-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.eq-bars .bar {
    width: 2px;
    background: var(--primary-emerald);
    animation: eq-pulse 1s infinite alternate ease-in-out;
}

.eq-bars .bar:nth-child(2) { animation-delay: 0.2s; }
.eq-bars .bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes eq-pulse {
    0% { height: 2px; }
    100% { height: 12px; }
}

/* Action Buttons */
.btn-primary-emerald {
    background: linear-gradient(135deg, #00e599 0%, #059669 100%);
    color: #021a12;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 229, 153, 0.4);
    transition: all 0.3s ease;
}

.btn-primary-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 153, 0.6);
    background: linear-gradient(135deg, #26ffb5 0%, #10b981 100%);
}

.btn-secondary-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--accent-glow);
    transition: all 0.3s ease;
}

.btn-secondary-amber:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

.btn-outline-glass {
    background: transparent;
    color: var(--text-pure);
    border: 1px solid var(--border-glass);
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    backdrop-filter: var(--blur-glass);
    transition: all 0.3s ease;
}

.btn-outline-glass:hover {
    background: var(--bg-glass);
    border-color: var(--primary-emerald);
    color: var(--primary-emerald);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-pure);
    transition: all 0.3s ease;
}

/* ==========================================================================
   HERO 3D SECTION
   ========================================================================== */
.hero-3d-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 60px;
    z-index: 2;
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 229, 153, 0.12);
    border: 1px solid var(--border-emerald);
    border-radius: 999px;
    color: var(--primary-emerald);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-badge i {
    animation: spin-pulse 3s infinite linear;
}

@keyframes spin-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.15;
    font-weight: 900;
    color: var(--text-pure);
    margin-bottom: 18px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, #00e599 0%, #ffd166 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 620px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

/* 3D Mode & Camera Switcher Widget */
.hero-controls-card {
    padding: 24px;
    background: rgba(5, 25, 18, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    backdrop-filter: var(--blur-glass);
}

.controls-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: var(--primary-emerald);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.time-modes-flex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.time-mode-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.25s ease;
}

.time-mode-btn i {
    font-size: 1.1rem;
}

.time-mode-btn:hover, .time-mode-btn.active {
    background: var(--primary-emerald);
    color: var(--text-dark);
    border-color: var(--primary-emerald);
    box-shadow: 0 0 15px var(--primary-glow);
}

.camera-angles-flex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cam-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 6px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cam-btn:hover {
    color: var(--text-pure);
    border-color: var(--border-emerald);
    background: rgba(0, 229, 153, 0.1);
}

/* Hero Slides Overlay Banner */
.hero-slider-wrap {
    margin-top: 24px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    background: rgba(4, 18, 13, 0.6);
}

.hero-slide-item {
    display: none;
    padding: 20px;
    animation: fadeIn 0.6s ease;
}

.hero-slide-item.active {
    display: flex;
    align-items: center;
    gap: 20px;
}

.slide-thumb {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-glass);
}

.slide-body h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-pure);
    margin-bottom: 4px;
}

.slide-body p {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-dots-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-bottom: 12px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary-emerald);
}

/* ==========================================================================
   STATISTICS IMPACT SECTION
   ========================================================================== */
.stats-section {
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 28px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--primary-emerald);
    margin-bottom: 12px;
    display: inline-block;
    filter: drop-shadow(0 0 12px var(--primary-glow));
}

.stat-number-wrap {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-pure);
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ==========================================================================
   SECTION COMMON HEADERS
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px auto;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--primary-emerald);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--text-pure);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   ABOUT & ECOSYSTEM ARCHITECTURE
   ========================================================================== */
.about-section {
    padding: 90px 0;
    position: relative;
    z-index: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text-panel {
    padding: 40px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.about-feat-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.about-feat-item i {
    color: var(--primary-emerald);
    font-size: 1.1rem;
    margin-top: 2px;
}

.ecosystem-architecture-card {
    padding: 36px;
}

.eco-wing-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.badge-social {
    background: rgba(0, 229, 153, 0.15);
    color: var(--primary-emerald);
    border: 1px solid var(--border-emerald);
}

.badge-business {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    border: 1px solid var(--accent-glow);
}

.eco-wing-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-pure);
    margin-bottom: 8px;
}

.eco-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.eco-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-primary);
}

/* ==========================================================================
   3D INTERVENTION MAP SECTION
   ========================================================================== */
.map-section {
    padding: 90px 0;
    position: relative;
    z-index: 2;
}

.map-wrapper-card {
    padding: 24px;
    position: relative;
    border-radius: 24px;
}

#map-3d-container {
    width: 100%;
    height: 520px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(circle at center, #07261d 0%, #03140e 80%);
}

.map-legend-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(5, 22, 16, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 14px 20px;
    backdrop-filter: var(--blur-glass);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-primary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.amber { background: var(--accent-amber); box-shadow: 0 0 8px var(--accent-amber); }
.legend-dot.emerald { background: var(--primary-emerald); box-shadow: 0 0 8px var(--primary-emerald); }

.glass-tooltip {
    position: fixed;
    display: none;
    z-index: 9999;
    padding: 10px 14px;
    background: rgba(5, 25, 18, 0.9);
    border: 1px solid var(--primary-emerald);
    border-radius: 8px;
    color: #fff;
    font-size: 0.82rem;
    pointer-events: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   PROGRAMS & SERVICES GRID
   ========================================================================== */
.programs-section, .services-section {
    padding: 90px 0;
    position: relative;
    z-index: 2;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.program-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.program-card:hover {
    transform: translateY(-6px);
}

.program-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(0, 229, 153, 0.12);
    border: 1px solid var(--border-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-emerald);
    margin-bottom: 20px;
}

.program-card-title {
    font-family: var(--font-heading);
    font-size: 1.28rem;
    color: var(--text-pure);
    margin-bottom: 12px;
}

.program-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.program-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.program-metric {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 700;
}

/* ==========================================================================
   ECOSYSTEM & BRANDS SHOWCASE
   ========================================================================== */
.ecosystem-section {
    padding: 90px 0;
    position: relative;
    z-index: 2;
}

.unit-filters-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.unit-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.unit-filter-btn:hover, .unit-filter-btn.active {
    background: var(--primary-emerald);
    color: var(--text-dark);
    border-color: var(--primary-emerald);
    box-shadow: 0 0 15px var(--primary-glow);
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.ecosystem-unit-card {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.ecosystem-unit-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-emerald);
}

.unit-logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 14px;
    border: 2px solid var(--border-glass);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unit-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.unit-name-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-pure);
    font-weight: 700;
    margin-bottom: 4px;
}

.unit-category-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ==========================================================================
   3D BLUE CARBON & GROWTH SIMULATOR
   ========================================================================== */
.calculator-section {
    padding: 90px 0;
    position: relative;
    z-index: 2;
}

.calc-card-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    padding: 40px;
}

.calc-inputs-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tree-slider-wrap {
    margin: 24px 0;
}

.tree-slider-wrap input[type=range] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    -webkit-appearance: none;
    accent-color: var(--primary-emerald);
}

.preset-pills-flex {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.preset-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.preset-pill:hover, .preset-pill.active {
    background: var(--primary-emerald);
    color: var(--text-dark);
    border-color: var(--primary-emerald);
}

.calc-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 14px;
}

.metric-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
}

.metric-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.metric-val {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-emerald);
}

#carbon-3d-preview {
    width: 100%;
    height: 380px;
    border-radius: 16px;
    background: radial-gradient(circle at center, #092e23 0%, #031610 80%);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-glass);
}

/* ==========================================================================
   PRODUCTS & STORE SECTION
   ========================================================================== */
.products-section {
    padding: 90px 0;
    position: relative;
    z-index: 2;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.product-item-card {
    overflow: hidden;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
}

.product-item-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item-card:hover .product-item-img {
    transform: scale(1.06);
}

.product-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-category-tag {
    font-size: 0.75rem;
    color: var(--accent-amber);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-pure);
    margin: 6px 0 10px 0;
}

.product-price {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    color: var(--primary-emerald);
    font-weight: 700;
    margin-bottom: 14px;
}

/* ==========================================================================
   TEAM MEMBERS SHOWCASE
   ========================================================================== */
.team-section {
    padding: 90px 0;
    position: relative;
    z-index: 2;
}

.team-avatars-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.team-avatar-item {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-glass);
    transition: all 0.3s ease;
    opacity: 0.65;
}

.team-avatar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar-item:hover, .team-avatar-item.active {
    opacity: 1;
    border-color: var(--primary-emerald);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.15);
}

.team-bio-panel {
    display: none;
    padding: 36px;
    border-radius: 20px;
}

.team-bio-panel.active {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: center;
}

.team-large-photo {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.team-details h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-pure);
    margin-bottom: 4px;
}

.team-role-title {
    color: var(--primary-emerald);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
    display: block;
}

.team-bio-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ==========================================================================
   PARTNERS LOGO CAROUSEL
   ========================================================================== */
.partners-section {
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.partners-scroll-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

.partners-scroll-track::-webkit-scrollbar {
    display: none;
}

.partner-logo-box {
    flex: 0 0 160px;
    height: 90px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.partner-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(80%);
    transition: filter 0.3s ease;
}

.partner-logo-box:hover {
    transform: translateY(-4px);
}

.partner-logo-box:hover img {
    filter: grayscale(0%);
}

/* ==========================================================================
   TESTIMONIALS & IMPACT STORIES
   ========================================================================== */
.testimonials-section {
    padding: 90px 0;
    position: relative;
    z-index: 2;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testi-quote {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 24px;
    position: relative;
}

.testi-author-flex {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testi-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-emerald);
}

.testi-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-pure);
    font-weight: 700;
}

.testi-org {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   NEWS & ARTICLES
   ========================================================================== */
.news-section {
    padding: 90px 0;
    position: relative;
    z-index: 2;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.news-card {
    overflow: hidden;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

.news-img-box {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.08);
}

.news-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(3, 20, 14, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-emerald);
    color: var(--primary-emerald);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.news-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.news-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-pure);
    line-height: 1.35;
    margin-bottom: 12px;
}

/* ==========================================================================
   DONATION & CONTACT SECTION
   ========================================================================== */
.contact-donate-section {
    padding: 90px 0;
    position: relative;
    z-index: 2;
}

.contact-donate-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.form-control-glass {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-pure);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.25s;
}

.form-control-glass:focus {
    border-color: var(--primary-emerald);
    background: rgba(0, 229, 153, 0.06);
    box-shadow: 0 0 15px var(--primary-glow);
}

.form-control-glass::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
#colophon {
    background: #020d09;
    border-top: 1px solid var(--border-glass);
    padding: 70px 0 30px 0;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-pure);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 10px;
}

.footer-links-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-links-list a:hover {
    color: var(--primary-emerald);
    padding-left: 6px;
}

.social-icons-flex {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-pure);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-btn:hover {
    background: var(--primary-emerald);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--primary-glow);
}

.bottom-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.custom-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.modal-content-card {
    position: relative;
    width: 90%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px;
    z-index: 2;
    animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-pure);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating WhatsApp Consultation */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: #25d366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.floating-whatsapp i {
    font-size: 1.4rem;
}

.floating-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* Alerts */
.alert-success-glass {
    background: rgba(0, 229, 153, 0.15);
    border: 1px solid var(--primary-emerald);
    color: var(--primary-emerald);
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 600;
}

.alert-error-glass {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #f87171;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-content-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.6rem; }
    .about-grid { grid-template-columns: 1fr; }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .units-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .calc-card-grid { grid-template-columns: 1fr; }
    .contact-donate-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        height: 100vh;
        background: #031610;
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        transition: right 0.4s ease;
        padding: 40px;
        z-index: 1001;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    }
    .nav-menu-wrapper.active { right: 0; }
    .nav-links { flex-direction: column; gap: 16px; width: 100%; }
    .nav-links a { font-size: 1.1rem; }
    .hero-title { font-size: 2.1rem; }
    .programs-grid { grid-template-columns: 1fr; }
    .units-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .team-bio-panel.active { grid-template-columns: 1fr; }
    .team-large-photo { height: 260px; }
    .stats-grid { grid-template-columns: 1fr; }
}
