/*
 * Avicore Open Source - Main Stylesheet
 * Phong cách: Tech-Documentation + Nông nghiệp
 * Version: 1.0.0
 */

/* ============ CSS VARIABLES ============ */
:root {
    /* Primary Colors - Natural Green */
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-200: #bbf7d0;
    --primary-300: #86efac;
    --primary-400: #4ade80;
    --primary-500: #22c55e;
    --primary-600: #16a34a;
    --primary-700: #15803d;
    --primary-800: #166534;
    --primary-900: #14532d;

    /* Accent Colors - Warm Earth */
    --accent-50: #fffbeb;
    --accent-100: #fef3c7;
    --accent-200: #fde68a;
    --accent-300: #fcd34d;
    --accent-400: #fbbf24;
    --accent-500: #f59e0b;
    --accent-600: #d97706;
    --accent-700: #b45309;
    --accent-800: #92400e;
    --accent-900: #78350f;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Layer Colors (6 Protection Layers) */
    --layer-thermal: #ef4444;
    --layer-oil: #f59e0b;
    --layer-lime: #fafafa;
    --layer-inorganic: #78716c;
    --layer-tobacco: #84cc16;
    --layer-iot: #3b82f6;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

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

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-700);
}

ul, ol {
    list-style: none;
}

/* ============ CONTAINER ============ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============ NAVIGATION ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.nav-logo i {
    font-size: 1.5rem;
    color: var(--primary-500);
}

.nav-logo .badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    background: var(--primary-100);
    color: var(--primary-700);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--gray-50) 50%, var(--accent-50) 100%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--primary-100) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--accent-100) 0%, transparent 50%);
    opacity: 0.7;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--primary-100);
    color: var(--primary-700);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.hero-badge i {
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-md);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

/* Avi Components */
.hero-avi-components {
    background: linear-gradient(135deg, #fef3c7, #fef9c3);
    border: 2px solid #fbbf24;
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.avi-intro {
    font-size: 0.95rem;
    color: #92400e;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.avi-intro i {
    color: #f59e0b;
    margin-right: var(--space-xs);
}

.avi-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.avi-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.avi-item:hover {
    transform: scale(1.05);
}

.avi-core {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.avi-foodspa {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.avi-split {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.avi-plus {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f59e0b;
}

/* Model Source */
.hero-model-source {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-xl);
    font-size: 0.9rem;
    color: #1e40af;
}

.hero-model-source i {
    color: #3b82f6;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.hero-model-source strong {
    color: #1d4ed8;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(34, 197, 94, 0.5);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
    color: var(--primary-700);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-600);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Hero Visual - Protection Diagram */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.protection-diagram {
    position: relative;
    width: 400px;
    height: 400px;
}

.diagram-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-300), var(--accent-400));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--accent-800);
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.diagram-center i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.diagram-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 3px solid;
    opacity: 0.8;
    animation: pulse 3s ease-in-out infinite;
}

.diagram-ring .ring-label {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: white;
}

.ring-1 {
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    border-color: var(--layer-iot);
    animation-delay: 0s;
}
.ring-1 .ring-label { color: var(--layer-iot); }

.ring-2 {
    width: 160px;
    height: 160px;
    margin: -80px 0 0 -80px;
    border-color: var(--layer-tobacco);
    animation-delay: 0.5s;
}
.ring-2 .ring-label { color: var(--layer-tobacco); }

.ring-3 {
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    border-color: var(--layer-inorganic);
    animation-delay: 1s;
}
.ring-3 .ring-label { color: var(--layer-inorganic); }

.ring-4 {
    width: 240px;
    height: 240px;
    margin: -120px 0 0 -120px;
    border-color: var(--gray-400);
    border-style: dashed;
    animation-delay: 1.5s;
}
.ring-4 .ring-label { color: var(--gray-600); }

.ring-5 {
    width: 280px;
    height: 280px;
    margin: -140px 0 0 -140px;
    border-color: var(--layer-oil);
    animation-delay: 2s;
}
.ring-5 .ring-label { color: var(--layer-oil); }

.ring-6 {
    width: 320px;
    height: 320px;
    margin: -160px 0 0 -160px;
    border-color: var(--layer-thermal);
    animation-delay: 2.5s;
}
.ring-6 .ring-label { color: var(--layer-thermal); }

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* ============ SECTIONS ============ */
.section {
    padding: 80px 0;
    position: relative;
    scroll-margin-top: 90px;
}

.section-alt {
    background: linear-gradient(180deg, #f8fdf9 0%, #ecfdf5 100%);
}

.section-story {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: white;
}

/* ============ LIÊN HOÀN CƯỚC SECTION - RED/ORANGE THEME ============ */
#lien-hoan-cuoc {
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 50%, #fffbeb 100%);
    position: relative;
    overflow: hidden;
}

#lien-hoan-cuoc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

#lien-hoan-cuoc .section-tag {
    background: linear-gradient(135deg, #ef4444, #f59e0b) !important;
    color: white !important;
}

#lien-hoan-cuoc .section-header h2 {
    background: linear-gradient(135deg, #dc2626, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ TRIẾT LÝ 3 TỰ SECTION - GREEN/TEAL THEME ============ */
#3s-philosophy {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 50%, #ecfeff 100%);
    position: relative;
    overflow: hidden;
}

#3s-philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

#3s-philosophy .section-tag {
    background: linear-gradient(135deg, #22c55e, #14b8a6) !important;
    color: white !important;
}

