/* Cấu hình chung */
:root {
    --bg-body: #000;
    --text-main: #fff;
    --text-muted: #eee;
    --text-sub: #ccc;
    --header-bg: rgba(0, 0, 0, 0.95);
    --header-border: #333;
    --card-bg: rgba(255,255,255,0.03);
    --card-border: #333;
    --gradient-split: radial-gradient(circle at top right, #1a1a1a, #000);
    --section-bg-dark: #050505; 
    --quatest-bg: radial-gradient(ellipse at center, #1a1a1a 0%, #000 70%);
    --footer-bg: #0a0a0a;
    --gold: #FFD700;
    --gold-glow: rgba(255, 215, 0, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Tiện ích đồ họa */
.text-gradient-gold {
    background: linear-gradient(to right, #FFF, var(--gold), #FFA500, #FFF);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineText 6s linear infinite;
    font-weight: 800;
}
@keyframes shineText { to { background-position: 200% center; } }

.cta-button {
    display: inline-block; padding: 0.8rem 2.5rem;
    position: relative; overflow: hidden;
    background: transparent; color: var(--gold);
    border: 1px solid var(--gold); border-radius: 50px;
    font-weight: bold; transition: all 0.4s ease;
    z-index: 1; cursor: pointer; margin-top: 1rem;
    text-align: center;
}
.cta-button::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 0%; height: 100%; background: var(--gold);
    z-index: -1; transition: width 0.4s ease;
}
.cta-button:hover { color: #000; box-shadow: 0 0 20px var(--gold-glow); }
.cta-button:hover::before { width: 100%; }

.text-link {
    color: var(--gold); font-weight: bold;
    margin-top: 1rem; display: inline-block;
    transition: transform 0.3s;
}
.text-link:hover { transform: translateX(5px); }
.divider-gold { width: 60px; height: 4px; background: var(--gold); margin-bottom: 2rem; }

/* Header và Menu */
header {
    position: fixed; top: 0; width: 100%;
    background: var(--header-bg); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--header-border);
    z-index: 1000; animation: slideDown 0.5s ease-out;
}
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.header-content {
    max-width: 1400px; margin: 0 auto; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

.logo-header { display: flex; align-items: center; gap: 1rem; z-index: 1002; }
.logo-header img { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 0 15px var(--gold-glow)); }
.logo-header h1 {
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--gold), var(--text-main));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.header-right-group { display: flex; align-items: center; gap: 2rem; }
.nav-menu ul { display: flex; gap: 2rem; }
.nav-menu a {
    font-size: 1rem; position: relative; padding: 0.5rem 0;
    transition: color 0.3s ease; color: var(--text-main);
}
.nav-menu a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--gold); transition: width 0.3s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--gold); }
.nav-menu a:hover::after { width: 100%; }

/* Menu Mobile (Hamburger) */
.hamburger { display: none; cursor: pointer; z-index: 1001; margin-left: 1rem; }
.bar {
    display: block; width: 25px; height: 3px; margin: 5px auto;
    background-color: var(--text-main); transition: all 0.3s ease-in-out;
}
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--gold); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--gold); }

/* Bố cục trang */
main { margin-top: 90px; }
.section { padding: 5rem 2rem; max-width: 1400px; margin: 0 auto; position: relative;}
.brand-title { font-size: 2.5rem; color: var(--gold); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 2px; }
.sub-title { font-size: 1.5rem; color: var(--text-main); margin-bottom: 1.5rem; font-weight: 300; }
.section-subtitle { color: var(--text-muted); text-align: center; }

.brand-split-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
    background: var(--gradient-split);
}
.brand-desc, .feature-list li { color: var(--text-muted); }
.feature-list li { margin-bottom: 1rem; }

