/* DESIGN SYSTEM VARIABLES */
:root {
    /* Color Palette - Light Theme (Default) */
    --bg-primary: #fdfcf7; /* Trắng kem sữa cao cấp, dịu mắt */
    --bg-secondary: #f4f2ea;
    --text-primary: #1c251f; /* Xanh lá đen sẫm màu chữ */
    --text-secondary: #4a584e;
    
    --primary-green: #2d6a4f; /* Xanh lá nông nghiệp */
    --primary-green-dark: #1b4332;
    --primary-green-light: #d8f3dc;
    
    --primary-blue: #0d3b66; /* Xanh dương công nghệ */
    --primary-blue-light: #e0f2fe;
    --primary-blue-dark: #092a4a;
    
    --accent-gold: #e9c46a; /* Vàng nhấn nhẹ */
    --accent-gold-dark: #d4a72d;
    --accent-gold-light: #fef3c7;
    
    --white: #ffffff;
    --border-color: rgba(45, 106, 79, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.04);
    
    /* Fonts */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    
    /* Layout & Spacing */
    --container-width: 800px;
    --container-wide-width: 1100px;
    --header-height: 70px;
}

/* Dark Theme overrides */
body.dark-theme {
    --bg-primary: #121815;
    --bg-secondary: #1a221d;
    --text-primary: #e3e8e5;
    --text-secondary: #9cb0a3;
    
    --primary-green: #52b788;
    --primary-green-light: #2d6a4f;
    --primary-green-dark: #d8f3dc;
    
    --primary-blue: #38bdf8;
    --primary-blue-light: #0d3b66;
    --primary-blue-dark: #e0f2fe;
    
    --accent-gold: #fbbf24;
    --accent-gold-dark: #f59e0b;
    --accent-gold-light: #78350f;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* BASE STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.8;
    letter-spacing: -0.01em;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* PROGRESS BAR */
#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    z-index: 1000;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    transition: width 0.1s ease-out;
}

/* MINIMAL NAVIGATION */
.nav-minimal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    background-color: rgba(var(--bg-primary), 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    transition: background-color 0.4s ease, border-bottom 0.4s ease;
}

.nav-brand {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--primary-green);
    transition: color 0.4s ease;
}

.dark-theme .nav-brand {
    color: var(--primary-green);
}

.nav-title-scroll {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
}

.nav-title-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .moon-icon {
    display: none;
}

.dark-theme .theme-toggle .sun-icon {
    display: none;
}

.dark-theme .theme-toggle .moon-icon {
    display: block;
}

/* HERO COVER */
.hero-cover {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 20px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(28, 37, 31, 0.4) 0%,
        rgba(28, 37, 31, 0.65) 60%,
        rgba(28, 37, 31, 0.85) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 950px;
    color: #ffffff;
    margin-top: 40px;
}

.hero-kicker {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto 50px auto;
    opacity: 0.9;
    color: #e2e8f0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

.scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
}

.mouse-icon {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.mouse-icon .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.5s infinite;
}

@keyframes scrollMouse {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* LAYOUT CONTAINER */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.container-wide {
    width: 90%;
    max-width: var(--container-wide-width);
    margin: 0 auto;
}

/* ARTICLE CONTAINER */
.article-container {
    padding-bottom: 80px;
}

/* LEAD SECTION */
.section-lead {
    padding: 100px 0 60px 0;
}

.lead-text {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    line-height: 1.85;
    color: var(--text-primary);
    font-weight: 400;
}

.drop-cap {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 800;
    float: left;
    line-height: 0.75;
    margin-right: 15px;
    margin-top: 8px;
    color: var(--primary-green);
    text-transform: uppercase;
}

/* SECTION PART BANNERS */
.article-part {
    margin-bottom: 80px;
}

.part-banner {
    position: relative;
    width: 100%;
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    align-items: flex-end;
    margin-bottom: 60px;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.7) 100%
    );
    z-index: 1;
}

.part-banner.theme-blue .banner-overlay {
    background: linear-gradient(
        to bottom,
        rgba(13, 59, 102, 0.15) 0%,
        rgba(13, 59, 102, 0.8) 100%
    );
}