#3s-philosophy .section-header h2 {
    background: linear-gradient(135deg, #16a34a, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ IOT PROGRAMMING SECTION - BLUE/PURPLE THEME ============ */
#iot-programming {
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 50%, #fdf4ff 100%);
    position: relative;
    overflow: hidden;
}

#iot-programming::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

#iot-programming .section-tag {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    color: white !important;
}

#iot-programming .section-header h2 {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ RESOURCES SECTION ============ */
#resources {
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}

/* ============ BRAINFARM GALLERY SECTION ============ */
.section-brainfarm {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #134e4a 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: var(--space-3xl) 0;
}

.section-brainfarm .section-header h2 {
    color: white;
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-brainfarm .section-header p {
    color: var(--gray-300);
}

.brainfarm-tag {
    background: linear-gradient(135deg, var(--primary-500), #22d3ee) !important;
    color: white !important;
}

/* BrainFarm Highlight */
.brainfarm-highlight {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
    border: 2px solid #22c55e;
    border-radius: var(--radius-xl);
    padding: var(--space-md) var(--space-xl);
    margin-top: var(--space-lg);
    color: #ecfdf5;
    font-size: 0.95rem;
    animation: highlightGlow 2s infinite alternate;
}

@keyframes highlightGlow {
    0% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.3); }
    100% { box-shadow: 0 0 25px rgba(34, 197, 94, 0.6); }
}

.brainfarm-highlight i {
    color: #4ade80;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.brainfarm-highlight strong {
    color: #86efac;
}

/* Background Effects */
.brainfarm-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(74, 222, 128, 0.3);
    border-radius: 50%;
    animation: floatParticle 15s infinite ease-in-out;
}

.floating-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.floating-particle:nth-child(2) { left: 80%; top: 40%; animation-delay: 5s; }
.floating-particle:nth-child(3) { left: 50%; top: 70%; animation-delay: 10s; }

.floating-leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234ade80' opacity='0.3'%3E%3Cpath d='M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8,20C19,20 22,3 22,3C21,5 14,5.25 9,6.25C4,7.25 2,11.5 2,13.5C2,15.5 3.75,17.25 3.75,17.25C7,8 17,8 17,8Z'/%3E%3C/svg%3E") no-repeat center;
    animation: floatLeaf 20s infinite ease-in-out;
    opacity: 0.4;
}

.floating-leaf:nth-child(4) { left: 20%; top: 30%; animation-delay: 2s; }
.floating-leaf:nth-child(5) { left: 70%; top: 60%; animation-delay: 8s; }

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(50px, -30px) scale(1.5); opacity: 0.6; }
    50% { transform: translate(100px, 20px) scale(1); opacity: 0.3; }
    75% { transform: translate(50px, 50px) scale(1.2); opacity: 0.5; }
}

@keyframes floatLeaf {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(45deg); }
    50% { transform: translate(60px, 30px) rotate(90deg); }
    75% { transform: translate(30px, 60px) rotate(135deg); }
}

/* Gallery Grid */
.brainfarm-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-xs);
}

.gallery-content h3 i {
    color: var(--primary-400);
}

.gallery-content p {
    font-size: 0.85rem;
    color: var(--gray-300);
}

/* BrainFarm Features */
.brainfarm-features {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.bf-feature {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.bf-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-400);
}

.bf-feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--space-sm);
    background: linear-gradient(135deg, var(--primary-500), #22d3ee);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.bf-feature h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-xs);
}

.bf-feature p {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* IP Counter */
.ip-counter {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.ip-badge {
    flex-shrink: 0;
    text-align: center;
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    border-radius: var(--radius-lg);
}

.ip-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-mono);
    line-height: 1;
}

.ip-label {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-200);
    margin-top: var(--space-xs);
}

.ip-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.ip-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--gray-300);
    transition: all 0.2s ease;
}

.ip-item:hover {
    background: rgba(74, 222, 128, 0.2);
    color: white;
}

.ip-item.active {
    background: var(--primary-500);
    color: white;
    font-weight: 600;
}

.ip-item.more {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    font-style: italic;
}

.ip-item i {
    font-size: 0.9rem;
}

/* IP Sectors - Các mảng liên quan */
.ip-sectors {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.ip-sectors h4 {
    color: var(--gray-300);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.ip-sectors h4 i {
    color: var(--primary-400);
}

.sector-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.sector-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--primary-300);
    transition: all 0.3s ease;
}

.sector-tag:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.15));
    border-color: var(--primary-400);
    transform: translateY(-2px);
    color: white;
}

.sector-tag i {
    font-size: 0.75rem;
    color: var(--primary-400);
}

.sector-tag.more {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    color: var(--gray-400);
    font-style: italic;
}

.sector-tag.more:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Responsive BrainFarm */
@media (max-width: 1024px) {
    .brainfarm-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
        height: 300px;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .gallery-item.wide {
        grid-column: span 2;
    }
    
    .brainfarm-features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ip-counter {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .brainfarm-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large,
    .gallery-item.wide,
    .gallery-item {
        grid-column: span 1;
        height: 200px;
    }
    
    .brainfarm-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-overlay {
        opacity: 1;
    }
}

/* ============ ORIGIN STORY SECTION ============ */
.section-story .section-header h2 {
    color: white;
}

.section-story .section-header p {
    color: var(--gray-400);
}

.story-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.story-item {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    position: relative;
}

.story-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 70px;
    bottom: -30px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-500), var(--gray-700));
}