.brand-floating-image {
    width: 100%; height: auto; max-width: 450px; 
    margin: 0 auto; display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 247, 255, 0.15));
    animation: float-gentle 6s ease-in-out infinite; 
}
@keyframes float-gentle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* Section Intellihome */
.section-intellihome { background-color: var(--section-bg-dark); }
.header-center { text-align: center; margin-bottom: 3rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.intellihome-card { 
    text-align: center; padding: 2.5rem; border-radius: 15px; 
    background: var(--card-bg); border: 1px solid var(--card-border); 
    transition: 0.3s; color: var(--text-muted);
}
.intellihome-card:hover { transform: translateY(-10px); border-color: var(--gold); }
.intellihome-card h3 { color: var(--text-main); margin-bottom: 0.5rem; }
.card-icon { font-size: 3rem; margin-bottom: 1.5rem; text-shadow: 0 0 15px rgba(255, 215, 0, 0.2); }

/* Section Emolux */
.emolux-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.emolux-info p { color: var(--text-muted); }
.stats-row { display: flex; gap: 3rem; margin-bottom: 2rem; }
.stat-num { font-size: 2rem; font-weight: bold; color: var(--gold); }
.stat-label { font-size: 0.9rem; color: var(--text-sub); text-transform: uppercase; display: block; }
.emolux-showcase { position: relative; height: 400px; display: flex; justify-content: center; align-items: center; }
.lamp-image { max-width: 80%; z-index: 2; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.8)); border-radius: 10px; }
.spotlight-effect { position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 200px; height: 500px; background: linear-gradient(to bottom, rgba(255, 215, 0, 0.2), transparent); filter: blur(40px); }

.section-intellihome .emolux-container { direction: rtl; }
.section-intellihome .emolux-info, .section-intellihome .emolux-showcase { direction: ltr; text-align: left; }

/* Simulation 3D & Xử lý Button Group */
.simulation-section {
    background: radial-gradient(circle at bottom left, #0f0f0f, #000);
    border-top: 1px solid #222;
}

/* Xử lý căn chỉnh 2 nút */
.cta-group { 
    display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; 
}

/* Reset margin và set chiều cao cố định cho nút trong group */
.cta-group .cta-button {
    margin-top: 0 !important;
    height: 50px;
    display: flex; justify-content: center; align-items: center;
    min-width: 180px;
}

/* Hiệu ứng nhịp thở cho nút chính */
@keyframes gentlePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 0 12px rgba(255, 215, 0, 0); transform: scale(1.03); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); transform: scale(1); }
}
.pulse-effect { animation: gentlePulse 2.5s infinite ease-in-out; }

/* Nút phụ hướng dẫn sử dụng */
.secondary-cta-btn {
    margin-top: 0; font-size: 0.95rem; padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.5); color: #fff;
    background: rgba(0,0,0,0.3);
}
.secondary-cta-btn:hover {
    border-color: var(--gold); box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    color: var(--gold); transform: translateY(-3px); background: rgba(255, 215, 0, 0.1);
}

/* Khung Video Cố Định */
.sim-3d-container {
    width: 100%; height: 400px; background: #000;
    border: 1px solid #333; border-radius: 20px;
    position: relative; overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.1);
    display: flex; justify-content: center; align-items: center;
    transition: border-color 0.3s, box-shadow 0.3s;
    /* Đảm bảo khung đứng yên, không bị animation thừa hưởng */
    transform: none !important; 
    animation: none !important;
}
.sim-3d-container:hover { border-color: var(--gold); box-shadow: 0 0 30px rgba(255, 215, 0, 0.3); }
.sim-video { width: 100%; height: 100%; object-fit: cover; outline: none; }

/* Nhiệm vụ & Slogan */
.quatest-section {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center;
    background: var(--quatest-bg);
}
.quatest-logo img { width: 100%; max-width: 350px; filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.4)); }
.quatest-info h2 { color: var(--text-main); font-size: 2rem; margin-bottom: 1rem; }
.quatest-info p { color: var(--text-muted); margin-bottom: 2rem; }

