/* 
   DESIGN SYSTEM FOR HTX DONG NAI E-MAGAZINE 
   Inspired by Bloomberg, Financial Times & Reuters Graphics
*/

:root {
    --color-green: #2E7D32;
    --color-gold: #F9A825;
    --color-blue: #1976D2;
    --color-text-dark: #1A1A1A;
    --color-text-muted: #555555;
    --color-bg-light: #FFFFFF;
    --color-bg-gray: #F5F7F5;
    --color-border: #E0E4E0;
    
    --font-title: 'Encode Sans', sans-serif;
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Encode Sans', sans-serif;
    
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
    --spacing-xxl: 120px;
    
    --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* RESET & BASE STYLES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    font-family: var(--font-serif);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Scroll progress bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-green), var(--color-gold));
    z-index: 1000;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 800;
    line-height: 1.2;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #FFFFFF;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 0.5s ease-out;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    padding: var(--spacing-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-tag {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    color: var(--color-gold);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    animation: fadeInDown 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    max-width: 900px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-title span {
    color: var(--color-gold);
}

/* Value chain overlay flow on Hero */
.value-chain-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.6);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    max-width: 90%;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-num {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 0.85rem;
    background: var(--color-green);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-text {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.flow-arrow {
    display: flex;
    align-items: center;
    color: var(--color-gold);
}

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid white;
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

/* Floating icons background */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
}

.floating-icon {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
}

.icon-ai {
    top: 25%;
    left: 8%;
    animation: hoverFloat 4s ease-in-out infinite;
}

.icon-qr {
    top: 35%;
    right: 10%;
    animation: hoverFloat 5s ease-in-out infinite 1s;
}

.icon-drone {
    bottom: 25%;
    left: 12%;
    animation: hoverFloat 6s ease-in-out infinite 0.5s;
}

/* ARTICLE CONTAINER */
.article-container {
    max-width: 100%;
    margin: 0 auto;
}

/* SECTION BASICS */
.intro-section, .conclusion-section {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.text-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.body-paragraph {
    font-size: 1.15rem;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.lead-paragraph {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-green);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--color-gold);
    padding-left: var(--spacing-md);
    text-align: justify;
}

.font-italic {
    font-style: italic;
    font-size: 1.25rem;
    color: #333333;
}

/* TIMELINE FOR INTRO */
.section-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.intro-timeline-wrapper {
    background: var(--color-bg-gray);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 12px;
    border-left: 4px solid var(--color-green);
    position: sticky;
    top: 40px;
}

.timeline-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-green);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.1rem;
}

.side-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    position: relative;
    padding-left: 20px;
}

.side-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--color-border);
}

.timeline-node {
    display: flex;
    align-items: center;
    position: relative;
}

.node-dot {
    position: absolute;
    left: -20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    border: 2px solid var(--color-bg-gray);
    transition: var(--transition-smooth);
}

.timeline-node.active .node-dot {
    background: var(--color-green);
    box-shadow: 0 0 8px rgba(46, 125, 50, 0.6);
    transform: scale(1.3);
}

.node-content {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.timeline-node.active .node-content {
    color: var(--color-green);
    font-weight: 700;
}

/* CHAPTER HEADER PARALLAX */
.chapter-section {
    position: relative;
    margin-bottom: var(--spacing-xxl);
}

.chapter-header-wrapper {
    position: relative;
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.chapter-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
}

.chapter-header-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-md);
}