.story-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.story-icon.research {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.story-icon.danger {
    background: linear-gradient(135deg, var(--error), #dc2626);
    color: white;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.story-icon.conclusion {
    background: linear-gradient(135deg, var(--accent-400), var(--accent-500));
    color: var(--gray-900);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.story-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
}

.story-card h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-md);
}

.story-card h3 i {
    color: var(--primary-400);
}

.story-card p {
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.story-card strong {
    color: var(--primary-400);
}

.story-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.story-stat {
    text-align: center;
}

.story-stat.arrow {
    color: var(--primary-400);
    font-size: 1.5rem;
}

.story-stat .stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-400);
    font-family: var(--font-mono);
    line-height: 1;
}

.story-stat .stat-text {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-top: var(--space-xs);
}

/* Danger Card */
.story-card.danger-card {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.story-card.danger-card h3 i {
    color: var(--error);
}

.story-card.danger-card strong {
    color: var(--error);
}

.failure-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.failure-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: #fca5a5;
}

.failure-item i {
    color: var(--error);
}

/* Conclusion Card */
.story-card.conclusion-card {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.1);
}

.story-card.conclusion-card h3 i {
    color: var(--accent-400);
}

.story-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray-200);
    line-height: 1.8;
    padding-left: var(--space-lg);
    border-left: 3px solid var(--accent-400);
    margin-bottom: var(--space-lg);
}

.story-card blockquote strong {
    color: var(--accent-300);
    font-style: normal;
}

.conclusion-highlight {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    border-radius: var(--radius-lg);
    color: white;
    font-weight: 600;
}

.conclusion-highlight i {
    font-size: 1.3rem;
}

/* Responsive Story */
@media (max-width: 768px) {
    .story-item {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .story-item::after {
        display: none;
    }
    
    .story-icon {
        margin: 0 auto;
    }
    
    .story-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .failure-stats {
        justify-content: center;
    }
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--primary-100);
    color: var(--primary-700);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ============ LAYERS VISUALIZATION ============ */
.layers-visualization {
    margin-bottom: var(--space-3xl);
}

.layers-chart-container {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

/* ============ STEP CARDS ============ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.step-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.08);
    border: 2px solid rgba(239, 68, 68, 0.1);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gray-200);
    transition: background var(--transition-normal);
}

.step-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.step-card[data-step="1"]::before { background: var(--layer-thermal); }
.step-card[data-step="2"]::before { background: var(--layer-oil); }
.step-card[data-step="3"]::before { background: var(--gray-400); }
.step-card[data-step="4"]::before { background: var(--layer-inorganic); }
.step-card[data-step="5"]::before { background: var(--layer-tobacco); }
.step-card[data-step="6"]::before { background: var(--layer-iot); }

.step-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-200);
    font-family: var(--font-mono);
    line-height: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.step-icon.thermal { background: #fef2f2; color: var(--layer-thermal); }
.step-icon.oil { background: #fffbeb; color: var(--layer-oil); }
.step-icon.lime { background: var(--gray-100); color: var(--gray-600); }
.step-icon.inorganic { background: #f5f5f4; color: var(--layer-inorganic); }
.step-icon.tobacco { background: #f7fee7; color: var(--layer-tobacco); }
.step-icon.iot { background: #eff6ff; color: var(--layer-iot); }

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.step-subtitle {
    font-size: 0.8rem;
    color: var(--primary-600);
    font-weight: 500;
    font-style: italic;
    margin-bottom: var(--space-sm);
    display: block;
}

.step-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.step-specs {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.spec {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    color: var(--gray-500);
    background: var(--gray-50);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.spec i {
    color: var(--primary-500);
}

.step-code {
    background: var(--gray-900);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    overflow-x: auto;
}

.step-code code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary-300);
}

/* ============ EFFECTIVENESS SECTION ============ */
.effectiveness-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.effectiveness-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-lg);
}

.effectiveness-section h3 i {
    color: var(--primary-500);
}

.chart-container {
    position: relative;
    height: 300px;
}

/* ============ 3S PHILOSOPHY ============ */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.philosophy-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 2px solid rgba(34, 197, 94, 0.15);
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.08);
}

.philosophy-card:hover {
    border-color: var(--primary-400);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.2);
    transform: translateY(-8px);
}

.philosophy-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: var(--space-lg);
}

.philosophy-icon.eat {
    background: linear-gradient(135deg, var(--accent-100), var(--accent-200));
    color: var(--accent-600);
}

.philosophy-icon.sleep {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4f46e5;
}

.philosophy-icon.spa {
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    color: var(--primary-600);
}

.philosophy-content h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.s-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-500);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
}

.philosophy-subtitle {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.philosophy-content > p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.philosophy-list {
    margin-bottom: var(--space-md);
}

.philosophy-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--gray-700);
    padding: var(--space-xs) 0;
}

.philosophy-list li i {
    color: var(--primary-500);
    margin-top: 3px;
}

.philosophy-tip {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    background: var(--accent-50);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-400);
}

.philosophy-tip i {
    color: var(--accent-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.philosophy-tip span {
    font-size: 0.85rem;
    color: var(--accent-700);
    font-style: italic;
}

/* Benefits Section */
.benefits-section {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.benefits-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-lg);
}

.benefits-section h3 i {
    color: var(--primary-500);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.benefits-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.benefit-info {
    display: flex;
    flex-direction: column;
}

.benefit-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
    font-family: var(--font-mono);
}

.benefit-label {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ============ IOT PROGRAMMING SECTION ============ */
/* Architecture Diagram */
.architecture-section {
    margin-bottom: var(--space-3xl);
}

.architecture-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-lg);
}

