/* Nhập Font Montserrat từ Google */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #3b82f6;
    --vf-blue: #133060;
    --text-light: #ffffff;
    --text-gray: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    -webkit-tap-highlight-color: transparent; /* Tối ưu trải nghiệm chạm trên Mobile */
}

body {
    background: #090d16;
    color: var(--text-light);
    overflow-x: hidden;
    overflow-y: auto; /* Cho phép cuộn dọc */
}

/* ==================== SỬA LỖI HÌNH NỀN TẠI ĐÂY ==================== */
/* 1. Định dạng thẻ ảnh để nó đóng vai trò là hình nền */
#bg-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* object-fit: cover; tác dụng tương tự background-size: cover; */
    object-fit: cover; 
    
    /* object-position: center; tác dụng tương tự background-position: center; */
    object-position: center; 
    
    /* Đặt z-index: -2 để nó nằm sâu nhất, dưới lớp overlay và nội dung */
    z-index: -2; 
    
    /* Đảm bảo ảnh không thể bị kéo chọn */
    user-select: none;
    -webkit-user-drag: none;
}

/* 2. Sửa lớp overlay để nó chỉ còn gradient tối, không tải ảnh nền nữa */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* XÓA ĐƯỜNG DẪN URL, CHỈ GIỮ gradient tối */
    background-image: linear-gradient(to bottom, rgba(13, 27, 42, 0.85), rgba(9, 13, 22, 0.95));
    
    /* Giữ nguyên z-index: -1 (nằm trên ảnh nền, dưới nội dung) */
    z-index: -1; 
}
/* =================================================================== */

/* Container chính */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1rem;
    text-align: center;
}

/* Header / Logo */
header {
    margin-top: 1rem;
    animation: fadeInDown 1s ease-out;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 5px;
}

.title-link {
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.title-link:hover {
    color: var(--primary-color);
}

/* Phần nội dung chính */
.main-content {
    max-width: 900px;
    width: 100%;
    margin: 2rem 0;
    animation: fadeIn 1.2s ease-out;
}

.main-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-text {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.main-content .highlight {
    color: #3b82f6;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* Đồng hồ đếm ngược */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 110px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.countdown-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Khu vực Thông tin */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    text-align: left;
}

/* Card chung */
.card {
    background: rgba(13, 27, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Card Nhân Viên */
.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    flex-shrink: 0;
}

.profile-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: #fff;
}

.profile-info .title {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.contact-link {
    color: var(--text-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: color 0.3s;
    padding: 4px 0;
}

.contact-link:hover {
    color: #fff;
}

.contact-link i {
    color: var(--primary-color);
    width: 16px;
}

/* Card Showroom */
.showroom-img {
    width: 120px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.showroom-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.showroom-info p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.showroom-icon {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Footer */
footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    animation: fadeInUp 1s ease-out;
}

/* ================= GIAO DIỆN MOBILE TỐI ƯU (Responsive) ================= */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .main-content h2 {
        font-size: 1.6rem;
    }

    .status-text {
        font-size: 0.95rem !important;
        padding: 0 0.5rem;
    }

    /* Thu nhỏ đồng hồ một chút trên điện thoại */
    .countdown-container {
        gap: 0.8rem;
    }

    .countdown-box {
        padding: 1rem;
        min-width: 75px;
        flex: 1 1 20%; /* Tự động co giãn đều hàng */
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    /* Chuyển grid thành cột dọc trên Mobile */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-top: 2rem;
        padding: 0 0.5rem;
    }

    .card {
        padding: 1.2rem;
        flex-direction: row; /* Vẫn giữ hàng ngang nhẹ cho avatar gọn */
        gap: 1rem;
    }

    .avatar {
        width: 75px;
        height: 75px;
    }

    .showroom-img {
        width: 90px;
        height: 75px;
    }

    .profile-info h3,
    .showroom-info h3 {
        font-size: 1.05rem;
    }
}

/* Tối ưu riêng cho các điện thoại màn hình rất nhỏ (dưới 380px) */
@media (max-width: 380px) {
    .card {
        flex-direction: column; /* Chuyển hẳn sang dạng dọc */
        text-align: center;
        align-items: center;
    }

    .info-grid {
        text-align: center;
    }

    .contact-link {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}