/* 
    ELITE AI - ULTIMATE UNIFIED STYLESHEET
    Author: Lê Văn Thắng - IT Krông Bông
    Version: 6.0 (Unified Edition)
*/

/* --- 1. SETUP & VARIABLES --- */
:root {
    --primary-bg: #050505;
    --secondary-bg: #0a0a0a;
    --accent-color: #00d2ff;      /* Cyan Neon */
    --purple-glow: #7d5fff;      /* Purple Neon */
    --text-main: #ffffff;
    --text-secondary: #a0a0a0;
    --text-dim: #666666;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- 2. GLOBAL RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
}

body { 
    background: #080a0f;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 210, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(58, 123, 213, 0.15) 0px, transparent 50%);
    color: var(--text-main); 
    font-family: 'Lexend', sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* 2. Hiệu ứng Hạt Rơi Nhẹ Nhàng (Particles) */
body::before, body::after {
    content: "";
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Các hạt nhỏ màu xanh Cyan */
body::before {
    background-image: radial-gradient(circle, var(--accent-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particlesFall 20s linear infinite;
    opacity: 0.3;
}

/* Các hạt mờ hơn tạo chiều sâu */
body::after {
    background-image: radial-gradient(circle, #fff 0.5px, transparent 0.5px);
    background-size: 80px 80px;
    animation: particlesFall 35s linear infinite reverse;
    opacity: 0.1;
}

@keyframes particlesFall {
    from { transform: translateY(0); }
    to { transform: translateY(100vh); }
}
.container {
    max-width: 1200px;
}
                    .transition-hover:hover .ai-logo-box {
                        transform: scale(1.1) rotate(5deg);
                        /* Logo hơi to ra và xoay nhẹ */
                    }

                    .transition-hover:hover .brand-text p {
                        color: #00d2ff !important;
                        /* Dòng chữ "By Le Van Thang" đổi màu sáng lên */
                    }

                    .brand-wrapper {
                        cursor: pointer;
                    }
/* --- 4. TYPOGRAPHY & UTILS --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
}
/* Thêm đoạn này vào file CSS của bạn */
.typed-cursor {
    opacity: 1;
    animation: blink 0.7s infinite;
    color: var(--info); /* Chỉnh màu cho con trỏ */
    margin-left: 5px;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
.text-gradient {
    background: linear-gradient(90deg, var(--accent-color), var(--purple-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 800;
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-color), var(--purple-glow));
    border-radius: 10px;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* --- 5. HEADER & NAVIGATION --- */
.elite-header {
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ai-logo-box {
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
    transition: var(--transition);
}

.ai-logo-box:hover {
    transform: scale(1.05) rotate(5deg);
}

.hover-white:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* --- 6. HERO SECTION --- */
.hero-section {
    position: relative;
    padding: 140px 0 100px;
}

.hero-glow {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; max-width: 800px;
    height: 500px;
    background: radial-gradient(circle, rgba(125, 95, 255, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 22px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-dot {
    height: 8px; width: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    box-shadow: 0 0 12px #00ff88;
    animation: blink-status 1.5s infinite;
}

@keyframes blink-status {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* --- 7. ELITE CARDS & EFFECTS --- */
.elite-card, .feature-card, .pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 40px;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.elite-card:hover, .feature-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Hiệu ứng ánh sáng quét (Shine) */
.elite-card::after {
    content: "";
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: 0.8s;
}

.elite-card:hover::after {
    left: 150%;
}

/* --- 8. BUTTONS --- */
.btn-elite {
    border-radius: 50px;
    padding: 16px 36px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-elite-primary {
    background: linear-gradient(45deg, var(--purple-glow), var(--accent-color));
    color: white !important;
    box-shadow: 0 4px 20px rgba(125, 95, 255, 0.3);
}

.btn-elite-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.5);
}

.btn-outline-light {
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: black !important;
}

/* --- 9. PRICING & STATS --- */
.pricing-card.premium {
    border: 2px solid var(--accent-color);
    background: rgba(0, 210, 255, 0.04);
}

.popular-badge {
    background: var(--accent-color);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 18px;
    border-radius: 20px;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--accent-color);
}

.stats-bar {
    background: var(--secondary-bg);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

/* --- 10. RESPONSIVE --- */
@media (max-width: 991px) {
    .display-3 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero-section { padding: 100px 0 60px; }
    .display-3 { font-size: 2.4rem; }
    .elite-card { padding: 30px; }
    .btn-elite { width: 100%; margin-bottom: 12px; font-size: 14px !important; }
}

/* --- 11. CUSTOM SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary-bg); }
::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
    border: 2px solid var(--primary-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }
/* Mobile Optimization cho CTA Section */
@media (max-width: 767.98px) {
    #cta .p-5 {
        padding: 2.5rem 1.5rem !important; /* Giảm padding để nội dung rộng hơn */
        border-radius: 2rem !important; /* Bo góc nhẹ hơn trên mobile */
    }

    #cta h2.display-4 {
        font-size: 1.8rem !important; /* Thu nhỏ tiêu đề tránh tràn dòng quá nhiều */
        line-height: 1.3;
    }

    #cta p.fs-5 {
        font-size: 1rem !important; /* Giảm kích thước đoạn văn */
        margin-bottom: 2rem !important;
    }

    /* Ẩn bớt hoặc thu nhỏ các icon trang trí để không đè lên chữ */
    #cta .position-absolute i {
        opacity: 0.1; /* Làm mờ hơn nữa trên mobile */
    }

    #cta .fa-brain {
        top: 5% !important;
        left: 2% !important;
        font-size: 2rem !important;
    }

    #cta .fa-bolt {
        bottom: 5% !important;
        right: 5% !important;
        font-size: 1.5rem !important;
    }

    #cta .fa-telegram-plane {
        display: none; /* Ẩn bớt 1 icon để đỡ rối mắt trên màn hình nhỏ */
    }

    /* Tối ưu nút bấm */
    #cta .btn-lg {
        padding: 12px 20px !important;
        font-size: 1rem !important;
        width: 100%; /* Nút bấm full chiều ngang trên mobile giúp dễ chạm */
    }
    
    #cta .d-flex.gap-4 {
        gap: 1rem !important; /* Thu hẹp khoảng cách giữa 2 nút */
    }
}

/* Hiệu ứng mượt mà khi hover (cho cả Desktop và Mobile nếu có dùng chuột) */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-scale:active {
    transform: scale(0.95); /* Hiệu ứng nhấn nút trên điện thoại */
}
/* Style cho toggle switch nhỏ trong modal */
            .switch-small {
                position: relative;
                display: inline-block;
                width: 34px;
                height: 20px;
            }

            .switch-small input {
                opacity: 0;
                width: 0;
                height: 0;
            }

            .slider-round {
                position: absolute;
                cursor: pointer;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: #30363d;
                transition: .4s;
                border-radius: 20px;
            }

            .slider-round:before {
                position: absolute;
                content: "";
                height: 14px;
                width: 14px;
                left: 3px;
                bottom: 3px;
                background-color: white;
                transition: .4s;
                border-radius: 50%;
            }

            input:checked+.slider-round {
                background-color: #238636;
            }

            input:checked+.slider-round:before {
                transform: translateX(14px);
            }
            /* Màu chữ khi hover */
.nav-link:hover, .hover-white:hover {
    color: #fff !important;
    transition: 0.3s;
}

/* Tùy chỉnh menu xổ xuống trên mobile */
@media (max-width: 767.98px) {
    .navbar-collapse {
        background: rgba(15, 15, 26, 0.98); /* Nền tối sang trọng */
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    
    .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

/* Hiệu ứng xoay nhẹ icon 3 gạch khi bấm */
.navbar-toggler:focus {
    outline: none;
}
.navbar-toggler[aria-expanded="true"] i {
    transform: rotate(90deg);
    color: #00d2ff !important;
    transition: 0.3s;
}