.architecture-section h3 i {
    color: var(--primary-500);
}

.architecture-diagram {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.arch-layer {
    text-align: center;
    padding: var(--space-lg);
}

.arch-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.arch-items {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.arch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    min-width: 100px;
}

.arch-item i {
    font-size: 1.5rem;
    color: var(--primary-500);
}

.arch-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
}

.arch-item.main {
    background: var(--primary-100);
}

.arch-item.main i {
    color: var(--primary-600);
}

.arch-arrow {
    text-align: center;
    padding: var(--space-sm);
    color: var(--gray-400);
    font-size: 1.5rem;
}

/* Code Section */
.code-section {
    margin-bottom: var(--space-3xl);
}

.code-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-lg);
}

.code-section h3 i {
    color: var(--primary-500);
}

.code-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.code-tab {
    padding: var(--space-sm) var(--space-lg);
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.code-tab:hover {
    background: var(--gray-200);
}

.code-tab.active {
    background: var(--gray-900);
    color: white;
}

.code-content {
    background: var(--gray-900);
    border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}

.code-panel {
    display: none;
}

.code-panel.active {
    display: block;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-800);
    border-bottom: 1px solid var(--gray-700);
}

.code-header span {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--gray-400);
    font-family: var(--font-mono);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--gray-700);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--gray-300);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    background: var(--gray-600);
    color: white;
}

.code-panel pre {
    padding: var(--space-lg);
    overflow-x: auto;
    max-height: 500px;
    margin: 0;
}

.code-panel code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gray-300);
    line-height: 1.6;
}

/* Dashboard Demo */
.dashboard-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-lg);
}

.dashboard-section h3 i {
    color: var(--primary-500);
}

.dashboard-demo {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-100);
}

.incubator-selector {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.incubator-selector label {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.incubator-selector select {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--gray-700);
    background: white;
    cursor: pointer;
}

.dashboard-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--gray-600);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.sensor-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.sensor-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.sensor-card.temperature .sensor-icon {
    background: #fef2f2;
    color: var(--error);
}

.sensor-card.humidity .sensor-icon {
    background: #eff6ff;
    color: var(--info);
}

.sensor-card.light .sensor-icon {
    background: #fffbeb;
    color: var(--warning);
}

.sensor-card.day .sensor-icon {
    background: var(--primary-100);
    color: var(--primary-600);
}

.sensor-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sensor-label {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.sensor-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    font-family: var(--font-mono);
}

.sensor-range {
    font-size: 0.7rem;
    color: var(--gray-400);
}

.sensor-status {
    font-size: 1.2rem;
}

.sensor-status.ok {
    color: var(--success);
}

.sensor-status.warning {
    color: var(--warning);
}

.sensor-status.error {
    color: var(--error);
}

.sensor-status.info {
    color: var(--info);
}

.chart-section canvas {
    max-height: 200px;
}

/* ============ RESOURCES SECTION ============ */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.resource-card {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
}

.resource-card:hover {
    border-color: var(--primary-300);
    background: white;
    box-shadow: var(--shadow-lg);
}

.resource-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-md);
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.resource-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.resource-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-600);
}

.resource-link:hover {
    color: var(--primary-700);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--gray-800);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-md);
}

.footer-logo i {
    color: var(--primary-400);
}

.footer-brand > p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

/* Company Info in Footer */
.footer-company {
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-500);
}

.footer-company p {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--gray-300);
    margin-bottom: var(--space-xs);
}

.footer-company p:last-child {
    margin-bottom: 0;
}

.footer-company p i {
    color: var(--primary-400);
    width: 16px;
}

.footer-company .company-name {
    font-weight: 600;
    color: white;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    color: var(--gray-400);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-600);
    color: white;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-md);
}

.footer-links ul li {
    margin-bottom: var(--space-sm);
}

.footer-links ul li a {
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--primary-400);
}

/* Leadership List in Footer */
.leadership-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: var(--space-md) !important;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-800);
}

.leadership-list li:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0;
    border-bottom: none;
}

.leader-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.leader-title {
    font-size: 0.8rem;
    color: var(--primary-400);
    font-style: italic;
}

.leader-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-top: var(--space-xs);
    transition: color var(--transition-fast);
}

.leader-phone:hover {
    color: var(--primary-400);
}

.leader-phone i {
    font-size: 0.75rem;
}

.footer-newsletter h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-md);
}

.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: white;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.newsletter-form button {
    padding: var(--space-sm) var(--space-md);
    background: var(--primary-500);
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: white;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--primary-600);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.footer-bottom p {
    margin-bottom: var(--space-xs);
}

.footer-bottom i {
    color: var(--error);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--gray-200);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

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

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .code-tabs {
        flex-wrap: wrap;
    }

    .code-tab {
        flex: 1;
        text-align: center;
    }
}

/* ============ ANIMATION EFFECTS ============ */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Left Animation */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Right Animation */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-8px);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(34, 197, 94, 0.5),
                    0 0 10px rgba(34, 197, 94, 0.3),
                    0 0 15px rgba(34, 197, 94, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.8),
                    0 0 30px rgba(34, 197, 94, 0.6),
                    0 0 40px rgba(34, 197, 94, 0.4);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-1deg); }
    75% { transform: translateX(5px) rotate(1deg); }
}

/* Ripple Animation */
@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