.mission-section { text-align: center; padding: 6rem 2rem; }
.sun-slogan {
    font-size: 1.5rem; font-weight: 800; text-transform: uppercase; margin-bottom: 2rem;
    background: linear-gradient(to right, #FFF, var(--gold), #FFA500, #FFF); background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: shineText 5s linear infinite;
}
.mission-section p { color: var(--text-muted); }

/* Footer */
footer { background: var(--footer-bg); border-top: 1px solid #333; padding: 3rem 2rem 1rem; }
.footer-content {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 2rem;
}
.footer-section h3 { color: var(--gold); margin-bottom: 1.5rem; }
.footer-logo { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 1rem; }
.footer-logo img { width: 80px; height: auto; margin-bottom: 0.5rem; }
.footer-info p { margin-bottom: 0.5rem; color: #ccc; }
.footer-links a { color: #ccc; display: block; margin-bottom: 0.8rem; transition: 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #333; color: #666; }

/* Nút lên đầu trang */
#back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 50px; height: 50px; background: rgba(0, 0, 0, 0.8);
    color: var(--gold); border: 2px solid var(--gold); border-radius: 50%;
    font-size: 1.5rem; font-weight: bold; cursor: pointer; z-index: 900;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center; padding-bottom: 5px;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover {
    background: var(--gold); color: #000;
    box-shadow: 0 0 20px var(--gold-glow); transform: translateY(-5px);
}

/* Modal Hướng dẫn */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); 
    z-index: 2000; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-container {
    background: #0f0f0f; border: 1px solid #333;
    width: 90%; max-width: 600px; max-height: 90vh; 
    border-radius: 15px; position: relative; display: flex; flex-direction: column;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.1);
    transform: translateY(20px); transition: transform 0.3s ease;
}
.modal-overlay.open .modal-container { transform: translateY(0); }

.modal-close-btn {
    position: absolute; top: 10px; right: 15px;
    background: none; border: none; color: #666; font-size: 2rem;
    cursor: pointer; transition: color 0.3s; z-index: 10;
}
.modal-close-btn:hover { color: var(--gold); }
.modal-header { padding: 2rem 2rem 1rem; border-bottom: 1px solid #222; text-align: center; flex-shrink: 0; }
.modal-header h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.modal-header p { color: #888; font-size: 0.9rem; margin: 0; }

.modal-body {
    padding: 1.5rem 2rem; overflow-y: auto; 
    scrollbar-width: thin; scrollbar-color: #333 #0f0f0f;
}
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.guide-intro { color: #ccc; margin-bottom: 2rem; text-align: center; font-size: 0.95rem; line-height: 1.6; }
.step-item {
    margin-bottom: 1.5rem; background: rgba(255,255,255,0.03);
    padding: 1rem; border-radius: 8px; border-left: 3px solid #333;
    transition: all 0.3s;
}
.step-item:hover { background: rgba(255,255,255,0.05); border-left-color: var(--gold); }
.step-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.step-num { font-weight: bold; color: var(--gold); opacity: 0.5; font-size: 1.2rem; }
.step-item h3 { color: #fff; font-size: 1.1rem; margin: 0; }
.step-content ul { padding-left: 2.5rem; list-style: disc; color: #aaa; font-size: 0.9rem; }
.step-content li { margin-bottom: 0.3rem; }
.modal-footer { text-align: center; margin-top: 1rem; }

/* Animation thả nổi ảnh */
@keyframes floatGentle { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
.brand-floating-image, .lamp-image { animation: floatGentle 4s ease-in-out infinite; will-change: transform; position: relative; z-index: 2; }

/* Dropdown Menu */
.nav-menu ul li { position: relative; }
.arrow-down { display: inline-block; font-size: 0.7em; margin-left: 6px; transition: transform 0.3s ease; }
.has-dropdown.open .arrow-down { transform: rotate(180deg); color: var(--gold); }

/* Dropdown Desktop */
.dropdown-menu {
    position: absolute; top: 100%; left: 0;
    width: 220px; background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--header-border); border-top: 2px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    opacity: 0; visibility: hidden; transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; padding: 0;
    border-radius: 0 0 8px 8px; z-index: 1100;
}
.has-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { width: 100%; margin: 0; }
.dropdown-menu a {
    display: block; padding: 12px 20px; font-size: 0.95rem;
    color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: left; transition: all 0.2s;
}
.dropdown-menu a:hover { background: rgba(255, 215, 0, 0.1); color: var(--gold); padding-left: 25px; }
.dropdown-menu a:hover::after { width: 0; }

/* Responsive Mobile và Tablet */
@media (max-width: 1024px) {
    .section { padding: 4rem 2rem; }
    .brand-title { font-size: 2rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    main { margin-top: 70px; }
    .section { padding: 3rem 1rem !important; }
    .brand-title { font-size: 1.8rem !important; line-height: 1.3; word-wrap: break-word; }
    .sub-title { font-size: 1.1rem !important; margin-bottom: 1rem; }
    p { font-size: 1rem; text-align: justify; }

    .header-content { padding: 0.8rem 1rem; }
    .logo-header img { width: 45px; height: 45px; }
    .logo-header h1 { font-size: 1.2rem; }
    
    .hamburger { display: block; margin-left: 1rem; }
    
    .nav-menu {
        position: fixed; left: -100%; top: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(15px);
        width: 100%; height: 100vh;
        text-align: center; padding-top: 100px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999; display: flex; justify-content: flex-start; gap: 0;
    }
    .nav-menu.active { left: 0; }
    
    .nav-menu ul { flex-direction: column; gap: 0; width: 100%; }
    .nav-menu a { 
        font-size: 1.3rem; display: block; padding: 1.2rem; 
        border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%;
    }

    .brand-split-layout, .emolux-container, .quatest-section {
        display: flex; flex-direction: column; gap: 2.5rem; text-align: center;
    }
    .brand-visual-right, .emolux-showcase { order: -1; margin-bottom: 1rem; width: 100%; }
    .brand-content-left, .emolux-info { width: 100%; order: 1; }

    .section-intellihome .emolux-container { direction: ltr; }
    .emolux-info { text-align: center; }
    .emolux-info > div { text-align: left !important; padding-left: 10px; }
    .emolux-info h3 { text-align: left; }
    .feature-list { display: block; text-align: left; margin: 0; padding-left: 1.2rem; }

    .divider-gold { margin: 0 auto 2rem auto; }
    
    /* Mobile CTA Buttons: Xếp chồng dọc và full width */
    .cta-group { flex-direction: column; width: 100%; gap: 1rem; }
    .cta-group .cta-button { width: 100%; margin-top: 0 !important; }
    .cta-button, .btn-outline { width: 100%; display: block; text-align: center; }

    .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .intellihome-card:hover { transform: none; }
    .intellihome-card { padding: 1.5rem; background: rgba(255,255,255,0.05); }

    .brand-floating-image, .lamp-image, .emolux-showcase img { 
        max-width: 60% !important; max-height: 250px; width: auto;
        object-fit: contain; margin: 0 auto 1.5rem auto; display: block;
    }
    .brand-visual-right img { max-width: 50% !important; }
    .spotlight-effect { width: 150px; height: 150px; filter: blur(30px); }
    .stats-row { flex-wrap: wrap; justify-content: space-around; gap: 0.75rem; }
    .stat-item { flex: 1 1 44%; min-width: 0; text-align: center; }
    .stat-num { font-size: 1.1rem !important; word-break: break-word; line-height: 1.4; }
    .stat-label { font-size: 0.78rem; }
    .sim-3d-container { height: 220px; }

    .footer-content { display: grid; grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-logo { align-items: center; }
    .footer-map iframe { height: 200px; }
    
    #back-to-top { width: 45px; height: 45px; bottom: 80px; right: 20px; font-size: 1.2rem; }
    
    .modal-container { width: 95%; max-height: 85vh; }
    .modal-header, .modal-body { padding: 1.5rem 1rem; }
    
    .has-dropdown { display: flex; flex-direction: column; width: 100%; }
    .dropdown-toggle { width: 100%; display: flex; justify-content: center; align-items: center; }

    .dropdown-menu {
        position: static; width: 100%; box-shadow: none; border: none;
        background: rgba(255, 255, 255, 0.03);
        max-height: 0; opacity: 0; overflow: hidden; transform: none;
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }
    .has-dropdown.open .dropdown-menu {
        max-height: 500px; opacity: 1; padding-bottom: 10px;
        border-top: 1px solid rgba(255,255,255,0.05);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .dropdown-menu a { text-align: center; padding: 12px 0; font-size: 1rem; color: #bbb; }
    .dropdown-menu a:hover, .dropdown-menu a:active {
        color: var(--gold); background: transparent; padding-left: 0;
    }

    #intellihome .brand-title,
    #intellihome .sub-title,
    #emolux .brand-title,
    #emolux .sub-title { text-align: center !important; }
    
    #intellihome .divider-gold,
    #emolux .divider-gold { margin-left: auto !important; margin-right: auto !important; }

    /* Bo góc tinh tế cho mobile */
    .intellihome-card { border-radius: 14px !important; }
    .sim-3d-container { border-radius: 14px !important; }
    .modal-container { border-radius: 20px !important; }
    .step-item { border-radius: 12px !important; }
    .value-card { border-radius: 12px !important; }
    .product-card { border-radius: 12px !important; }
}

/* Scroll ngang cho Collection Mobile */
@media screen and (max-width: 768px) {
    #collection .services-grid {
        display: flex !important; flex-wrap: nowrap !important;
        overflow-x: auto; overflow-y: hidden; gap: 1rem;
        padding: 0.5rem 1rem 1.5rem 1rem;
        scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    #collection .intellihome-card {
        min-width: 70vw; max-width: 300px;
        margin-bottom: 0 !important; scroll-snap-align: center; flex-shrink: 0;
        padding: 1.2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    }

    #collection .services-grid::-webkit-scrollbar { display: none; }
    #collection .services-grid { -ms-overflow-style: none; scrollbar-width: none; }
}

/* Chứng nhận */
.certification-badge {
    position: relative; padding: 15px 25px; margin: 10px;
    color: #e0c385; font-size: 1.1rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    text-align: center; border: 1px solid rgba(224, 195, 133, 0.3);
    background: rgba(255, 255, 255, 0.03); border-radius: 4px;
    transition: all 0.4s ease; cursor: default;
    user-select: none; flex: 1 1 250px; max-width: 300px;
}
.certification-badge:hover {
    color: #fff; border-color: #d4af37;
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.1);
    transform: translateY(-5px);
}
.certification-badge::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 0; height: 2px;
    background-color: #d4af37; transition: width 0.4s ease;
}
.certification-badge:hover::after { width: 50%; }

/* Ký hiệu thương hiệu đã đăng ký ® */
.reg {
    font-size: 0.5em; font-weight: 600; line-height: 0;
    vertical-align: super; margin-left: 0.08em; letter-spacing: 0;
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.45);
    font-style: normal; text-transform: none;
}
.sitemap-list a .reg { margin-left: -7px; }

/* Bo cong nhẹ cho các section */
.section, .values-section, .ai-section, .philosophy-section {
    border-radius: 24px;
    width: calc(100% - 2rem);
    margin: 1rem auto;
    scroll-margin-top: 100px;
}
.brand-split-layout, .section-intellihome, .quatest-section {
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-map iframe { border-radius: 14px; }

/* Tối ưu thêm cho Mobile */
@media (max-width: 768px) {
    .section, .values-section, .ai-section, .philosophy-section {
        border-radius: 18px;
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
        scroll-margin-top: 80px;
    }

    a, button { -webkit-tap-highlight-color: transparent; }

    /* Menu mobile: chiều cao đúng trên trình duyệt có thanh địa chỉ, cuộn được khi mở dropdown */
    .nav-menu { height: 100dvh; overflow-y: auto; padding-bottom: 2rem; }

    /* Footer: căn giữa văn bản, tránh tràn chữ dài */
    .footer-info { overflow-wrap: anywhere; }
    .footer-info p, .footer-bottom p { text-align: center; }
    .footer-bottom { font-size: 0.85rem; }

    .modal-container { max-height: 85dvh; }
}

/* Thanh điều hướng Mobile (thiết kế lại) */
@keyframes headerShine { to { background-position: -200% 0; } }

@media (max-width: 768px) {
    /* Thanh header dạng kính mờ + đường viền vàng chạy nhẹ */
    header {
        background: rgba(5, 5, 5, 0.82);
        backdrop-filter: blur(14px) saturate(140%);
        -webkit-backdrop-filter: blur(14px) saturate(140%);
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }
    header::after {
        content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.7) 50%, transparent 100%);
        background-size: 200% 100%;
        animation: headerShine 6s linear infinite;
        pointer-events: none;
    }

    /* Nút hamburger dạng khối bo góc */
    .hamburger {
        display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
        width: 42px; height: 42px; border-radius: 12px;
        border: 1px solid rgba(255, 215, 0, 0.25);
        background: rgba(255, 255, 255, 0.04);
        transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    }
    .hamburger:active { transform: scale(0.94); }
    .hamburger .bar {
        width: 20px; height: 2px; margin: 0; border-radius: 2px;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, width 0.3s ease, background 0.3s ease;
    }
    .hamburger .bar:nth-child(2) { width: 14px; }
    .hamburger.active {
        border-color: var(--gold);
        background: rgba(255, 215, 0, 0.08);
        box-shadow: 0 0 16px rgba(255, 215, 0, 0.25);
    }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Bảng menu trượt từ phải sang */
    .nav-menu {
        left: 0; transform: translateX(100%);
        opacity: 0; visibility: hidden;
        background:
            radial-gradient(circle at 85% 0%, rgba(255, 215, 0, 0.12), transparent 55%),
            radial-gradient(circle at 0% 100%, rgba(255, 165, 0, 0.06), transparent 50%),
            rgba(0, 0, 0, 0.96);
        padding-top: 90px; text-align: left;
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, visibility 0.45s;
    }
    .nav-menu.active { left: 0; transform: none; opacity: 1; visibility: visible; }

    .nav-menu > ul { padding: 0 1.25rem; gap: 0.6rem; }

    /* Từng mục menu xuất hiện lần lượt */
    .nav-menu > ul > li {
        opacity: 0; transform: translateX(24px);
        transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .nav-menu.active > ul > li { opacity: 1; transform: none; }
    .nav-menu.active > ul > li:nth-child(1) { transition-delay: 0.08s; }
    .nav-menu.active > ul > li:nth-child(2) { transition-delay: 0.13s; }
    .nav-menu.active > ul > li:nth-child(3) { transition-delay: 0.18s; }
    .nav-menu.active > ul > li:nth-child(4) { transition-delay: 0.23s; }
    .nav-menu.active > ul > li:nth-child(5) { transition-delay: 0.28s; }
    .nav-menu.active > ul > li:nth-child(6) { transition-delay: 0.33s; }
    .nav-menu.active > ul > li:nth-child(7) { transition-delay: 0.38s; }

    /* Mục menu dạng thẻ bo góc */
    .nav-menu > ul > li > a {
        display: flex; justify-content: flex-start; align-items: center;
        font-size: 1.1rem; font-weight: 500; letter-spacing: 0.3px;
        padding: 1rem 1.25rem;
        border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 14px;
        background: rgba(255, 255, 255, 0.03);
        transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    }
    .nav-menu > ul > li > a::after {
        content: '›'; position: static; width: auto; height: auto;
        background: none; color: var(--gold); font-size: 1.4rem; line-height: 1;
        margin-left: auto;
        opacity: 0.5; transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .nav-menu > ul > li > a.dropdown-toggle::after { content: none; }
    .dropdown-toggle .arrow-down { margin-left: auto; }
    .nav-menu > ul > li > a:hover,
    .nav-menu > ul > li > a:active,
    .nav-menu > ul > li > a.active,
    .has-dropdown.open > .dropdown-toggle {
        color: var(--gold);
        border-color: rgba(255, 215, 0, 0.35);
        background: rgba(255, 215, 0, 0.07);
    }
    .nav-menu > ul > li > a:hover::after,
    .nav-menu > ul > li > a.active::after { opacity: 1; transform: translateX(4px); }
    .nav-menu > ul > li > a:active { transform: scale(0.98); }
    .nav-menu a:hover::after { width: auto; }

    /* Dropdown "Lĩnh vực" dạng thẻ con */
    .dropdown-toggle { justify-content: space-between; }
    .dropdown-menu { border-radius: 14px; }
    .has-dropdown.open .dropdown-menu {
        margin-top: 0.5rem; padding: 0.4rem 0;
        background: rgba(255, 215, 0, 0.03);
        border: 1px solid rgba(255, 215, 0, 0.12);
    }
    .dropdown-menu a {
        display: flex; align-items: center;
        text-align: left; padding: 0.8rem 1.25rem; font-size: 1rem;
        border-bottom: none;
    }
    .dropdown-menu a::before {
        content: ''; width: 6px; height: 6px; border-radius: 50%; margin-right: 0.7rem;
        background: var(--gold); opacity: 0.45; flex-shrink: 0;
        transition: opacity 0.3s ease, box-shadow 0.3s ease;
    }
    .dropdown-menu a:hover, .dropdown-menu a:active { padding-left: 1.25rem; }
    .dropdown-menu a:hover::before, .dropdown-menu a:active::before {
        opacity: 1; box-shadow: 0 0 8px var(--gold-glow);
    }

    /* Khóa cuộn trang khi menu đang mở */
    html:has(.nav-menu.active), body:has(.nav-menu.active) { overflow: hidden; }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    header::after { animation: none; }
    .nav-menu, .nav-menu > ul > li, .hamburger .bar { transition: none; }
}

/* Màn hình nhỏ (≤ 400px) */
@media (max-width: 400px) {
    .header-content { padding: 0.7rem 0.8rem; }
    .logo-header, .logo-header a { gap: 0.6rem !important; }
    .logo-header img { width: 38px; height: 38px; }
    .logo-header h1 { font-size: 1.05rem; }
    .hamburger { margin-left: 0.5rem; }

    .section { padding: 2.5rem 0.9rem !important; }
    .brand-title { font-size: 1.55rem !important; }
    .sub-title { font-size: 1rem !important; }
}