.chapter-number {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3rem;
    color: var(--color-gold);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.chapter-title {
    font-size: 2.8rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.chapter-subtitle {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* GRAPHIC CONTAINERS */
.graphic-container {
    max-width: 1000px;
    margin: var(--spacing-xl) auto;
    padding: var(--spacing-md);
    background: var(--color-bg-gray);
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.graphic-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-green);
    letter-spacing: 0.05rem;
    position: relative;
}

.graphic-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-gold);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* INFOGRAPHIC 1: VALUE CHAIN FLOW */
.value-chain-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.chain-box {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: white;
    border: 1px solid var(--color-border);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

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

.chain-box.highlight {
    background: linear-gradient(135deg, #FFF, #F1F8E9);
    border: 2px solid var(--color-green);
}

.chain-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-green {
    background-color: #E8F5E9;
    color: var(--color-green);
}

.bg-gold {
    background-color: #FFF8E1;
    color: #F57F17;
}

.bg-blue {
    background-color: #E3F2FD;
    color: var(--color-blue);
}

.chain-info {
    flex-grow: 1;
}

.chain-label {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text-dark);
}

.chain-desc {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.font-bold {
    font-weight: 700;
}

.text-green {
    color: var(--color-green) !important;
}

.flow-connector {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 24px;
}

.connector-arrow {
    width: 20px;
    height: 20px;
}

/* INFOGRAPHIC 2: HTX CARDS */
.htx-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.htx-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.htx-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.card-header {
    background: var(--color-green);
    color: white;
    padding: var(--spacing-sm);
    text-align: center;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.htx-card:nth-child(2) .card-header {
    background: var(--color-gold);
}

.htx-card:nth-child(3) .card-header {
    background: var(--color-blue);
}

.card-body {
    padding: var(--spacing-md);
    flex-grow: 1;
}

.card-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    height: 100%;
}

.card-body li {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #F0F0F0;
    padding-bottom: var(--spacing-sm);
}

.card-body li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.highlight-num {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 2rem;
    color: var(--color-green);
    line-height: 1;
}

.htx-card:nth-child(2) .highlight-num {
    color: var(--color-gold);
}

.unit {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.card-body p {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

.badge {
    font-family: var(--font-sans);
    background-color: #FFF8E1;
    color: #F57F17;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    align-self: flex-start;
    border: 1px solid rgba(249, 168, 37, 0.3);
}

.font-alt .badge {
    background-color: #E8F5E9;
    color: var(--color-green);
    border-color: rgba(46, 125, 50, 0.2);
}

.card-body .badge + p {
    margin-top: 8px;
}

.icon-label {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--color-blue);
    font-size: 1rem;
}

/* HORIZONTAL TIMELINE FOR SMART AGRICULTURE */
.horizontal-timeline-container {
    overflow-x: auto;
    padding: var(--spacing-md) 0;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.timeline-line {
    position: absolute;
    top: 50px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: var(--color-border);
    z-index: 1;
}

.horizontal-timeline {
    display: flex;
    justify-content: space-between;
    min-width: 900px;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100px;
    text-align: center;
}

.item-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--color-border);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.timeline-item:hover .item-dot {
    border-color: var(--color-green);
    transform: scale(1.2);
}

.timeline-item.active .item-dot {
    background: var(--color-green);
    border-color: #E8F5E9;
    box-shadow: 0 0 8px rgba(46, 125, 50, 0.6);
}

.item-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    line-height: 1.4;
    transition: var(--transition-smooth);
}

.timeline-item.active .item-label {
    color: var(--color-green);
    font-weight: 700;
}

.timeline-item.highlight .item-dot {
    border-color: var(--color-gold);
}

.timeline-item.highlight.active .item-dot {
    background: var(--color-gold);
    border-color: #FFF8E1;
}

.timeline-item.highlight.active .item-label {
    color: var(--color-gold);
}

/* MINDMAP STYLE: INTELLECTUAL PROPERTY */
.mindmap-container {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: var(--spacing-sm);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
}

.mindmap-svg {
    width: 100%;
    height: auto;
    max-height: 500px;
}

.map-line {
    stroke: var(--color-border);
    stroke-width: 2;
    stroke-dasharray: 4;
}

.node {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.node-circle {
    fill: #FFFFFF;
    stroke: var(--color-border);
    stroke-width: 2;
    transition: var(--transition-smooth);
}

.node-text {
    font-family: var(--font-sans);
    font-size: 13px;
    text-anchor: middle;
    fill: var(--color-text-dark);
}

.font-bold {
    font-weight: 700;
    font-size: 14px;
}

/* Central Node Design */
.node.central .node-circle {
    fill: var(--color-green);
    stroke: #E8F5E9;
    stroke-width: 6;
}

.node.central .node-text {
    fill: white;
}

/* Hover Branch Node */
.node.branch:hover .node-circle {
    stroke: var(--color-blue);
    stroke-width: 4;
    fill: #E3F2FD;
    r: 48px;
}

.node.branch:hover .node-text {
    fill: var(--color-blue);
    font-weight: 700;
}

.node.branch.active .node-circle {
    stroke: var(--color-blue);
    stroke-width: 4;
    fill: #E3F2FD;
}

/* Tooltip style */
.mindmap-tooltip {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(33, 33, 33, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    pointer-events: none;
    transition: opacity 0.3s;
    text-align: center;
    z-index: 10;
}

/* STAIRCASE CHART: TRU COT HO TRO */
/* HORIZONTAL PILLARS FLOW: TRU COT HO TRO */
.pillars-horizontal-container {
    position: relative;
    width: 100%;
    margin: var(--spacing-md) 0;
}

.pillars-horizontal-scroll {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding: var(--spacing-md) var(--spacing-xs) var(--spacing-lg);
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--color-green) rgba(0, 0, 0, 0.05);
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for modern feel */
.pillars-horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}

.pillars-horizontal-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.pillars-horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.pillars-horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--color-green);
}

.pillar-horiz-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.pillar-horiz-card.active {
    opacity: 1;
    transform: translateY(0);
}

.pillar-horiz-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(46, 125, 50, 0.08);
    border-color: var(--color-green);
}

.pillar-horiz-num {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 2.5rem;
    color: rgba(46, 125, 50, 0.08);
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-md);
    line-height: 1;
    transition: var(--transition-smooth);
}