/* Gradient Shift Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Typewriter Animation */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

/* Blink Cursor Animation */
@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: var(--primary-500); }
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sparkle Animation */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes - Scroll Triggered */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
}

.animate-on-scroll.fade-up {
    transform: translateY(40px);
}

.animate-on-scroll.fade-up.visible {
    transform: translateY(0);
}

.animate-on-scroll.fade-left {
    transform: translateX(-40px);
}

.animate-on-scroll.fade-left.visible {
    transform: translateX(0);
}

.animate-on-scroll.fade-right {
    transform: translateX(40px);
}

.animate-on-scroll.fade-right.visible {
    transform: translateX(0);
}

.animate-on-scroll.scale-in {
    transform: scale(0.8);
}

.animate-on-scroll.scale-in.visible {
    transform: scale(1);
}

/* Stagger Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Hero Section Animations */
.hero-badge {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero h1 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-description {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-actions {
    animation: fadeInUp 0.8s ease-out 1s both;
}

.hero-stats {
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.hero-visual {
    animation: fadeInRight 1s ease-out 0.8s both;
}

/* Protection Diagram Animation */
.protection-diagram {
    animation: scaleIn 1s ease-out 1s both;
}

.diagram-ring {
    animation: pulse 2s ease-in-out infinite;
}

.diagram-ring.ring-1 { animation-delay: 0s; }
.diagram-ring.ring-2 { animation-delay: 0.2s; }
.diagram-ring.ring-3 { animation-delay: 0.4s; }
.diagram-ring.ring-4 { animation-delay: 0.6s; }
.diagram-ring.ring-5 { animation-delay: 0.8s; }
.diagram-ring.ring-6 { animation-delay: 1s; }

.diagram-center {
    animation: glow 3s ease-in-out infinite;
}

/* Card Hover Effects */
.step-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.step-card:hover .step-icon {
    animation: bounce 0.6s ease;
}

.step-card:hover .step-number {
    animation: pulse 0.6s ease;
}

/* Philosophy Card Effects */
.philosophy-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(34, 197, 94, 0.2);
}

.philosophy-card:hover .philosophy-icon {
    animation: float 1s ease-in-out infinite;
}

/* Resource Card Effects */
.resource-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.resource-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.resource-card:hover .resource-icon {
    animation: shake 0.5s ease;
}

/* Button Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300%;
    height: 300%;
}

.btn-primary:hover {
    animation: pulse 1s ease;
}

/* Gallery Item Effects */
.gallery-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: scale(1.03);
    z-index: 10;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.gallery-item:hover .gallery-content {
    animation: fadeInUp 0.4s ease-out both;
}

/* Sensor Card Pulse */
.sensor-card.temperature {
    animation: none;
}

.sensor-card.temperature.warning {
    animation: pulse 1.5s ease-in-out infinite;
    border-color: var(--warning);
}

.sensor-card.temperature.danger {
    animation: shake 0.5s ease-in-out infinite;
    border-color: var(--error);
}

/* Stats Number Animation */
.stat-number {
    display: inline-block;
}

.stat:hover .stat-number {
    animation: bounce 0.6s ease;
    color: var(--primary-300);
}

/* IP Item Effects */
.ip-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ip-item:hover {
    transform: translateY(-3px) scale(1.05);
}

.ip-item.active {
    animation: glow 2s ease-in-out infinite;
}

/* BrainFarm Feature Effects */
.bf-feature {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bf-feature:hover {
    transform: translateY(-5px);
}

.bf-feature:hover .bf-feature-icon {
    animation: float 1.5s ease-in-out infinite;
    background: var(--primary-500);
    color: white;
}

/* Story Card Effects */
.story-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-card:hover {
    transform: translateX(10px);
    box-shadow: -5px 10px 30px rgba(0, 0, 0, 0.3);
}

.story-icon {
    transition: all 0.4s ease;
}

.story-item:hover .story-icon {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
}

/* Code Panel Effects */
.code-tab {
    transition: all 0.3s ease;
}

.code-tab:hover:not(.active) {
    background: var(--gray-200);
    transform: translateY(-2px);
}

.code-tab.active {
    position: relative;
}

.code-tab.active::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
    animation: scaleIn 0.3s ease;
}

/* Section Tag Animation */
.section-tag {
    animation: fadeInLeft 0.6s ease-out both;
}

/* Floating Particles Enhanced */
.floating-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, var(--primary-400), transparent);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite, sparkle 3s ease-in-out infinite;
}

.floating-particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-particle:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.floating-particle:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

/* Floating Leaves Enhanced */
.floating-leaf {
    position: absolute;
    font-size: 1.5rem;
    color: var(--primary-400);
    opacity: 0.6;
    animation: float 5s ease-in-out infinite;
}

.floating-leaf::before {
    content: '🍃';
}

.floating-leaf:nth-child(4) {
    top: 30%;
    right: 10%;
    animation-delay: 0.5s;
}

.floating-leaf:nth-child(5) {
    bottom: 20%;
    left: 15%;
    animation-delay: 1.5s;
}

/* Typing Effect for Code */
.code-panel pre code {
    position: relative;
}

/* Chart Hover Effects */
canvas {
    transition: transform 0.3s ease;
}

canvas:hover {
    transform: scale(1.02);
}

/* Footer Link Underline Effect */
.footer-links ul li a {
    position: relative;
    display: inline-block;
}

.footer-links ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-400);
    transition: width 0.3s ease;
}

.footer-links ul li a:hover::after {
    width: 100%;
}

