/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --pink-lotus: #d9487b;
    /* Hồng sen Đồng Tháp */
    --pink-lotus-light: rgba(217, 72, 123, 0.1);
    --green-agri: #1e5c3f;
    /* Xanh lá nông nghiệp */
    --green-agri-light: rgba(30, 92, 63, 0.1);
    --green-agri-bright: #2d7a4f;
    --gold-rice: #dfa929;
    /* Vàng lúa */
    --gold-rice-light: rgba(223, 169, 41, 0.15);
    --bg-light: #f7fcf9;
    /* Trắng tối giản, ánh xanh nhẹ */
    --bg-white: #ffffff;
    --bg-dark: #0f1612;
    /* Đen luxury, ánh xanh lá đậm */
    --bg-dark-card: #18221c;
    /* Thẻ trong dark mode */
    --text-dark: #121a16;
    --text-muted: #5c6b61;
    --text-light: #fafafa;
    --text-light-muted: #a0b0a6;
    --border-light: #e2ede7;
    --border-dark: #24352b;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* Scroll Progress Bar */
#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--green-agri-bright), var(--pink-lotus));
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(15, 22, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dark);
    z-index: 999;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.lotus-icon {
    filter: drop-shadow(0 0 5px rgba(230, 57, 112, 0.4));
    animation: pulse-glow 3s infinite ease-in-out;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--pink-lotus);
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ==========================================================================
   HERO HEADER
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    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(to bottom,
            rgba(15, 22, 18, 0.3) 0%,
            rgba(15, 22, 18, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 1000px;
    text-align: center;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-tag {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--pink-lotus);
    background-color: rgb(229, 255, 0);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgb(255, 242, 0);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin-bottom: 20px;
}

.scroll-arrow {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.scroll-arrow:hover {
    color: var(--text-light);
}

.scroll-arrow svg {
    animation: bounce 2s infinite;
}

/* ==========================================================================
   LAYOUT STRUCTURE & GENERAL SECTION STYLES
   ========================================================================== */
.section-container {
    width: 100%;
    padding: 8rem 0;
    position: relative;
}

.intro-section {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.intro-grid {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.sapo-box {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-right: 20px;
}

.sapo-text {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    line-height: 1.7;
    color: var(--green-agri);
    font-weight: 500;
    position: relative;
}

.sapo-text:first-child::before {
    content: "“";
    position: absolute;
    top: -30px;
    left: -40px;
    font-size: 6rem;
    font-family: var(--font-serif);
    color: var(--pink-lotus);
    opacity: 0.25;
}

/* Section Background Big Watermark Number */
.section-bg-number {
    position: absolute;
    top: 4rem;
    right: 5%;
    font-size: 20rem;
    font-family: var(--font-sans);
    font-weight: 900;
    line-height: 1;
    color: rgba(30, 92, 63, 0.03);
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

.dark-section .section-bg-number {
    color: rgba(255, 255, 255, 0.02);
}

/* Layout split: Sticky header left - content right */
.section-layout {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.section-sticky-header {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.section-sub {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pink-lotus);
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.25;
    color: var(--green-agri);
    font-weight: 700;
}

.dark-section .section-title {
    color: var(--text-light);
}

.section-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    min-width: 0;
}

.content-block {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.content-block p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-dark);
    font-weight: 300;
    text-align: justify;
}

.dark-section .content-block p {
    color: var(--text-light-muted);
}

/* Dark mode overrides for part sections */
.dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.dark-section .section-title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   INFOGRAPHICS & GRAPHIC CONTAINERS
   ========================================================================== */
.graphic-box {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(30, 92, 63, 0.03);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.dark-section .graphic-box {
    background-color: var(--bg-dark-card);
    border-color: var(--border-dark);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.light-box {
    background-color: var(--bg-white) !important;
    border-color: var(--border-light) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
}

.graphic-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--green-agri);
    margin-bottom: 8px;
    font-weight: 700;
}

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

.dark-section .graphic-title {
    color: var(--text-light);
}

.graphic-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.dark-section .graphic-desc {
    color: var(--text-light-muted);
}

.svg-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   TIMELINE INFOGRAPHIC (INTRO)
   ========================================================================== */
.timeline-container {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
}

.timeline-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--green-agri);
    margin-bottom: 30px;
    font-weight: 600;
    border-left: 3px solid var(--pink-lotus);
    padding-left: 12px;
}

.timeline-flow {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--border-light);
    z-index: 1;
}

.timeline-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.step-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.step-num {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.step-content {
    padding-top: 6px;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
    transition: var(--transition-smooth);
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Timeline Active / Hover states */
.timeline-step:hover .step-dot,
.timeline-step.active .step-dot {
    background-color: var(--green-agri);
    border-color: var(--green-agri);
    box-shadow: 0 0 12px rgba(30, 92, 63, 0.4);
}

.timeline-step:hover .step-num,
.timeline-step.active .step-num {
    color: var(--text-light);
}

.timeline-step:hover .step-content h4,
.timeline-step.active .step-content h4 {
    color: var(--green-agri-bright);
}

/* ==========================================================================
   BEFORE-AFTER INFOGRAPHIC (PART 1 - GRAPHIC 2)
   ========================================================================== */
.before-after-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 15px;
}

.ba-card {
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.before-card {
    background-color: #f2f5f3;
    border-color: #e5eae6;
}

.after-card {
    background-color: var(--green-agri-light);
    border-color: rgba(30, 92, 63, 0.15);
}

.dark-section .before-card {
    background-color: #171d1a;
    border-color: #252e2a;
}

.dark-section .after-card {
    background-color: rgba(45, 122, 79, 0.1);
    border-color: rgba(45, 122, 79, 0.2);
}

.ba-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    background-color: #e0e5e1;
    color: var(--text-muted);
}

.accent-badge {
    background-color: var(--green-agri);
    color: var(--text-light);
}

.ba-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ba-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.ba-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 4px;
    background-color: rgba(220, 50, 50, 0.1);
    color: #c03030;
}

.check-icon {
    background-color: rgba(30, 92, 63, 0.2);
    color: var(--green-agri-bright);
}

.dark-section .check-icon {
    background-color: rgba(45, 122, 79, 0.3);
    color: #40c070;
}

.ba-list li strong {
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
    color: var(--text-dark);
}

.dark-section .ba-list li strong {
    color: var(--text-light);
}

.ba-list li p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 2px;
}