.banner-title-wrapper {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding-bottom: 50px;
}

.part-number {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 15px;
}

.part-banner.theme-blue .part-number {
    color: var(--accent-gold);
}

.part-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

/* CONTENT TEXT STYLING */
.part-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.text-block {
    font-size: 1.125rem; /* ~18px */
    color: var(--text-primary);
    max-width: 760px;
    margin: 0 auto;
}

.text-block p {
    margin-bottom: 30px;
}

.text-block p:last-child {
    margin-bottom: 0;
}

/* PULL QUOTE */
.section-quote {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    margin: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.quote-wrapper {
    max-width: 780px;
    text-align: center;
    position: relative;
}

.quote-deco {
    font-family: var(--font-serif);
    font-size: 8rem;
    line-height: 1;
    color: var(--primary-green);
    opacity: 0.12;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    user-select: none;
}

.section-quote.quote-alt .quote-deco {
    color: var(--primary-blue);
}

.section-quote blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-style: italic;
    line-height: 1.7;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    font-weight: 500;
}

.section-quote cite {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    font-weight: 600;
    display: block;
}

/* INFOGRAPHICS COMMON */
.infographic-wrapper {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    margin: 40px auto;
    width: 100%;
    max-width: 850px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.infographic-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
}

.dark-theme .infographic-wrapper:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.info-header {
    margin-bottom: 35px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.info-tag {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-green);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.theme-blue .info-tag {
    color: var(--primary-blue);
}

.info-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* INFOGRAPHIC 1.1: FLOWCHART */
.flowchart-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.flowchart-scroll {
    overflow-x: auto;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}

.flowchart-track {
    display: flex;
    align-items: center;
    min-width: 1100px;
    padding: 10px;
    justify-content: space-between;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flow-step:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-bottom: 12px;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: all 0.3s ease;
}

.step-icon svg {
    width: 24px;
    height: 24px;
    transition: stroke 0.3s ease;
}

.step-label {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.flow-arrow {
    color: var(--border-color);
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.flow-arrow svg {
    width: 16px;
    height: 16px;
}

/* Active and Hover States */
.flow-step.active .step-icon {
    border-color: var(--primary-green);
    background-color: var(--primary-green);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(45, 106, 79, 0.25);
}

.flow-step.active .step-label {
    color: var(--primary-green);
    font-weight: 700;
}

.flow-step.active + .flow-arrow {
    color: var(--primary-green);
}

/* INFOGRAPHIC 1.2 & DASHBOARD */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.kpi-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: var(--primary-green);
}

.kpi-icon {
    color: var(--text-secondary);
    opacity: 0.4;
    position: absolute;
    top: 15px;
    right: 15px;
    transition: all 0.3s ease;
}

.kpi-icon svg {
    width: 22px;
    height: 22px;
}

.kpi-card:hover .kpi-icon {
    opacity: 0.9;
    color: var(--primary-green);
}

.kpi-value {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1.1;
    margin-bottom: 8px;
    margin-top: 10px;
}

.kpi-value span {
    font-size: 1.2rem;
    font-weight: 500;
    margin-left: 3px;
}

.kpi-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Custom styles for highlighted KPI cards */
.kpi-card.highlight-accent {
    background-color: var(--primary-green-light);
    border-color: var(--primary-green);
}

.kpi-card.highlight-accent .kpi-value {
    color: var(--primary-green-dark);
}

.kpi-card.highlight-accent .kpi-label {
    color: var(--primary-green-dark);
    font-weight: 600;
}

.kpi-card.highlight-gold {
    background-color: var(--accent-gold-light);
    border-color: var(--accent-gold);
}

.kpi-card.highlight-gold .kpi-value {
    color: #78350f;
}

.kpi-card.highlight-gold .kpi-label {
    color: #78350f;
    font-weight: 600;
}

.kpi-card.highlight-gold:hover .kpi-icon {
    color: var(--accent-gold-dark);
}

.kpi-card.highlight-accent:hover .kpi-icon {
    color: var(--primary-green);
}

/* Dashboard Charts */
.dashboard-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
}

.chart-container {
    width: 100%;
}

.chart-header {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gauge-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gauge-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.gauge-track {
    width: 100%;
    height: 14px;
    background-color: var(--bg-secondary);
    border-radius: 7px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    border-radius: 7px;
    width: 0%; /* JS will animate */
    transition: width 1.5s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.gauge-track.track-gold {
    border-color: rgba(233, 196, 106, 0.3);
}

.gauge-fill.fill-gold {
    background: linear-gradient(90deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
}

.gauge-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
    padding: 0 4px;
}

/* INFOGRAPHIC 2.1: CHECKLIST */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.checklist-item {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: all 0.3s ease;
}

.checklist-item:hover {
    border-color: var(--primary-blue);
    transform: translateX(4px);
}

.check-box {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.check-box svg {
    width: 14px;
    height: 14px;
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    transition: stroke-dashoffset 0.5s ease 0.2s;
}

.checklist-item.checked .check-box {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
}

.checklist-item.checked .check-box svg {
    stroke-dashoffset: 0;
}

.checklist-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.checklist-result {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--accent-gold-light);
    border: 2px dashed var(--accent-gold-dark);
    padding: 12px 30px;
    border-radius: 30px;
    color: var(--accent-gold-dark);
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.js-enabled .result-badge {
    opacity: 0;
    transform: scale(0.9);
}

.js-enabled .result-badge.visible {
    opacity: 1;
    transform: scale(1);
}

.badge-icon svg {
    width: 20px;
    height: 20px;
}

/* INFOGRAPHIC 2.2: TIMELINE */
.timeline-container {
    position: relative;
    padding-left: 30px;
    margin: 20px 0;
}

.timeline-track {
    position: absolute;
    top: 5px;
    left: 11px;
    width: 2px;
    height: calc(100% - 10px);
    background-color: var(--border-color);
    z-index: 1;
}

.timeline-node {
    position: relative;
    margin-bottom: 25px;
    z-index: 2;
}

.timeline-node:last-child {
    margin-bottom: 0;
}

.node-marker {
    position: absolute;
    top: 3px;
    left: -30px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.node-content {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.node-content:hover {
    border-color: var(--primary-blue);
    transform: translateX(4px);
}

.node-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.node-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Active Timeline States */
.timeline-node.active .node-marker {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.timeline-node.active .node-title {
    color: var(--primary-blue);
}

/* INFOGRAPHIC 3.1: ECOSYSTEM CIRCLE */
.ecosystem-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    overflow: hidden;
}

.eco-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.eco-center {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 10px 25px rgba(45, 106, 79, 0.4);
    position: relative;
}

.eco-center-box {
    font-family: var(--font-serif);
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.eco-center::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px dashed var(--primary-green);
    animation: rotateDashed 20s linear infinite;
    opacity: 0.4;
}

@keyframes rotateDashed {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.eco-nodes-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

.eco-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 10px var(--shadow-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Calculate positioning using custom properties */
    --distance: 180px;
    margin-top: calc(var(--distance) * sin(var(--angle)));
    margin-left: calc(var(--distance) * cos(var(--angle)));
    
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.js-enabled .eco-node {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
}

.js-enabled .ecosystem-container.animated .eco-node {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition-delay: var(--delay);
}

.eco-node:hover {
    border-color: var(--primary-green);
    background-color: var(--primary-green);
    color: #ffffff;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(45, 106, 79, 0.2);
    z-index: 10;
}

/* Connection line drawing using CSS variables */
.eco-link-line {
    stroke: var(--border-color);
    stroke-width: 1.5;
    stroke-dasharray: 4,4;
    transition: all 0.5s ease;
}

.eco-link-line.active {
    stroke: var(--primary-green);
    stroke-width: 2;
    stroke-dasharray: none;
}

/* INFOGRAPHIC 3.2: 3D FLAT PYRAMID LAYERS */
.pyramid-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
    align-items: center;
    perspective: 800px;
}

.pyramid-layer {
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Dynamic width and color based on layer level */
    --width-ratio: calc(100% - (var(--level) - 1) * 8%);
    width: var(--width-ratio);
    
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.js-enabled .pyramid-layer {
    opacity: 0;
    transform: translateY(30px) rotateX(20deg);
}

.js-enabled .pyramid-container.animated .pyramid-layer {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    transition-delay: calc((8 - var(--level)) * 0.1s);
}

.layer-depth {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    transform: translateZ(-5px);
    transition: all 0.4s ease;
}

.layer-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 25px;
    border-radius: 6px;
    box-shadow: 0 4px 10px var(--shadow-color);
    z-index: 2;
}

.layer-number {
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.7;
}

.layer-title {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Individual layer themes (green gradient shifting to gold/blue) */
.layer-1 .layer-content { background: linear-gradient(90deg, #1b4332, #2d6a4f); }
.layer-1 .layer-depth { background: #132f23; }

.layer-2 .layer-content { background: linear-gradient(90deg, #2d6a4f, #40916c); }
.layer-2 .layer-depth { background: #204a37; }

.layer-3 .layer-content { background: linear-gradient(90deg, #40916c, #52b788); }
.layer-3 .layer-depth { background: #2d664c; }

.layer-4 .layer-content { background: linear-gradient(90deg, #52b788, #74c69d); }
.layer-4 .layer-depth { background: #3c825d; }

.layer-5 .layer-content { background: linear-gradient(90deg, #74c69d, #95d5b2); color: #1c251f; }
.layer-5 .layer-depth { background: #559b72; }

.layer-6 .layer-content { background: linear-gradient(90deg, #95d5b2, #b7e4c7); color: #1c251f; }
.layer-6 .layer-depth { background: #71b188; }

.layer-7 .layer-content { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.layer-7 .layer-depth { background: #0369a1; }

.layer-8 .layer-content { background: linear-gradient(90deg, #e9c46a, #f4a261); }
.layer-8 .layer-depth { background: #b45309; }

/* Hover animations for flat 3D layers */
.pyramid-layer:hover {
    transform: scale(1.03) translateZ(10px);
    z-index: 10;
}

.pyramid-layer:hover .layer-depth {
    transform: translateZ(-10px);
}

/* AUTHOR SECTION */
.section-author {
    padding: 60px 0 20px 0;
    text-align: right;
}

.author-line {
    width: 60px;
    height: 2px;
    background-color: var(--primary-green);
    margin-left: auto;
    margin-bottom: 20px;
}

.author-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
}

.author-role {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    font-weight: 500;
}

.author-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 5px;
}

/* FOOTER Minimal */
.footer-minimal {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    padding: 65px 0;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

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

.footer-brand {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.back-to-top {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-green);
    transition: transform 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 14px;
    height: 14px;
}

/* ANIMATION UTILITIES */
.animate-on-scroll {
    opacity: 1;
    transform: none;
}

.js-enabled .animate-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-enabled .animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    .ecosystem-container {
        height: 480px;
    }
    .eco-node {
        --distance: 155px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    .part-banner {
        height: 45vh;
        background-attachment: scroll; /* Disable parallax on mobile for performance */
    }
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-charts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .checklist-grid {
        grid-template-columns: 1fr;
    }
    .ecosystem-container {
        height: auto;
        flex-direction: column;
        gap: 20px;
        padding: 40px 0;
    }
    .eco-nodes-wrapper {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        top: auto;
        left: auto;
        height: auto;
        width: 100%;
        margin-top: 20px;
    }
    .eco-node {
        position: relative;
        top: auto;
        left: auto;
        transform: none !important;
        margin: 0 !important;
    }
    .ecosystem-container.animated .eco-node {
        transform: none !important;
    }
    .eco-center {
        width: 80px;
        height: 80px;
    }
    .eco-lines {
        display: none;
    }
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .kpi-card {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .infographic-wrapper {
        padding: 20px 15px;
    }
    .pyramid-layer {
        height: 42px;
        --width-ratio: 100% !important; /* Stack cleanly on mobile */
    }
    .layer-content {
        padding: 0 15px;
    }
    .layer-title {
        font-size: 0.85rem;
    }
}