/* Social Icon Bounce on Hover */
.footer-social a:hover {
    animation: bounce 0.5s ease;
}

/* Newsletter Button Animation */
.newsletter-form button:hover {
    animation: pulse 0.5s ease;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 70px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-400), var(--accent-400));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-500);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-600);
    transform: translateY(-5px);
    animation: bounce 0.5s ease;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Section Entrance Animation */
.section {
    opacity: 1;
}

.section .section-header {
    animation: fadeInUp 0.8s ease-out both;
}

/* Smooth Hover Transitions for All Interactive Elements */
button, a, .card, .step-card, .philosophy-card, .resource-card, .bf-feature, .ip-item, .sector-tag {
    will-change: transform;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============ SECTION DECORATIVE ELEMENTS ============ */
.section-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Liên Hoàn Cước Decorations - Red/Orange Theme */
.lhc-decor .decor-shield,
.lhc-decor .decor-fire,
.lhc-decor .decor-bug {
    position: absolute;
    font-size: 4rem;
    opacity: 0.06;
    animation: floatDecor 20s infinite ease-in-out;
}

.lhc-decor .decor-shield {
    top: 10%;
    left: 5%;
    color: #ef4444;
    animation-delay: 0s;
}

.lhc-decor .decor-fire {
    top: 60%;
    right: 8%;
    color: #f59e0b;
    font-size: 3.5rem;
    animation-delay: 5s;
}

.lhc-decor .decor-bug {
    bottom: 15%;
    left: 15%;
    color: #dc2626;
    font-size: 3rem;
    animation-delay: 10s;
}

/* Philosophy Decorations - Green Theme */
.philosophy-decor .decor-leaf,
.philosophy-decor .decor-heart,
.philosophy-decor .decor-spa {
    position: absolute;
    font-size: 4rem;
    opacity: 0.08;
    animation: floatDecor 25s infinite ease-in-out;
}

.philosophy-decor .decor-leaf {
    top: 15%;
    right: 10%;
    color: #22c55e;
    animation-delay: 2s;
}

.philosophy-decor .decor-heart {
    top: 50%;
    left: 5%;
    color: #14b8a6;
    font-size: 3rem;
    animation-delay: 8s;
}

.philosophy-decor .decor-spa {
    bottom: 10%;
    right: 15%;
    color: #10b981;
    font-size: 3.5rem;
    animation-delay: 15s;
}

/* IoT Decorations - Blue/Purple Theme */
.iot-decor .decor-chip,
.iot-decor .decor-code,
.iot-decor .decor-wifi {
    position: absolute;
    font-size: 4rem;
    opacity: 0.06;
    animation: floatDecor 22s infinite ease-in-out;
}

.iot-decor .decor-chip {
    top: 12%;
    left: 8%;
    color: #3b82f6;
    animation-delay: 0s;
}

.iot-decor .decor-code {
    top: 55%;
    right: 5%;
    color: #8b5cf6;
    font-size: 3.5rem;
    animation-delay: 7s;
}

.iot-decor .decor-wifi {
    bottom: 20%;
    left: 20%;
    color: #6366f1;
    font-size: 3rem;
    animation-delay: 12s;
}

@keyframes floatDecor {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(20px, -30px) rotate(10deg) scale(1.1);
    }
    50% {
        transform: translate(-15px, 20px) rotate(-5deg) scale(0.95);
    }
    75% {
        transform: translate(10px, 15px) rotate(15deg) scale(1.05);
    }
}

/* ============ ENHANCED SECTION STYLING ============ */

/* Section Dividers */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-300), transparent);
    border-radius: var(--radius-full);
}

#lien-hoan-cuoc::after {
    background: linear-gradient(90deg, transparent, #ef4444, #f59e0b, transparent);
}

#3s-philosophy::after {
    background: linear-gradient(90deg, transparent, #22c55e, #14b8a6, transparent);
}

#iot-programming::after {
    background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, transparent);
}

/* Card Glow Effects on Hover */
.step-card:hover {
    box-shadow: 
        0 20px 40px rgba(239, 68, 68, 0.15),
        0 0 0 1px rgba(239, 68, 68, 0.1);
}

.philosophy-card:hover {
    box-shadow: 
        0 20px 40px rgba(34, 197, 94, 0.2),
        0 0 0 1px rgba(34, 197, 94, 0.15);
}

/* Number Badge Enhancements */
.step-number {
    position: relative;
}

.step-card:hover .step-number {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    transition: all 0.3s ease;
}

/* Philosophy Icon Pulse */
.philosophy-card:hover .philosophy-icon {
    animation: iconPulse 1s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Section Header Underline Animation */
.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

#lien-hoan-cuoc .section-header h2::after {
    background: linear-gradient(90deg, #ef4444, #f59e0b);
}

#3s-philosophy .section-header h2::after {
    background: linear-gradient(90deg, #22c55e, #14b8a6);
}

#iot-programming .section-header h2::after {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.section-header h2:hover::after {
    width: 100%;
}

/* Tag Shine Effect */
.section-tag {
    position: relative;
    overflow: hidden;
}

.section-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: tagShine 3s infinite;
}

@keyframes tagShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Step Icon Rotation on Hover */
.step-card:hover .step-icon i {
    animation: iconRotate 0.6s ease;
}

@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
    100% { transform: rotate(0deg); }
}

/* Benefits Stats Enhancement */
.benefit-item {
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-500);
    transition: height 0.4s ease;
}

