@font-face {
    font-family: 'Verdana';
    src: url('../fonts/Verdana-Regular.html') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --primary-color: #d81f26;
    --secondary-color: #ff6b6b;
    --dark-bg: #0a0a0a;
    --dark-bg-light: rgba(20, 20, 20, 0.95);
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --border-color: rgba(255, 255, 255, 0.1);
    --container-width: 1200px;
    --container-max-width: 1400px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

body.content-protected img,
body.content-protected video,
body.content-protected canvas {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

body.single-screen-home {
    min-height: 100vh;
    background: #2a2d4a;
    --hero-side-brand-size: 192px;
    --hero-side-brand-top: 26px;
    --hero-side-menu-width: 240px;
    --hero-side-panel-left: 20px;
}

body.single-screen-home .header {
    display: none;
}

.container {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   1️⃣ HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 0, 10, 0.8);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    clip-path: none;
}

.header-bottom-image {
    position: absolute;
    bottom: -10px;
    left: 51%;
    transform: translateX(-50%);
    max-width: 110px;
    z-index: 1;
    pointer-events: none;
    display: none; /* keep header bar straight/clean */
}

.header-bottom-image img {
    width: 100%;
    height: auto;
    display: block;
}



.header.scrolled {
    background-color: #1a5490;
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
    padding: 8px 0;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 140px;
}

.logo-img {
    height: 112px; /* thu gọn lại để header cân hơn */
    width: auto;
}

/* Text logo image "MU Hà Nội" next to icon */
.logo-text-img {
    height: 80px; /* phóng to chữ MU HÀ NỘI gấp đôi */
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 10px 18px;
    align-items: center;
    position: static;
    left: auto;
    transform: none;
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

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

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

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

.nav-link-accent {
    color: #2997ff;
}

.nav-link-accent:hover {
    color: #54b0ff;
}

.btn-cta-header {
    background: linear-gradient(135deg, var(--primary-color), #ffed4e);
    color: var(--dark-bg);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cta-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

/* ============================================
   2️⃣ HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    background: #000 url('../images/bg-main.jpg') center center / cover no-repeat !important;
    display: flex;
    align-items: center;
    overflow: hidden;
}
body.single-screen-home .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 24px 0 36px;
}

body.single-screen-home .hero > .container {
    max-width: 100%;
    padding-left: 32px;
    padding-right: 0;
    position: relative;
}

/* Hero Video Mode - Completely separate styling */
.hero.video-mode {
    padding: 0;
    background: none;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero.video-mode::before,
.hero.video-mode::after {
    display: none !important;
    animation: none !important;
}

.hero.video-mode.expanding::after,
.hero.video-mode.collapsing::after {
    animation: none !important;
    clip-path: none !important;
}

/* Background for image 2 (alternative) */
.hero.alt-bg {
    background: linear-gradient(135deg, #2d1f3f 0%, #4a2d2d 50%, #563535 100%);
}

/* Overlay layer for smooth radial transition */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2d1f3f 0%, #4a2d2d 50%, #563535 100%);
    clip-path: circle(0% at 50% 50%);
    z-index: 0;
    pointer-events: none;
}

/* Expand animation - background grows from center */
.hero.expanding::after {
    animation: expandFromCenter 3.5s ease-out forwards;
    box-shadow: 
                /* Outward glow */
                0 0 500px 150px rgba(138, 43, 43, 0.185),
                0 0 600px 200px rgba(184, 76, 76, 0.13),
                0 0 700px 250px rgba(211, 94, 94, 0.027),
                0 0 800px 300px rgba(230, 120, 120, 0.082),
                0 0 900px 350px rgba(245, 140, 140, 0.021),
                /* Inward glow - fade deep into center */

}

/* Collapse animation - background shrinks to center */
.hero.collapsing::after {
    animation: collapseToCenter 1.5s ease-out forwards;
    box-shadow: 
                /* Outward glow */
                0 0 500px 150px rgba(138, 43, 43, 0.185),
                0 0 600px 200px rgba(184, 76, 76, 0.13),
                0 0 700px 250px rgba(211, 94, 94, 0.027),
                0 0 800px 300px rgba(230, 120, 120, 0.082),
                0 0 900px 350px rgba(245, 140, 140, 0.021),
                /* Inward glow - fade deep into center */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 0;
    pointer-events: none;
    transition: background 3.5s ease-out;
}

/* Fade out background 1 when expanding */
.hero.expanding::before {
    background: rgba(0, 0, 0, 0.7);
}

/* Restore background 1 when collapsing */
.hero.collapsing::before {
    background: rgba(0, 0, 0, 0);
}

.hero .star-pattern {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

body.single-screen-home .hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: calc(100vh - 60px);
    gap: 0;
}

/* ===== KHUNG MENU TRÁI RỘNG - DÙNG ẢNH BACKGROUND ===== */

.hero-side-menu {
    position: fixed !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    z-index: 999 !important;
    
    /* Khung rộng rãi */
	width: 320px !important;
    height: 720px !important;
    padding: 140px 35px 100px 35px !important; /* top right bottom left */
    
    /* Dùng ảnh nền - bạn tạo ảnh menu-bg.png quăng vào đây */
    /*background: transparent url('/newintro/assets/images/menu-bg.png') center center / 130% 100% no-repeat !important;
    
    /* Tạm thời dùng nền trong suốt nếu chưa có ảnh */
    /* background: rgba(0, 0, 0, 0.3) !important; */
    /* backdrop-filter: blur(5px) !important; */
    
    /* Bỏ hết viền + shadow cũ */
}

/* Xóa hiệu ứng viền chạy */
.hero-side-menu::before,
.hero-side-menu::after {
    display: none !important;
}

/* Nút bên trong - trong suốt để lộ ảnh nền khung */
.hero-side-menu .menu-item,
.hero-side-menu .btn-side,
.hero-side-menu a {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    padding: 14px 10px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-shadow: 
        0 0 8px rgba(0, 0, 0, 1),
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.2s ease !important;
    clip-path: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.hero-side-menu .menu-item:hover,
.hero-side-menu .btn-side:hover,
.hero-side-menu a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffd700 !important;
    transform: translateX(8px) !important;
    text-shadow: 
        0 0 15px rgba(255, 215, 0, 1),
        0 0 30px rgba(255, 215, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 1) !important;
}

/* Mobile: ẩn menu trái */
@media (max-width: 1024px) {
    .hero-side-menu {
        display: none !important;
    }
}
body.single-screen-home .hero-side-brand {
    position: absolute;
    left: calc(var(--hero-side-panel-left) + (var(--hero-side-menu-width) - var(--hero-side-brand-size)) / 2);
    top: var(--hero-side-brand-top);
    z-index: 3;
}

.hero-side-brand-img {
    width: var(--hero-side-brand-size);
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28));
}

body.single-screen-home .hero-side-menu {
    position: absolute;
    left: var(--hero-side-panel-left);
    top: calc(var(--hero-side-brand-top) + var(--hero-side-brand-size) + 18px);
    transform: none;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: var(--hero-side-menu-width);
}

.hero-side-link {
    /* Reset style mặc định của button */
    appearance: none !important;
    -webkit-appearance: none !important;
    border: none !important;
    outline: none !important;
    background: none !important;
    
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 14px 28px !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
    
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%) !important;
    
    background: linear-gradient(135deg, 
        rgba(40,30,10,0.95) 0%, 
        rgba(80,60,20,0.9) 25%, 
        rgba(255,215,0,0.15) 50%, 
        rgba(80,60,20,0.9) 75%, 
        rgba(40,30,10,0.95) 100%
    ) !important;
    
    box-shadow: 
        0 0 0 2px #ffd700,
        0 0 15px rgba(255,215,0,0.6),
        0 0 30px rgba(255,165,0,0.3) inset,
        0 8px 20px rgba(0,0,0,0.4) !important;
    
    color: #ffe97a !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 8px rgba(255,215,0,0.8), 0 2px 4px rgba(0,0,0,0.8) !important;
    
    cursor: pointer !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.hero-side-link::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 50% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent) !important;
    transform: skewX(-25deg) !important;
    transition: left 0.6s ease !important;
    z-index: 1 !important;
}

.hero-side-link::after {
    content: '' !important;
    position: absolute !important;
    inset: -2px !important;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%) !important;
    background: linear-gradient(90deg, #ff8c00, #ffd700, #ff8c00) !important;
    background-size: 200% 100% !important;
    z-index: -1 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    animation: borderGlow 3s linear infinite !important;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.hero-side-link:hover {
    transform: translateX(8px) scale(1.03) !important;
    color: #fff !important;
    box-shadow: 
        0 0 0 2px #fff,
        0 0 25px rgba(255,215,0,1),
        0 0 50px rgba(255,165,0,0.6) inset,
        0 12px 35px rgba(0,0,0,0.5) !important;
}

.hero-side-link:hover::before { left: 150% !important; }
.hero-side-link:hover::after { opacity: 1 !important; }

.hero-side-link:active {
    transform: translateX(4px) scale(0.98) !important;
}

.hero-side-link:focus {
    outline: none !important;
}
/* Hero Video Background */
.hero #videoBG {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
/* .hero #videoBG {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #000;
    z-index: 0;
}*/

.hero-title {
    color: var(--text-light);
    font-weight: 1200;
    margin-bottom: 0; /* thu hẹp khoảng cách phía dưới logo tối đa */
    margin-top: 10px;
    font-size: 70px; /* phóng to tiêu đề hơn nữa */
    text-transform: uppercase;
    line-height: 1;
    font-family: 'grinddemolished';
    display: flex;
    flex-direction: column;
    align-items: center; /* canh giữa cả logo và chữ Season 1.9 */
}

/* Hero MU Hà Nội logo image inside title */
.hero-logo-img {
    height: 150px; /* giảm thêm 50% để không che phần chữ */
    width: auto;
    display: block;
    margin: 0 auto; /* đưa logo MU Hà Nội vào chính giữa */
    transform-origin: center center;
    animation: heroLogoPulse 4.8s ease-in-out infinite;
}

@keyframes heroLogoPulse {
    0%, 100% {
        transform: scale(0.96);
    }
    50% {
        transform: scale(1.04);
    }
}


.hero-title .highlight {
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    font-size: 0.65em; /* thu nhỏ Season 1.9 còn 1 nửa */
    line-height: 1;
    display: block;
    margin-top: 6px; /* tách hẳn khỏi logo lớn */
    
    font-family: 'Verdana', 'Arial Black', sans-serif; /* Thêm dòng này */
    font-weight: 900;
    text-transform: uppercase; /* Viết hoa cho ngầu */
    letter-spacing: 3px; /* Giãn chữ cho thoáng */
}
.hero-subtitle {
    font-size: 30px;
    color: var(--text-gray);
    margin-bottom: 12px;
    margin-left: 0;
    max-width: 620px;
    line-height: 1.55;
    word-break: keep-all;
    overflow-wrap: break-word;
    margin-right: auto;
    margin-left: auto;
}

.hero-subtitle-note {
    display: inline-block;
    width: max-content;
    max-width: none;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* giảm khoảng cách giữa SEASON 1.9 và dòng mô tả đầu tiên */
.hero-subtitle:first-of-type {
    margin-top: 4px;
}

.hero-features {
    list-style: none;
    margin-top: 6px;
    margin-bottom: 24px;
    display: inline-block;
    text-align: left; /* keep bullet text readable while block is centered */
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.hero-features i {
    color: var(--primary-color);
    font-size: 20px;
}

/* ===== MENU TOP PHONG CÁCH GAME - LẤP LÁNH RỰC RỠ ===== */

.hero-buttons {
    position: fixed !important;
    top: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 18px !important;
    z-index: 10000 !important;
    flex-wrap: nowrap !important;
}

.hero-btn-stack {
    display: contents !important;
}

/* Style chung cho 4 nút */
.hero-btn-stack .btn {
    position: relative !important;
    width: auto !important;
    height: 48px !important;
    min-width: 160px !important;
    padding: 0 !important; /* Bỏ padding để dùng line-height căn giữa */
    line-height: 48px !important; /* = height để chữ căn giữa dọc */
    text-align: center !important;
    
    clip-path: polygon(
        12px 0%, 
        calc(100% - 12px) 0%, 
        100% 12px, 
        100% calc(100% - 12px), 
        calc(100% - 12px) 100%, 
        12px 100%, 
        0% calc(100% - 12px), 
        0% 12px
    ) !important;
    
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    border: 2px solid !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important; /* Đổi từ inline-flex sang inline-block */
    overflow: hidden !important;
    vertical-align: middle !important;
}
/* Hiệu ứng ánh sáng chạy qua */
.hero-btn-stack .btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255,255,255,0.4) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s;
}

.hero-btn-stack .btn:hover::before {
    transform: rotate(45deg) translateX(100%);
}

/* Nút ĐĂNG KÝ - Đỏ máu chiến */
.hero-btn-stack .btn-demo {
    background: linear-gradient(180deg, #8b0000 0%, #dc143c 50%, #8b0000 100%) !important;
    border-color: #ff4444 !important;
    color: #fff !important;
    box-shadow: 
        0 0 20px rgba(220,20,60,0.8),
        inset 0 2px 0 rgba(255,255,255,0.3),
        inset 0 -2px 0 rgba(0,0,0,0.5) !important;
    text-shadow: 0 0 10px rgba(255,0,0,0.8), 0 2px 4px rgba(0,0,0,0.9) !important;
}

.hero-btn-stack .btn-demo:hover {
    background: linear-gradient(180deg, #ff0000 0%, #ff4444 50%, #ff0000 100%) !important;
    box-shadow: 
        0 0 35px rgba(255,0,0,1),
        inset 0 2px 0 rgba(255,255,255,0.5),
        inset 0 -2px 0 rgba(0,0,0,0.5) !important;
    transform: translateY(-4px) scale(1.08) !important;
    border-color: #ff6666 !important;
}

/* 3 nút TẢI GAME / NHÓM ZALO / HỖ TRỢ - Vàng kim loại */
.hero-btn-stack .btn-contact {
    background: linear-gradient(180deg, #b8860b 0%, #ffd700 30%, #ffed4e 50%, #ffd700 70%, #b8860b 100%) !important;
    border-color: #ffd700 !important;
    color: #3a2000 !important;
    box-shadow: 
        0 0 20px rgba(255,215,0,0.8),
        inset 0 2px 0 rgba(255,255,255,0.6),
        inset 0 -2px 0 rgba(139,69,19,0.6) !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5), 0 2px 4px rgba(0,0,0,0.3) !important;
}

.hero-btn-stack .btn-contact:hover {
    background: linear-gradient(180deg, #ffd700 0%, #fff8dc 30%, #ffffff 50%, #fff8dc 70%, #ffd700 100%) !important;
    box-shadow: 
        0 0 40px rgba(255,215,0,1),
        0 0 80px rgba(255,215,0,0.5),
        inset 0 2px 0 rgba(255,255,255,0.8),
        inset 0 -2px 0 rgba(139,69,19,0.6) !important;
    transform: translateY(-4px) scale(1.08) !important;
    border-color: #ffff00 !important;
    color: #1a0f00 !important;
}

/* Hiệu ứng nhấp nháy nhẹ như item +15 */
@keyframes itemGlow {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 0 10px rgba(255,215,0,0.6)); 
    }
    50% { 
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(255,215,0,1)); 
    }
}

.hero-btn-stack .btn-contact {
    animation: itemGlow 2s ease-in-out infinite;
}

.hero-btn-stack .btn-demo {
    animation: itemGlow 2s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Ấn xuống có cảm giác */
.hero-btn-stack .btn:active {
    transform: translateY(-1px) scale(1.02) !important;
}
/* Center alignment for the whole hero text block (as requested) */
.hero-text {
    text-align: center;
}

body.single-screen-home .hero-text {
    width: min(100%, 560px);
    max-width: 560px;
    margin: 0 auto;
    transform: none;
    position: relative;
    z-index: 2;
}

.hero-title,
.hero-subtitle {
    text-align: center;
}

.btn {
    padding: 11px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-demo {
    background: var(--secondary-color);
    color: var(--text-light);
}

.btn-demo:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

.btn-contact {
    background: radial-gradient(139.5% 418.38% at 100% 157.5%,
            rgba(210, 0, 120, 0.5) 0,
            rgba(210, 0, 120, 0) 100%),
        #ffd600;
    color: var(--text-light);
    border: none;
    box-shadow: 0 10px 20px rgba(243, 164, 29, 0.1),
        0 5px 20px rgba(243, 164, 29, 0.25),
        inset 0 -2px 2px rgba(9, 34, 57, 0.3),
        inset 0 2px 2px rgba(255, 255, 255, 0.3);
}

.btn-contact:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.hero-media {
    position: relative;
}

body.single-screen-home .hero-media {
    position: absolute;
    top: 50%;
    right: -64px;
    transform: translateY(-50%);
    width: min(55vw, 980px);
    margin-right: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-character-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    position: relative;
    top: 190px;
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.hero-character-slideshow {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 500px;
    padding-bottom: 100px;
}

body.single-screen-home .hero-character-slideshow {
    min-height: min(700px, calc(100vh - 80px));
    padding-bottom: 0;
}

.hero-character-slideshow .hero-character-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

body.single-screen-home .hero-character-slideshow .hero-character-img {
    height: 100%;
    max-height: calc(100vh - 80px);
    object-fit: contain;
    object-position: center bottom;
}

body.single-screen-home .hero-character-slideshow .hero-character-img-2 {
    top: 8px;
}

body.single-screen-home .hero-character-slideshow .hero-character-img-3 {
    top: 8px;
}

body.single-screen-home .floating-contact-icons {
    bottom: 24px;
}

.hero-character-slideshow .hero-character-img-1 {
    opacity: 0;
    animation: appear3D 1.8s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

.hero-character-slideshow .hero-character-img-2 {
    opacity: 0;
    animation: none;
    top: 90px;
}

.hero-character-slideshow .hero-character-img-3 {
    opacity: 0;
    animation: none;
    top: 90px;
}

@keyframes slideshow1 {
    0%, 40.9% {
        opacity: 1;
        z-index: 2;
    }
    45.45% {
        opacity: 0;
        z-index: 1;
    }
    45.46%, 100% {
        opacity: 0;
        z-index: 1;
    }
}

@keyframes slideshow2 {
    0%, 45.44% {
        opacity: 0;
        z-index: 1;
    }
    45.45%, 86.36% {
        opacity: 1;
        z-index: 2;
    }
    90.9% {
        opacity: 0;
        z-index: 1;
    }
    90.91%, 100% {
        opacity: 0;
        z-index: 1;
    }
}

.hero-image-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.hero-image-placeholder i {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.hero-image-placeholder p {
    color: var(--text-gray);
    font-size: 18px;
}

/* ============================================
   3️⃣ WHY US
   ============================================ */
.why-us {
    padding: 100px 0;
    background-image: url('../images/backgruond.html');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.why-us .container {
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 60px;
    color: var(--text-light);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(180deg, #ff6b6b 0%, #d81f26 40%, #5a0a0d 100%);
    border-radius: 2px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-us-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.why-us-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.why-us-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.why-us-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.why-us-card p {
    color: var(--text-gray);
    font-size: 16px;
}

/* ============================================
   4️⃣ VERSIONS
   ============================================ */
.versions {
    padding: 100px 0;
    background-image: url('../images/backgruond.html');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.versions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.versions .container {
    position: relative;
    z-index: 1;
}

.versions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.version-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.version-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.version-card:hover::before {
    transform: scaleX(1);
}

.version-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.version-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.version-image {
    font-size: 60px;
    color: var(--primary-color);
    margin: 30px 0;
}

.version-card h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-light);
}

.version-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.version-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-gray);
}

.version-features i {
    color: var(--primary-color);
    font-size: 14px;
}

.version-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-detail {
    background: var(--primary-color);
    color: var(--dark-bg);
    width: 100%;
}

.btn-detail:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

.btn-demo-small {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    width: 100%;
    justify-content: center;
}

.btn-demo-small:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============================================
   5️⃣ MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--dark-bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.version-detail-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 32px;
}

.version-detail-content h3 {
    color: var(--text-light);
    margin: 20px 0 10px;
    font-size: 24px;
}

.version-detail-content ul {
    list-style: none;
    margin: 15px 0;
}

.version-detail-content ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-gray);
}

.version-detail-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ============================================
   6️⃣ DEMO
   ============================================ */
.demo {
    padding: 100px 0;
    background-image: url('../images/backgruond.html');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.demo .container {
    position: relative;
    z-index: 1;
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.video-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 100px 40px;
    text-align: center;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-placeholder i {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.video-placeholder p {
    color: var(--text-gray);
    font-size: 18px;
}

.demo-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
}

.demo-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.demo-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.demo-info-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.demo-info-item i {
    font-size: 24px;
    color: var(--primary-color);
    min-width: 30px;
}

.demo-info-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-light);
}

.demo-info-item span {
    color: var(--text-gray);
}

.demo-note {
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 5px;
    margin: 30px 0;
    display: flex;
    gap: 10px;
}

.demo-note i {
    color: var(--primary-color);
    font-size: 20px;
}

.demo-note p {
    color: var(--text-light);
    margin: 0;
}

.btn-contact-full {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.demo-download-btn {
    background: linear-gradient(135deg, var(--primary-color), #ffed4e);
    color: var(--dark-bg);
    margin-bottom: 15px;
    margin-top: 0;
}

.demo-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

/* ============================================
   7️⃣ FEATURES
   ============================================ */
.features {
    padding: 100px 0;
    background-image: url('../images/backgruond.html');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.features .container {
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.feature-item p {
    color: var(--text-gray);
    font-size: 16px;
}

/* ============================================
   8️⃣ PACKAGES
   ============================================ */
.packages {
    padding: 100px 0;
    background-image: url('../images/backgruond.html');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.packages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.packages .container {
    position: relative;
    z-index: 1;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.package-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.package-card.package-featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

.package-featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.package-header {
    text-align: center;
    margin-bottom: 30px;
}

.package-header h3 {
    font-size: 32px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.package-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
}

.package-list {
    list-style: none;
    margin-bottom: 30px;
}

.package-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-gray);
}

.package-list i {
    color: var(--primary-color);
    font-size: 14px;
}

.package-note {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.package-note p {
    color: var(--text-gray);
    font-style: italic;
}

.btn-package {
    width: 100%;
    background: var(--primary-color);
    color: var(--dark-bg);
    justify-content: center;
}

.btn-package:hover {
    background: #ffed4e;
}

.btn-package-featured {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), #ffed4e);
    color: var(--dark-bg);
    justify-content: center;
}

.btn-package-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

/* ============================================
   9️⃣ PROCESS
   ============================================ */
.process {
    padding: 100px 0;
    background-image: url('../images/backgruond.html');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.process .container {
    position: relative;
    z-index: 1;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-number {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.process-step h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.process-step p {
    color: var(--text-gray);
    font-size: 16px;
}

/* ============================================
   🔟 COMMITMENT
   ============================================ */
.commitment {
    padding: 100px 0;
    background-image: url('../images/backgruond.html');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.commitment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.commitment .container {
    position: relative;
    z-index: 1;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.commitment-item {
    text-align: center;
    padding: 30px 20px;
}

.commitment-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.commitment-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.commitment-item p {
    color: var(--text-gray);
    font-size: 16px;
}

.commitment-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 18px;
}

/* ============================================
   1️⃣1️⃣ CTA FINAL
   ============================================ */
.cta-final {
    padding: 100px 0;
    background-image: url('../images/backgruond.html');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    text-align: center;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.cta-final .container {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-light);
}

.cta-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-large {
    padding: 20px 50px;
    font-size: 18px;
    background: linear-gradient(135deg, var(--primary-color), #ffed4e);
    color: var(--dark-bg);
}

.btn-cta-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.btn-cta-large-outline {
    padding: 20px 50px;
    font-size: 18px;
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-cta-large-outline:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* ============================================
   1️⃣2️⃣ FOOTER
   ============================================ */
.footer {
    padding: 60px 0 30px;
    background: #0a0a0a;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 120px; /* match header logo size */
    width: auto;
}

.footer-logo span {
    color: #fbbf24; /* same yellow as header brand */
    font-weight: 700;
}

.footer-logo i {
    font-size: 28px;
}

.footer-section p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.footer-section h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    color: var(--text-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--primary-color);
}

.contact-item i {
    font-size: 20px;
    width: 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
}

/* ============================================
   FLOATING CTA (MOBILE)
   ============================================ */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: none;
}

.btn-floating {
    background: linear-gradient(135deg, var(--primary-color), #ffed4e);
    color: var(--dark-bg);
    border: none;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-floating:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.5);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-gray);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 80px;
}

.mobile-nav-item i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.mobile-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary-color);
    background: rgba(255, 215, 0, 0.1);
}

.mobile-nav-item:hover i,
.mobile-nav-item.active i {
    transform: scale(1.2);
}

/* ============================================
   FLOATING CONTACT ICONS
   ============================================ */
.floating-contact-icons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #42454a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

/* Zalo circle: white background, blue text */
.contact-icon.zalo-icon {
    background: #ffffff;
    color: #0068ff;
    font-weight: 700;
    font-size: 14px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.contact-icon.zalo-icon .zalo-label {
    position: relative;
    z-index: 1;
}

/* Radar effect - only for Zalo icon (1st child) */
.contact-icon:nth-child(1)::before,
.contact-icon:nth-child(1)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #00bcd4;
    opacity: 0;
    animation: radar 3.5s ease-out infinite;
}

.contact-icon:nth-child(1)::after {
    animation-delay: 1.75s;
}

.contact-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.contact-icon.zalo-icon img {
    width: 46px;
    height: 46px;
}

.contact-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

@keyframes radar {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
/* Header Entry Animations */
@keyframes slideInFromTop {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes flyInFromLeft {
    0% {
        transform: translateX(-200px) rotate(-45deg) scale(0.3);
        opacity: 0;
    }
    60% {
        transform: translateX(10px) rotate(5deg) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translateX(0) rotate(0) scale(1);
        opacity: 1;
    }
}

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

@keyframes fadeInSlideRight {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hero Section Animations */
.hero-title,
.hero-subtitle,
.hero-features li,
.hero-buttons,
.hero-character-img {
    opacity: 0;
}


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

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes appear3D {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateY(-90deg) rotateX(20deg) translateZ(-200px) scale(0.5);
    }
    50% {
        opacity: 0.8;
        transform: perspective(1000px) rotateY(10deg) rotateX(-5deg) translateZ(50px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateZ(0px) scale(1);
    }
}

@keyframes floatingCharacter {
    0%, 100% {
        transform: perspective(1000px) translateY(0) rotateY(0deg) rotateX(0deg) translateZ(0) scale(1);
    }
    33.33% {
        transform: perspective(1000px) translateY(-10px) rotateY(8deg) rotateX(4deg) translateZ(0) scale(1.007);
    }
    66.66% {
        transform: perspective(1000px) translateY(-10px) rotateY(-8deg) rotateX(4deg) translateZ(0) scale(1.007);
    }
}

/* Hero Animations - Character Assembly Style */
@keyframes charAssemble {
    from {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) rotate(var(--tr));
    }
    to {
        opacity: 1;
        transform: translate(0, 0) rotate(0);
    }
}

@keyframes simpleFadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes simpleFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes simpleScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 3D Tilt effect for text */
@keyframes textTilt3D {
    0%, 100% {
        transform: perspective(500px) rotateY(0deg) rotateX(0deg) translateZ(0);
    }
    25% {
        transform: perspective(500px) rotateY(-10deg) rotateX(4deg) translateZ(10px);
    }
    75% {
        transform: perspective(500px) rotateY(10deg) rotateX(-4deg) translateZ(10px);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-15px);
    }
}

@keyframes bounceUpFromBottom {
    0% {
        transform: translateX(-50%) translateY(80px);
        opacity: 0;
    }
    60% {
        transform: translateX(-50%) translateY(-15px);
        opacity: 1;
    }
    80% {
        transform: translateX(-50%) translateY(5px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Drop Down Animation - for image transition */
@keyframes dropDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    50% {
        opacity: 1;
    }
    70% {
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background transition animations */
@keyframes expandFromCenter {
    0% {
        clip-path: circle(0% at 50% 50%);
        opacity: 0;
    }
    20% {
        opacity: 0.3;
    }
    60% {
        opacity: 0.5;
    }
    100% {
        clip-path: circle(150% at 50% 50%);
        opacity: 1;
    }
}

@keyframes collapseToCenter {
    0% {
        clip-path: circle(150% at 50% 50%);
        opacity: 1;
    }
    40% {
        opacity: 0.5;
    }
    80% {
        opacity: 0.3;
    }
    100% {
        clip-path: circle(0% at 50% 50%);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    /* giảm kích thước logo + khoảng cách trên tablet / laptop nhỏ */
    .hero-logo-img {
        height: 95px;
        margin-top: 0;
    }

    .why-us-grid,
    .versions-grid,
    .features-grid,
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .process-timeline::before {
        display: none;
    }

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

@media (max-width: 768px) {
    .header-content {
        padding: 10px 14px;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .logo {
        min-width: 0;
        gap: 18px;
    }

    .logo-img {
        height: 90px;
    }

    .logo-text-img {
        height: 46px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 26px;
        padding: 6px;
    }

    .btn-cta-header {
        display: none;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .floating-cta {
        display: none;
    }

    /* ensure floating Zalo / Facebook visible on mobile */
    .floating-contact-icons {
        right: 12px;
        bottom: 130px; /* nhô cao hơn thanh nav dưới */
    }

    .contact-icon {
        width: 54px;
        height: 54px;
    }

    .contact-icon img {
        width: 38px;
        height: 38px;
    }

    .contact-icon.zalo-icon img {
        width: 42px;
        height: 42px;
    }

    body {
        padding-bottom: 70px;
    }

    body.single-screen-home {
        padding-bottom: 0;
    }

    .hero {
        padding: 84px 0 40px;
    }

    body.single-screen-home .hero {
        min-height: auto;
        padding: 40px 0 36px;
    }

    body.single-screen-home .hero > .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-text {
        margin-top: 0;
    }

    body.single-screen-home .hero-content {
        display: grid;
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body.single-screen-home .hero-side-menu {
        position: static;
        transform: none;
        width: 100%;
        max-width: 560px;
        margin: 0 auto 20px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body.single-screen-home .hero-side-brand {
        position: static;
        margin: 0 auto 18px;
        width: fit-content;
    }

    .hero-side-brand-img {
        width: 180px;
    }

    .hero-side-link {
        text-align: center;
        font-size: 14px;
        padding: 11px 12px;
    }

    body.single-screen-home .hero-text {
        width: 100%;
        transform: none;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-logo-img {
        height: 64px;
        margin-top: 0;
    }

    .hero-title .highlight {
        margin-top: 6px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 10px;
        max-width: 100%;
        padding: 0 8px;
    }

    .hero-subtitle-note {
        white-space: normal;
        width: 100%;
        display: block;
        font-size: 15px;
    }

    .hero-features {
        width: 100%;
        max-width: 340px;
        margin: 4px auto 18px;
    }

    .hero-features li {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .hero-buttons {
        gap: 12px;
        transform: none;
        align-items: center;
    }

    .hero-btn-stack {
        width: 100%;
        max-width: 280px;
        gap: 8px;
    }

    .hero-media {
        display: none;
    }

    body.single-screen-home .floating-contact-icons {
        bottom: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .why-us-grid,
    .versions-grid,
    .features-grid,
    .packages-grid,
    .commitment-grid {
        grid-template-columns: 1fr;
    }

    .demo-content {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

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

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

    .cta-title {
        font-size: 28px;
    }

    .package-card.package-featured {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 8px 12px;
    }

    .logo-img {
        height: 75px;
    }

    .logo-text-img {
        height: 38px;
    }

    .hero {
        padding: 74px 0 34px;
    }

    body.single-screen-home .hero {
        padding: 28px 0 30px;
    }

    body.single-screen-home .hero-side-menu {
        grid-template-columns: 1fr;
        margin-bottom: 16px;
    }

    .hero-side-brand-img {
        width: 140px;
    }

    .hero-title {
        font-size: 22px;
        gap: 16px;
    }

    .hero-logo-img {
        height: 50px;
        margin-top: 0;
    }

    .hero-title .highlight {
        margin-top: 4px;
        font-size: 0.6em; /* dễ đọc hơn trên màn nhỏ */
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.45;
    }

    .hero-subtitle-note {
        font-size: 14px;
    }

    .hero-features li {
        font-size: 15px;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-large,
    .btn-cta-large-outline {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body.single-screen-home {
        min-height: 100svh;
    }

    body.single-screen-home .hero {
        min-height: 100svh;
        padding-top: max(24px, env(safe-area-inset-top));
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    body.single-screen-home .hero > .container {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    body.single-screen-home .hero-side-brand {
        order: 1;
        margin-bottom: 8px;
    }

    body.single-screen-home .hero-content {
        order: 2;
        gap: 18px;
    }

    body.single-screen-home .hero-side-menu {
        order: 3;
        max-width: 380px;
        margin-top: 4px;
    }

    body.single-screen-home .hero-text {
        max-width: 420px;
        margin: 0 auto;
    }

    body.single-screen-home .hero-logo-img {
        height: clamp(78px, 24vw, 112px);
    }

    body.single-screen-home .hero-features {
        max-width: 360px;
        margin-bottom: 16px;
    }

    body.single-screen-home .hero-features li {
        justify-content: center;
        text-align: left;
        gap: 10px;
    }

    body.single-screen-home .hero-buttons {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        flex-direction: column;
        align-items: stretch;
    }

    body.single-screen-home .hero-btn-stack {
        max-width: none;
    }

    body.single-screen-home .btn,
    body.single-screen-home .hero-side-link {
        min-height: 50px;
    }

    body.single-screen-home .floating-contact-icons {
        right: max(12px, env(safe-area-inset-right));
        bottom: calc(14px + env(safe-area-inset-bottom));
        gap: 10px;
    }

    body.single-screen-home .contact-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 560px) {
    body.single-screen-home .hero-side-menu {
        grid-template-columns: 1fr;
        max-width: 340px;
    }

    body.single-screen-home .hero-side-brand-img {
        width: clamp(132px, 38vw, 156px);
    }

    body.single-screen-home .hero-subtitle {
        padding-left: 0;
        padding-right: 0;
    }
}
/* ===== KẺ NGANG + KẺ DỌC TÁCH MENU ===== */

/* 1. Kẻ ngang dưới menu top */
.hero-buttons::after {
    content: '';
    position: fixed !important;
    top: 75px !important; /* Căn lại cho khớp 4 nút top */
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #b8860b 15%,
        #ffd700 50%,
        #b8860b 85%,
        transparent 100%
    );
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.8),
        0 1px 0 rgba(0, 0, 0, 0.9);
    z-index: 9999 !important;
    pointer-events: none;
}

/* 2. Kẻ dọc bên phải menu trái - FIX LẠI */
.hero-side-menu::after {
    content: '';
    position: fixed !important;
    left: 280px !important; /* Căn lại: sát mép phải menu trái */
    top: 0;
    width: 3px;
    height: 100vh;
    background: linear-gradient(
        180deg,
        transparent 0%,
        #b8860b 15%,
        #ffd700 50%,
        #b8860b 85%,
        transparent 100%
    );
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.8),
        1px 0 0 rgba(0, 0, 0, 0.9);
    z-index: 9999 !important; /* Tăng z-index lên trên ảnh */
    pointer-events: none;
}

/* Mobile: ẩn đường kẻ */
@media (max-width: 1024px) {
    .hero-buttons::after,
    .hero-side-menu::after {
        display: none !important;
    }
}
.events-info-table td {
    vertical-align: middle;
}

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

.qr-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