.dark-section .ba-list li p {
    color: var(--text-light-muted);
}

.ba-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.ba-divider-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink-lotus);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.dark-section .ba-divider-circle {
    background-color: var(--bg-dark-card);
    border-color: var(--border-dark);
}

/* ==========================================================================
   FLOW INFOGRAPHIC (PART 2 - GRAPHIC 1)
   ========================================================================== */
.flow-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.flow-card {
    flex: 1;
    background-color: #f7faf8;
    border: 1px solid #e8eee9;
    border-radius: 16px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 250px;
    transition: var(--transition-smooth);
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.flow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 92, 63, 0.05);
    border-color: rgba(30, 92, 63, 0.2);
}

.flow-icon-container {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: var(--green-agri-light);
    color: var(--green-agri-bright);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-pink {
    background-color: var(--pink-lotus-light);
    color: var(--pink-lotus);
}

.bg-gold {
    background-color: var(--gold-rice-light);
    color: var(--gold-rice);
}

.bg-green {
    background-color: var(--green-agri-light);
    color: var(--green-agri);
}

.flow-val-wrapper {
    display: flex;
    flex-direction: column;
}

.flow-val {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.flow-lbl {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.flow-num {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--green-agri);
    line-height: 1.1;
    margin-top: 5px;
}

.bg-pink+.flow-val-wrapper .flow-num {
    color: var(--pink-lotus);
}

.bg-gold+.flow-val-wrapper .flow-num {
    color: var(--gold-rice);
}

.bg-green+.flow-val-wrapper .flow-num {
    color: var(--green-agri-bright);
}

.flow-num-sub {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-agri);
    line-height: 1.3;
}

.flow-num-sub .unit {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.flow-num .unit {
    font-size: 0.9rem;
    font-weight: 500;
}

.flow-card-desc {
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-muted);
}

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

.highlight-card {
    background-color: var(--green-agri-light);
    border-color: rgba(30, 92, 63, 0.2);
}

/* ==========================================================================
   STATS GRID INFOGRAPHIC (PART 2 - GRAPHIC 2)
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.stat-item-box {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: var(--transition-smooth);
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.dark-section .stat-item-box {
    border-color: var(--border-dark);
}

.stat-item-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--pink-lotus);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--pink-lotus);
    line-height: 1;
}

.stat-unit {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light-muted);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light-muted);
    font-weight: 400;
    line-height: 1.4;
}

.full-width-stat {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(30, 92, 63, 0.2) 0%, rgba(217, 72, 123, 0.1) 100%);
    border-color: rgba(30, 92, 63, 0.2) !important;
}

.full-width-stat .stat-number {
    color: var(--gold-rice);
}

/* ==========================================================================
   PARALLAX IMAGE WRAPPER (PART 2 PHOTO)
   ========================================================================== */
.parallax-wrapper {
    width: 100%;
    height: 480px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin: 40px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.parallax-img {
    width: 100%;
    height: 130%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: -15%;
    left: 0;
    will-change: transform;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 30px 40px 20px;
    color: #ffffff;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 300;
}

/* ==========================================================================
   QUOTE BOX
   ========================================================================== */
.quote-container {
    width: 100%;
    margin: 3rem auto 1rem;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 3rem 0;
    display: flex;
    justify-content: center;
}

.dark-section .quote-container {
    border-color: var(--border-dark);
}

blockquote {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    line-height: 1.4;
    text-align: center;
    max-width: 900px;
    color: var(--pink-lotus);
    font-weight: 400;
    position: relative;
}

blockquote::before,
blockquote::after {
    content: '"';
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--pink-lotus);
    opacity: 0.3;
    position: absolute;
}

blockquote::before {
    top: -20px;
    left: -30px;
}

blockquote::after {
    bottom: -50px;
    right: -30px;
}

/* ==========================================================================
   KẾT BÀI SECTION
   ========================================================================== */
.outro-section {
    position: relative;
    width: 100%;
    padding: 8rem 0 4rem;
    color: var(--text-light);
    overflow: hidden;
}

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

.outro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(15, 22, 18, 0.95) 0%,
            rgba(15, 22, 18, 0.98) 100%);
    z-index: 2;
}