.benefit-item:hover::before {
    height: 100%;
}

/* Chart Container Glass Effect */
.chart-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* IP Items Shimmer Effect */
.ip-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Sector Tag Hover Lift */
.sector-tag {
    position: relative;
}

.sector-tag::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-400);
    transition: width 0.3s ease;
}

.sector-tag:hover::after {
    width: 80%;
}

/* ============ EXPERIMENT DATA SECTION ============ */
.experiment-data-section {
    margin-top: var(--space-3xl);
    padding: var(--space-2xl);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-xl);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.experiment-data-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
}

.experiment-data-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: var(--space-xl);
    text-align: center;
    justify-content: center;
    position: relative;
}

.experiment-data-section h3 i {
    color: #ef4444;
    font-size: 1.5rem;
    animation: flaskBubble 2s infinite;
}

@keyframes flaskBubble {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.experiment-data-section h3::after {
    content: '🔬';
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    opacity: 0.5;
}

.data-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-xl);
    align-items: stretch;
    margin-bottom: var(--space-xl);
}

.data-before, .data-after {
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.data-before:hover, .data-after:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.data-before {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 50%, #fecaca 100%);
    border: 2px solid #fca5a5;
}

.data-before::before {
    content: '😔';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    opacity: 0.3;
}

.data-after {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    border: 2px solid #86efac;
}

.data-after::before {
    content: '🎉';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    opacity: 0.3;
}

.data-before h4, .data-after h4 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px dashed rgba(0, 0, 0, 0.1);
}

.data-before h4 {
    color: #dc2626;
}

.data-before h4 i {
    animation: shakeBad 0.5s infinite;
}

@keyframes shakeBad {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.data-after h4 {
    color: #16a34a;
}

.data-after h4 i {
    animation: bounceGood 1s infinite;
}

@keyframes bounceGood {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.data-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.data-item {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.data-item:hover {
    transform: scale(1.05);
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.data-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    font-family: var(--font-mono);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.data-value.bad {
    color: #dc2626;
    text-shadow: 0 2px 10px rgba(220, 38, 38, 0.2);
}

.data-value.good {
    color: #16a34a;
    text-shadow: 0 2px 10px rgba(22, 163, 74, 0.2);
}

.data-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

.data-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: var(--radius-xl);
    border: 2px dashed #22c55e;
}

.data-arrow i {
    font-size: 2.5rem;
    color: #22c55e;
    animation: arrowPulse 1.5s infinite;
}

.data-arrow span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #15803d;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0) scale(1); }
    50% { transform: translateX(8px) scale(1.1); }
}

.data-conditions {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border-left: 5px solid #3b82f6;
    position: relative;
    overflow: hidden;
}

.data-conditions::before {
    content: '📋';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    opacity: 0.1;
}

.data-conditions h5 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.1rem;
    color: #1e40af;
    margin-bottom: var(--space-lg);
    font-weight: 700;
}

.data-conditions h5 i {
    color: #3b82f6;
}

.data-conditions ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    list-style: none;
    padding: 0;
}

