/* ==========================================================================
   LABTDH V6 - 100% TRUE FULL-BLEED WIDESCREEN, FLOATING DOCK NAV & RICH MOTION
   ========================================================================== */

:root {
    --bg-primary: #050914;
    --bg-secondary: #0B1222;
    --accent-blue: #0284C7;
    --accent-cyan: #38BDF8;
    --accent-orange: #F97316;
    --accent-emerald: #10B981;
    --ease-silk: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    background-color: var(--bg-primary);
    color: #F8FAFC;
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: clamp(16px, 0.92vw + 4px, 19px);
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: transparent !important;
    position: relative;
    overflow-x: hidden;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
    flex-shrink: 0;
}

/* ==========================================================================
   TRÀN KỊCH MÉP 100% MÀN HÌNH (KHÔNG GIỚI HẠN MAX-WIDTH DÙ MÀN HÌNH 2K / 4K)
   ========================================================================== */
.container-wide {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: clamp(1rem, 2.5vw, 3.25rem);
    padding-right: clamp(1rem, 2.5vw, 3.25rem);
}

.font-display {
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
    letter-spacing: -0.02em;
}

/* Be Vietnam Pro nạp tới 800: chặn font-black (900) bị "làm đậm giả" gây nhoè dấu */
.font-black { font-weight: 800; }

/* Typography toàn cục: khoảng dòng đủ thoáng cho dấu tiếng Việt xếp chồng (ấ, ễ, ở...) */
body { line-height: 1.65; font-feature-settings: "kern" 1, "liga" 1; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
p, li { text-wrap: pretty; }
.leading-none { line-height: 1.12 !important; }
.leading-tight { line-height: 1.25 !important; }

.font-mono-tech {
    font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    font-variant-numeric: tabular-nums;
}

/* Thanh tiến trình cuộn trang phát sáng trên đỉnh (Dùng GPU scaleX 60fps siêu mượt) */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 100;
    background: linear-gradient(90deg, #10B981 0%, #38BDF8 50%, #F97316 100%);
    transform-origin: 0% 50%;
    transform: scaleX(0);
    will-change: transform;
    pointer-events: none;
}

/* Nền công nghiệp sâu thẳm (Không phụ thuộc ảnh nặng, dù thiếu backgroud.jpg vẫn đẹp chuẩn) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-color: #050914;
    background-image:
        radial-gradient(circle at 14% 16%, rgba(56, 189, 248, 0.16), transparent 44%),
        radial-gradient(circle at 86% 80%, rgba(249, 115, 22, 0.12), transparent 44%),
        linear-gradient(180deg, rgba(5, 9, 20, 0.86) 0%, rgba(9, 16, 33, 0.9) 52%, rgba(5, 9, 20, 0.92) 100%),
        url('image/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.bg-tech-grid {
    position: relative;
    background-size: 58px 58px;
    background-image:
        linear-gradient(to right, rgba(56, 189, 248, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
}

.bg-cardBg {
    background-color: rgba(12, 19, 36, 0.94) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* ==========================================================================
   THANH MENU VIÊN THUỐC NỔI CHỮ TO RÕ NÉT (NÂNG CẤP ẢNH 4)
   ========================================================================== */
.nav-glass-dock {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.3rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow:
        0 12px 32px -10px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
}

.nav-pill-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 0.38rem;
    padding: 0.4rem clamp(0.55rem, 0.8vw, 0.95rem);
    border-radius: 0.7rem;
    font-size: clamp(0.82rem, 0.8vw, 0.95rem);
    font-weight: 700;
    color: #E2E8F0;
    transition: all 0.32s var(--ease-silk);
}

@media (max-width: 1240px) {
    .nav-pill-item svg {
        display: none;
    }
}

.nav-pill-item:hover {
    color: #FFFFFF;
    background: rgba(56, 189, 248, 0.15);
    transform: translateY(-1px);
}

.nav-pill-item.active {
    color: #050914;
    font-weight: 800;
    background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
    box-shadow: 0 6px 22px -4px rgba(56, 189, 248, 0.65);
}

/* ==========================================================================
   LOGO BIỂU TƯỢNG VI MẠCH & HIỆU ỨNG ANIMATION SỐNG ĐỘNG
   ========================================================================== */
.brand-emblem {
    position: relative;
    background: linear-gradient(135deg, #0EA5E9 0%, #0369A1 55%, #1E1B4B 100%);
    border: 1px solid rgba(125, 211, 252, 0.6);
    box-shadow:
        0 0 26px rgba(56, 189, 248, 0.45),
        inset 0 1px 2px rgba(255, 255, 255, 0.45);
    overflow: hidden;
    transition: transform 0.4s var(--ease-silk), box-shadow 0.4s var(--ease-silk);
}

.brand-emblem::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: linear-gradient(45deg, transparent 42%, rgba(255, 255, 255, 0.38) 50%, transparent 58%);
    transform: translateX(-75%);
    animation: emblemShine 4s ease-in-out infinite;
}