.outro-content-container {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.outro-text-wrapper {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.outro-text-wrapper p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-light-muted);
    font-weight: 300;
    text-align: justify;
}

.author-block {
    margin-top: 30px;
    border-top: 1px solid var(--border-dark);
    padding-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.author-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--pink-lotus);
    font-weight: 600;
}

.footer-graphic {
    background-color: var(--bg-dark-card) !important;
    border-color: var(--border-dark) !important;
    width: 100%;
}

.footer-graphic .graphic-title {
    color: var(--text-light) !important;
}

.footer-graphic .graphic-desc {
    color: var(--text-light-muted) !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: #080c0a;
    border-top: 1px solid var(--border-dark);
    padding: 40px 0;
    position: relative;
    z-index: 3;
}

.footer-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-credits {
    font-size: 0.8rem;
    color: var(--text-light-muted);
    text-align: center;
    font-weight: 300;
}

/* ==========================================================================
   INTERACTIVE SVG ANIMATIONS
   ========================================================================== */
.interactive-svg {
    max-height: 550px;
}

/* Connection pulsing lines */
.dash-line {
    stroke-dasharray: 6;
    animation: dash 30s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -1000;
    }
}

/* Interactive SVG Nodes */
.svg-node {
    cursor: pointer;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.svg-node circle,
.svg-node text,
.svg-node rect {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-box: fill-box;
    transform-origin: center;
    will-change: transform;
}

.svg-node:hover circle,
.svg-node:hover rect {
    transform: scale(1.08);
}

.svg-node:hover text {
    transform: scale(1.04);
}

.central-node circle:nth-child(2) {
    animation: pulse-ring 4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        stroke-opacity: 0.9;
    }

    50% {
        transform: scale(1.02);
        stroke-opacity: 0.5;
        stroke-width: 4px;
    }

    100% {
        transform: scale(0.95);
        stroke-opacity: 0.9;
    }
}