.pillar-horiz-card:hover .pillar-horiz-num {
    color: rgba(46, 125, 50, 0.15);
    transform: scale(1.1);
}

.pillar-horiz-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--color-bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-green);
    transition: var(--transition-smooth);
}

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

.pillar-horiz-card:hover .pillar-horiz-icon {
    background: var(--color-green);
    color: white;
}

.pillar-horiz-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text-dark);
    margin-top: 4px;
    line-height: 1.3;
}

.pillar-horiz-desc {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Highlight card 8 */
.pillar-horiz-card.highlight {
    background: linear-gradient(145deg, #ffffff, #f1f8e9);
    border: 2px solid var(--color-green);
}

.pillar-horiz-card.highlight .pillar-horiz-icon {
    background: var(--color-green);
    color: white;
}

.pillar-horiz-card.highlight .pillar-horiz-num {
    color: rgba(46, 125, 50, 0.15);
}

/* AUTHOR SIGNATURE */
.author-signature {
    margin: var(--spacing-md) auto;
    text-align: center;
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.2rem;
    color: var(--color-green);
}

/* FINAL VISUAL NETWORKING */
.final-visual-section {
    position: relative;
    background-color: var(--color-text-dark);
    color: white;
    min-height: 100vh;
    padding: var(--spacing-xxl) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.1) 0%, rgba(18, 18, 18, 0.95) 100%);
    z-index: 1;
}

.final-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.network-svg {
    width: 100%;
    height: auto;
    max-height: 600px;
}

/* Line SVG Animations */
.net-line {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 2;
    transition: var(--transition-smooth);
}

.final-visual-section.active .net-line {
    stroke: var(--color-green);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s forwards ease-in-out;
}

/* Outer node labels */
.net-node circle {
    fill: #1A1A1A;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
    transition: var(--transition-smooth);
}

.final-visual-section.active .net-node.leaf circle {
    stroke: var(--color-green);
    fill: rgba(46, 125, 50, 0.1);
    animation: pulseNode 3s infinite alternate;
}

.net-node text {
    fill: rgba(255, 255, 255, 0.8);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
}

/* Central Block */
.net-central-rect {
    fill: var(--color-green);
    stroke: var(--color-gold);
    stroke-width: 2;
    filter: drop-shadow(0 0 15px rgba(46, 125, 50, 0.4));
}

.net-central-text {
    fill: white;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 16px;
}

.net-central-text.highlight {
    fill: var(--color-gold);
}

/* Narrative dynamic boxes */
.narrative-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 12px;
    max-width: 650px;
    width: 100%;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.narrative-item {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    display: none;
    animation: fadeIn 0.8s ease-in-out;
}

.narrative-item.show {
    display: block;
}

.narrative-item strong {
    color: var(--color-gold);
}

/* FOOTER */
.main-footer {
    background-color: #111111;
    color: #888888;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    border-top: 1px solid #222222;
    font-family: var(--font-sans);
    font-size: 0.85rem;
}

/* KEYFRAMES ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        top: 6px;
    }
    50% {
        opacity: 0.5;
        top: 14px;
    }
    100% {
        opacity: 0;
        top: 6px;
    }
}

@keyframes hoverFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(1deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulseNode {
    0% {
        r: 30px;
        stroke-width: 2;
    }
    100% {
        r: 33px;
        stroke-width: 4;
    }
}

/* SCROLL ANIMATION FADE-IN */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .intro-timeline-wrapper {
        position: static;
        width: 100%;
    }
    
    .htx-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .chapter-title {
        font-size: 2rem;
    }
    
    .chapter-header-wrapper {
        height: 50vh;
        background-attachment: scroll; /* Disable parallax on mobile for performance */
    }
    
    .staircase-chart {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 20px;
        gap: var(--spacing-sm);
    }
    
    .stair-step {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-md);
        position: relative;
    }
    
    .stair-bar {
        height: 45px !important;
        width: 45px !important;
        border-radius: 6px;
        padding-bottom: 0;
        align-items: center;
    }
    
    .stair-info {
        position: static;
        width: auto;
        text-align: left;
        opacity: 0.6;
    }
    
    .chapter-section .article-body {
        padding-bottom: 40px;
    }
    
    .floating-icons {
        display: none; /* Hide decorative floating elements on mobile */
    }

    .value-chain-overlay {
        display: none; /* Simplify Hero on mobile */
    }
}