@keyframes emblemShine {
    0%, 60% { transform: translateX(-75%) rotate(12deg); }
    100% { transform: translateX(75%) rotate(12deg); }
}

.group:hover .brand-emblem {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 0 34px rgba(56, 189, 248, 0.8), 0 0 16px rgba(249, 115, 22, 0.45);
}

/* Animation trôi nổi nhẹ nhàng cho các khối nổi bật */
@keyframes floatGentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}

.animate-float-slow {
    animation: floatGentle 5.5s ease-in-out infinite;
}

/* Đốm sáng trôi lơ lửng trong nền */
@keyframes orbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(28px, -22px) scale(1.08); }
}

.ambient-orb {
    animation: orbDrift 10s ease-in-out infinite;
}

/* Gợn sáng quét ngang nút bấm chính (Shimmer Button) */
.btn-cta-orange,
.btn-3d-cyan {
    position: relative;
    overflow: hidden;
}

.btn-cta-orange::after,
.btn-3d-cyan::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: skewX(-22deg);
    animation: btnShimmerSweep 4.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btnShimmerSweep {
    0%, 70% { left: -120%; }
    100% { left: 160%; }
}

.btn-cta-orange {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 50%, #EA580C 100%);
    box-shadow:
        0 12px 28px -6px rgba(249, 115, 22, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.38);
    transition: transform 0.35s var(--ease-silk), box-shadow 0.35s var(--ease-silk), filter 0.3s ease;
}

.btn-cta-orange:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 18px 38px -6px rgba(249, 115, 22, 0.68),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    filter: brightness(1.05);
}

.btn-3d-cyan {
    background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
    box-shadow:
        0 12px 28px -6px rgba(2, 132, 199, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.38);
    transition: transform 0.35s var(--ease-silk), box-shadow 0.35s var(--ease-silk);
}

.btn-3d-cyan:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 18px 38px -6px rgba(56, 189, 248, 0.62);
}

/* ==========================================================================
   THẺ CARD & KHUNG SHOWCASE CÓ ĐỘ NẢY MƯỢT MÀ
   ========================================================================== */
.tech-card {
    position: relative;
    background: linear-gradient(160deg, rgba(20, 31, 53, 0.94) 0%, rgba(9, 15, 29, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow:
        0 18px 40px -16px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
    transition:
        transform 0.35s var(--ease-silk),
        border-color 0.3s var(--ease-silk),
        box-shadow 0.35s var(--ease-silk);
}

@media (hover: hover) {
    .tech-card:hover {
        transform: translateY(-7px);
        border-color: rgba(56, 189, 248, 0.58);
        box-shadow:
            0 32px 64px -15px rgba(2, 132, 199, 0.34),
            0 0 30px rgba(56, 189, 248, 0.15),
            inset 0 1px 0 0 rgba(56, 189, 248, 0.38);
    }
}

.showcase-cockpit {
    position: relative;
    background: linear-gradient(145deg, rgba(17, 27, 48, 0.93) 0%, rgba(7, 12, 24, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.34);
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.85),
        0 0 55px -15px rgba(56, 189, 248, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.equip-selector-card {
    position: relative;
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.22);
    transition: all 0.35s var(--ease-silk);
}

.equip-selector-card:hover {
    border-color: rgba(56, 189, 248, 0.55);
    transform: translateY(-3px);
}

.equip-selector-card.active {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.3) 0%, rgba(249, 115, 22, 0.18) 100%);
    border-color: #38BDF8;
    box-shadow: 0 14px 30px -8px rgba(56, 189, 248, 0.42), inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}

/* ==========================================================================
   GIAO DIỆN MODAL ĐỀ CƯƠNG BÀI HỌC MỚI ĐẸP & SỐNG ĐỘNG (NÂNG CẤP ẢNH 1)
   ========================================================================== */
@keyframes lessonSlideIn {
    from {
        opacity: 0;
        transform: translateX(-16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.syllabus-lesson-card {
    opacity: 0;
    animation: lessonSlideIn 0.42s var(--ease-silk) forwards;
    transition: all 0.3s var(--ease-silk);
}

.syllabus-lesson-card:hover {
    transform: translateX(6px);
    border-color: rgba(56, 189, 248, 0.6);
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0.92) 100%);
    box-shadow: 0 12px 26px -10px rgba(56, 189, 248, 0.35);
}

/* ==========================================================================
   THẺ ỨNG DỤNG KHO PHẦN MỀM SẠCH SANG - BẤM NHẢY THẲNG GOOGLE DRIVE
   ========================================================================== */
.app-drive-card {
    position: relative;
    background: linear-gradient(155deg, rgba(19, 30, 52, 0.88) 0%, rgba(9, 15, 29, 0.96) 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow:
        0 20px 45px -16px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.38s var(--ease-silk);
}

.app-drive-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: #38BDF8;
    background: linear-gradient(155deg, rgba(24, 40, 68, 0.94) 0%, rgba(11, 19, 36, 0.98) 100%);
    box-shadow:
        0 28px 60px -14px rgba(2, 132, 199, 0.4),
        0 0 30px rgba(56, 189, 248, 0.16),
        inset 0 1px 0 rgba(56, 189, 248, 0.4);
}

.app-drive-card:hover .drive-arrow-badge {
    background: linear-gradient(135deg, #38BDF8, #0284C7);
    color: #050914;
    border-color: transparent;
    transform: translateX(3px);
}

/* ==========================================================================
   HOTSPOTS, REVEAL CUỘN TRANG & TIỆN ÍCH
   ========================================================================== */
.lab-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 20;
    cursor: pointer;
    padding: 6px;
}

.lab-hotspot-pin {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    background: rgba(7, 12, 24, 0.92);
    border: 2.5px solid #38BDF8;
    color: #38BDF8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.85);
    transition: all 0.35s var(--ease-silk);
}

@media (max-width: 640px) {
    .lab-hotspot-pin { width: 34px; height: 34px; font-size: 12px; }
}

.lab-hotspot-pin::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 9999px;
    border: 2px solid rgba(56, 189, 248, 0.6);
    animation: hotspotRipple 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.lab-hotspot.active .lab-hotspot-pin,
.lab-hotspot:hover .lab-hotspot-pin {
    background: linear-gradient(135deg, #FB923C, #EA580C);
    border-color: #FFFFFF;
    color: #FFFFFF;
    transform: scale(1.22);
    box-shadow: 0 0 30px rgba(249, 115, 22, 1);
}

@keyframes hotspotRipple {
    0% { transform: scale(0.85); opacity: 1; }
    100% { transform: scale(1.75); opacity: 0; }
}

.closeup-photo-stage {
    transition: opacity 0.35s var(--ease-silk), transform 0.55s var(--ease-silk);
}
.closeup-photo-stage.switching {
    opacity: 0.2;
    transform: scale(1.04);
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity 0.52s var(--ease-silk),
        transform 0.52s var(--ease-silk);
}

.reveal.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.circuit-line {
    background: linear-gradient(180deg, #10B981 0%, #38BDF8 36%, #F97316 72%, #F43F5E 100%);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.55);
}

.circuit-pulse {
    position: absolute;
    left: -4px;
    width: 12px;
    height: 46px;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: 0 0 16px #38BDF8, 0 0 32px #38BDF8;
    animation: dataFlow 3.6s linear infinite;
}

@keyframes dataFlow {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 96%; opacity: 0; }
}

.vip-pill-glow {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.24) 0%, rgba(56, 189, 248, 0.24) 100%);
    border: 1px solid rgba(52, 211, 153, 0.6);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.28);
}