/* Glow filter animations */
@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(230, 57, 112, 0.4));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(230, 57, 112, 0.8));
    }
}

/* ==========================================================================
   SCROLL INTERSECTION EFFECTS (FADE-IN / SLIDE-UP)
   ========================================================================== */
.fade-in-element {
    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);
    will-change: opacity, transform;
}

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

/* Delayed fade-ins for grids/flows */
.flow-card:nth-child(1) {
    transition-delay: 0.1s;
}

.flow-card:nth-child(3) {
    transition-delay: 0.2s;
}

.flow-card:nth-child(5) {
    transition-delay: 0.3s;
}

.flow-card:nth-child(7) {
    transition-delay: 0.4s;
}

.stat-item-box:nth-child(1) {
    transition-delay: 0.1s;
}

.stat-item-box:nth-child(2) {
    transition-delay: 0.2s;
}

.stat-item-box:nth-child(3) {
    transition-delay: 0.3s;
}

.stat-item-box:nth-child(4) {
    transition-delay: 0.4s;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Large Desktop - adjustment for extreme wide screens */
@media (min-width: 1400px) {
    body {
        font-size: 17px;
    }
}

/* Medium Screens - Notebooks & IPads */
@media (max-width: 1100px) {
    html {
        font-size: 15px;
    }

    .section-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-sticky-header {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .sapo-box {
        padding-right: 0;
    }

    .before-after-container {
        grid-template-columns: 1fr;
    }

    .ba-divider {
        padding: 15px 0;
    }

    .ba-divider-circle {
        transform: rotate(90deg);
    }

    .flow-container {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 10px 5px 25px 5px;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
    }

    .flow-container::-webkit-scrollbar {
        height: 6px;
    }

    .flow-container::-webkit-scrollbar-track {
        background: rgba(30, 92, 63, 0.05);
        border-radius: 10px;
    }

    .flow-container::-webkit-scrollbar-thumb {
        background: rgba(30, 92, 63, 0.2);
        border-radius: 10px;
    }

    .flow-container::-webkit-scrollbar-thumb:hover {
        background: rgba(30, 92, 63, 0.4);
    }

    .flow-card {
        flex: 0 0 280px;
        min-height: 230px;
        scroll-snap-align: start;
    }

    .flow-arrow {
        flex: 0 0 30px;
        transform: none;
        justify-content: center;
        padding: 0;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

/* Mobile Screens */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .section-container {
        padding: 5rem 0;
    }

    .navbar {
        height: 60px;
    }

    .nav-menu {
        display: none;
        /* Hide standard nav on mobile */
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-tag {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-bg-number {
        font-size: 12rem;
        top: 2rem;
    }

    .graphic-box {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .full-width-stat {
        grid-column: span 1;
    }

    blockquote {
        font-size: 1.6rem;
    }

    blockquote::before {
        left: -10px;
    }

    blockquote::after {
        right: -10px;
    }

    .parallax-wrapper {
        height: 300px;
    }

    .outro-content-container {
        gap: 4rem;
    }

    .svg-container {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding: 10px 5px 20px 5px;
        width: 100%;
        max-width: 100%;
    }

    .svg-container::-webkit-scrollbar {
        height: 6px;
    }

    .svg-container::-webkit-scrollbar-track {
        background: rgba(30, 92, 63, 0.05);
        border-radius: 10px;
    }

    .svg-container::-webkit-scrollbar-thumb {
        background: rgba(30, 92, 63, 0.2);
        border-radius: 10px;
    }

    .svg-container::-webkit-scrollbar-thumb:hover {
        background: rgba(30, 92, 63, 0.4);
    }

    .interactive-svg {
        min-width: 650px;
        height: auto;
    }
}