:root {
    --bg-main: #03050A;
    --bg-card: rgba(10, 16, 32, 0.45);
    --bg-card-hover: rgba(20, 32, 55, 0.7);
    --accent-cyber: #00f0ff;
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --border-glass: rgba(255, 255, 255, 0.08);
    --glow-color: rgba(0, 240, 255, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0; padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

#canvas-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}

/* --- HEADER 3D TEXT & SPOTLIGHT EFFECT --- */
header {
    position: sticky; top: 0; z-index: 100;
    width: 100%; padding: 2vh 40px;
    background: rgba(3, 5, 10, 0.7);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; justify-content: space-between; align-items: center;
}

.logo-nav { text-decoration: none; }
.logo-nav h1 {
font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    
    /* Ép buộc màu chữ hiển thị trắng tinh khiết, loại bỏ hoàn toàn dải mờ transparent */
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    
    /* Đổ bóng phát quang trắng mờ nhẹ giúp chữ có chiều sâu thấu kính lỏng sang trọng */
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.25) !important;
    transition: text-shadow 0.3s ease;
}
.logo-nav:hover h1 {
    text-shadow: 0 0 15px var(--accent-cyber) !important; /* Bừng sáng viền xanh nhẹ khi hover */
}

.module-badge {
    background: rgba(0, 240, 255, 0.08); border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--accent-cyber); font-size: 12px; font-weight: 600;
    padding: 6px 16px; border-radius: 20px; text-transform: uppercase;
}

/* --- LIQUID GLASS SCROLLMATION LAYOUT --- */
main {
    position: relative; z-index: 5;
    width: 100%; max-width: 1000px;
    margin: 40px auto; padding: 0 20px;
    display: flex; flex-direction: column; gap: 40px;
}

.glass-module {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--border-glass); border-radius: 16px; padding: 40px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1), 0 16px 36px rgba(0, 0, 0, 0.5);
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-module.visible { opacity: 1; transform: translateY(0); }

.module-title-block { border-left: 4px solid var(--accent-cyber); padding-left: 16px; margin-bottom: 24px; }
.module-title-block h2 { font-size: 22px; font-weight: 700; color: #fff; }
.module-title-block p { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* --- VISUAL COMPONENTS FOR CONTENT --- */
.grid-sub-missions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0; }
.mission-item { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 8px; padding: 16px; display: flex; gap: 12px; }
.mission-num { color: var(--accent-cyber); font-weight: 700; }
.workflow-flowchart { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.flow-step { display: flex; align-items: center; background: rgba(0, 240, 255, 0.03); border: 1px solid rgba(0, 240, 255, 0.1); border-radius: 8px; padding: 14px 20px; position: relative; }
.flow-step::after { content: "↓"; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); color: var(--accent-cyber); font-weight: bold; opacity: 0.5; }
.flow-step:last-child::after { display: none; }
.flow-step-num { background: var(--accent-cyber); color: #000; font-weight: 700; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 16px; box-shadow: 0 0 8px var(--accent-cyber); flex-shrink: 0;}

.table-container { width: 100%; overflow-x: auto; margin-top: 20px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.05); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { background: rgba(255, 255, 255, 0.04); color: var(--accent-cyber); padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); text-transform: uppercase; }
td { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); color: #D1D5DB; line-height: 1.6; }
tr:hover td { background: rgba(0, 240, 255, 0.02); color: #fff; }

#back-to-top {
    position: fixed; bottom: 40px; right: 40px; z-index: 99;
    background: rgba(10, 16, 32, 0.6); border: 1px solid rgba(0, 240, 255, 0.3);
    width: 44px; height: 44px; border-radius: 50%; color: var(--accent-cyber);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    opacity: 0; transform: translateY(20px); transition: all 0.3s ease;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--accent-cyber); color: #000; box-shadow: 0 0 15px var(--accent-cyber); }

footer { padding: 40px 20px; text-align: center; font-size: 12px; color: var(--text-secondary); border-top: 1px solid rgba(255, 255, 255, 0.05); }
.section-title {
    font-size: clamp(24px, 4vh, 32px);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin: 20px auto 10px auto;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 5;
}
.hero-title-module {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    
    /* Thiết lập chiều cao tối thiểu lớn để căn giữa dọc hoành tráng */
    min-height: 55vh; 
    padding: 60px 40px;
    text-align: center;
    box-shadow: 
        inset 0 1px 3px rgba(255, 255, 255, 0.12),
        0 20px 50px rgba(0, 0, 0, 0.6);
        
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* CĂN GIỮA DỌC TUYỆT ĐỐI */
    gap: 30px;
    
    /* Đẩy các module phía dưới khuất hẳn xuống dưới màn hình đầu tiên khi mới nạp trang */
    margin-bottom: 18vh; 
    position: relative;
    z-index: 5;
    
    /* Khóa cứng hiển thị ngay lập tức, không bị ẩn theo các module nội dung */
    opacity: 1 !important;
    transform: none !important;
}

.hero-title-module h2 {
    font-size: clamp(36px, 5.5vh, 52px); /* Tăng kích thước chữ to rõ, sửa lỗi font ép dẹt */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}
/* HIỆU ỨNG MŨI TÊN CHUYỂN ĐỘNG HƯỚNG DẪN SCROLL */
.scroll-down-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100px; /* Phóng to khung chứa */
    height: 80px;
    margin-top: 20px;
    cursor: pointer;
}

.scroll-down-arrow svg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 64px; /* Tăng kích thước mũi tên vector lên ~10 lần */
    height: 64px;
    filter: drop-shadow(0 0 12px var(--accent-cyber)); /* Tăng cường độ phát sáng neon bám vệt */
    animation: cascadeGlow 2s infinite ease-in-out;
}

.scroll-down-arrow .chevron-1 {
    top: 0px;
    animation-delay: 0s;
}

.scroll-down-arrow .chevron-2 {
    top: 22px; /* Khoảng cách xếp chồng cân đối của mũi tên lớn */
    animation-delay: 0.25s; /* Hiệu ứng trượt lướt đuổi nhau từ trên xuống */
}

@keyframes cascadeGlow {
    0%, 100% {
        opacity: 0.2;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px); /* Biên độ trượt sóng dài và mượt hơn */
    }
}