.data-conditions li {
    font-size: 0.9rem;
    color: var(--gray-700);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.data-conditions li::before {
    content: '✓';
    color: #22c55e;
    font-weight: bold;
}

.data-conditions li strong {
    color: var(--gray-800);
}

/* ============ SOP & BOM SECTION ============ */
.section-sop {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 50%, #fef3c7 100%);
    position: relative;
}

.section-sop::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(234, 179, 8, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.sop-tag {
    background: linear-gradient(135deg, #eab308, #f59e0b) !important;
    color: white !important;
}

.section-sop .section-header h2 {
    background: linear-gradient(135deg, #ca8a04, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sop-bom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.sop-card, .bom-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sop-card:hover, .bom-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.08);
}

.sop-header, .bom-header {
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 50%, #ca8a04 100%);
    color: white;
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    position: relative;
    overflow: hidden;
}

.sop-header::after, .bom-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.sop-header i, .bom-header i {
    font-size: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sop-header h3, .bom-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sop-content {
    padding: var(--space-lg);
}

.sop-step {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.sop-step:last-child {
    border-bottom: none;
}

.sop-step:hover {
    background: var(--gray-50);
    transform: translateX(5px);
}

.sop-num {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f59e0b, #eab308);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    position: relative;
}

.sop-num::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 2px dashed rgba(245, 158, 11, 0.5);
    border-radius: 50%;
    animation: rotateDash 10s linear infinite;
}

@keyframes rotateDash {
    to { transform: rotate(360deg); }
}

.sop-detail strong {
    display: block;
    font-size: 1.1rem;
    color: var(--gray-800);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sop-detail p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

.sop-note {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-top: 3px solid #fbbf24;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.sop-note i {
    color: #f59e0b;
    font-size: 1.3rem;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.bom-content {
    padding: var(--space-lg);
}

.bom-table {
    width: 100%;
    border-collapse: collapse;
}

.bom-table th, .bom-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

.bom-table th {
    background: linear-gradient(135deg, #fef9c3, #fef3c7);
    font-weight: 700;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.bom-table td i {
    color: #f59e0b;
    margin-right: var(--space-sm);
    font-size: 1.1rem;
}

.bom-table tbody tr {
    transition: all 0.3s ease;
}

.bom-table tr:hover {
    background: linear-gradient(90deg, #fefce8, transparent);
    transform: translateX(5px);
}

.bom-table .bom-iot {
    background: #eff6ff;
}

.bom-table .bom-iot td {
    color: #2563eb;
}

.bom-table tfoot tr {
    background: linear-gradient(135deg, #fef3c7, #fef9c3);
}

.bom-table tfoot tr.bom-total {
    background: linear-gradient(135deg, #22c55e, #10b981);
}

.bom-table tfoot tr.bom-total td {
    color: white !important;
    font-size: 1.1rem;
}

.bom-table tfoot td {
    font-weight: 700;
    color: var(--gray-800);
    border-bottom: none;
}

.bom-subtitle {
    padding: 0 var(--space-lg);
    margin-bottom: var(--space-md);
}

.bom-subtitle p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.bom-subtitle i {
    color: var(--primary-500);
}

.bom-note {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    color: #1e40af;
    font-size: 0.9rem;
    border-left: 4px solid #3b82f6;
}

.bom-note i {
    color: #3b82f6;
    font-size: 1.2rem;
}

.bom-note-extra {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.bom-note-extra i {
    color: #ef4444;
}

.bom-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: linear-gradient(135deg, #f59e0b, #eab308);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bom-download:hover {
    background: linear-gradient(135deg, #d97706, #ca8a04);
    color: white;
}

/* Layer Diagram - Enhanced Visual */
.layer-diagram-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.layer-diagram-section::before {
    content: '🥚';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    opacity: 0.1;
}

.layer-diagram-section h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: var(--space-2xl);
    position: relative;
}

.layer-diagram-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #eab308, #ca8a04);
    border-radius: var(--radius-full);
}

.layer-diagram-section h3 i {
    color: #f59e0b;
    font-size: 1.5rem;
    animation: layerPulse 2s infinite;
}

@keyframes layerPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.layer-diagram {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.diagram-visual {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-xl);
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    border-radius: var(--radius-xl);
    border: 3px solid #fbbf24;
    position: relative;
}

.diagram-visual::before {
    content: 'CẮT NGANG';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    letter-spacing: 2px;
}

.layer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.layer-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: currentColor;
    opacity: 0.3;
}

.layer-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.layer-item i {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Layer Colors - Enhanced */
.layer-air { 
    background: linear-gradient(135deg, #e0f2fe, #bae6fd); 
    color: #0369a1; 
    border-color: #7dd3fc;
}
.layer-chicken { 
    background: linear-gradient(135deg, #fef3c7, #fde68a); 
    color: #92400e; 
    font-weight: 800;
    font-size: 1.1rem;
    border-color: #fbbf24;
}
.layer-tobacco-diagram { 
    background: linear-gradient(135deg, #d9f99d, #bef264); 
    color: #3f6212;
    border-color: #a3e635;
}
.layer-mineral { 
    background: linear-gradient(135deg, #e5e7eb, #d1d5db); 
    color: #374151;
    border-color: #9ca3af;
}
.layer-tray { 
    background: linear-gradient(135deg, #cbd5e1, #94a3b8); 
    color: #1e293b;
    border-color: #64748b;
}
.layer-heat { 
    background: linear-gradient(135deg, #fed7aa, #fdba74); 
    color: #c2410c;
    border-color: #fb923c;
}
.layer-lime { 
    background: linear-gradient(135deg, #fafaf9, #e7e5e4); 
    color: #44403c;
    border-color: #a8a29e;
}
.layer-thermal-wire { 
    background: linear-gradient(135deg, #fecaca, #fca5a5); 
    color: #dc2626;
    border-color: #f87171;
}

.diagram-key {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 2px solid #86efac;
    position: relative;
}

.diagram-key::before {
    content: '💡';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 1.5rem;
}

.diagram-key p {
    font-size: 1rem;
    color: #166534;
    margin-bottom: var(--space-lg);
    font-weight: 600;
    padding-bottom: var(--space-sm);
    border-bottom: 2px dashed #86efac;
}

.diagram-key p i {
    color: #22c55e;
}

.diagram-key ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.diagram-key li {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
    color: #15803d;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.3s ease;
}

.diagram-key li:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============ FAQ SECTION ============ */
.section-faq {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
    position: relative;
}

.section-faq::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 10% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 60%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.faq-tag {
    background: linear-gradient(135deg, #3b82f6, #0ea5e9) !important;
    color: white !important;
}

.section-faq .section-header h2 {
    background: linear-gradient(135deg, #2563eb, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.faq-item {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.faq-question i {
    font-size: 1.3rem;
    color: #3b82f6;
}

.faq-question h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.faq-answer {
    padding: var(--space-lg);
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* Step Card Safety & Alternative */
.step-safety, .step-alternative {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    margin-top: var(--space-sm);
}

.step-safety {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.step-safety i {
    color: #f59e0b;
}

.step-alternative {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #7dd3fc;
}

.step-alternative i {
    color: #0ea5e9;
}

/* Zalo Button */
.btn-zalo {
    background: #0068ff !important;
    border-color: #0068ff !important;
    color: white !important;
}

.btn-zalo:hover {
    background: #0052cc !important;
    color: white !important;
}

/* Responsive for new sections */
@media (max-width: 1024px) {
    .data-comparison {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .data-arrow {
        transform: rotate(90deg);
    }
    
    .data-arrow i {
        animation: arrowPulseDown 1.5s infinite;
    }
    
    @keyframes arrowPulseDown {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(10px); }
    }
    
    .sop-bom-grid {
        grid-template-columns: 1fr;
    }
    
    .layer-diagram {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .data-conditions ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .data-stats {
        grid-template-columns: 1fr;
    }
}