.admin-pill-glow {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.28) 0%, rgba(234, 179, 8, 0.22) 100%);
    border: 1px solid rgba(251, 146, 60, 0.75);
    box-shadow: 0 0 26px rgba(249, 115, 22, 0.35);
}

.modal-card-anim {
    animation: modalPop 0.38s var(--ease-silk) forwards;
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.94) translateY(14px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050914; }
::-webkit-scrollbar-thumb { background: #1E293B; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0284C7; }

.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.38s var(--ease-silk);
}
.faq-content > div { overflow: hidden; }
.faq-item.open .faq-content { grid-template-rows: 1fr; }
.faq-item.open .faq-icon { transform: rotate(180deg); }

/* ==========================================================================
   LỊCH THỜI KHÓA BIỂU & KHO TÀI LIỆU LỘ TRÌNH HỌC (V9)
   ========================================================================== */
.timetable-day-col {
    position: relative;
    background: linear-gradient(165deg, rgba(16, 26, 46, 0.88) 0%, rgba(8, 13, 25, 0.96) 100%);
    border: 1px solid rgba(56, 189, 248, 0.18);
    transition: border-color 0.35s var(--ease-silk), box-shadow 0.35s var(--ease-silk), transform 0.35s var(--ease-silk);
}

.timetable-day-col.is-today {
    border-color: rgba(56, 189, 248, 0.78);
    box-shadow:
        0 20px 50px -16px rgba(56, 189, 248, 0.35),
        inset 0 1px 0 rgba(56, 189, 248, 0.45);
}

.timetable-slot-card {
    position: relative;
    background: linear-gradient(155deg, rgba(22, 35, 60, 0.9) 0%, rgba(11, 18, 34, 0.96) 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    transition: all 0.32s var(--ease-silk);
}

.timetable-slot-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.58);
    box-shadow: 0 16px 34px -12px rgba(2, 132, 199, 0.38);
}

.material-doc-card {
    position: relative;
    background: rgba(12, 20, 38, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.3s var(--ease-silk);
}

.material-doc-card:hover {
    transform: translateX(4px);
    border-color: rgba(56, 189, 248, 0.62);
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.14) 0%, rgba(12, 20, 38, 0.95) 100%);
}
