/* --- 1. CẤU HÌNH CHUNG --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff;
    --dark-color: #1a1a1a;
    --text-muted: #6c757d;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

body {
    font-family: "Inter", sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #ffffff;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 123, 255, 0.05) 0px, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(255, 0, 150, 0.03) 0px, transparent 50%),
        url("https://www.toptal.com/designers/subtlepatterns/patterns/double-bubble-outline.png");
    background-attachment: fixed;
}

/* ------------------ 2. NAVIGATION BAR ------------------ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 6%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
}

.logo-img {
    width: 120px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover { transform: scale(1.15); }

.menu ul { display: flex; align-items: center; gap: 25px; list-style: none; padding: 0; margin:0; }

.nav-button {
    text-decoration: none;
    color: var(--dark-color);
    margin-left: 30px;
    font-weight: 500;
    font-size: 1rem; /* ----------16px--- */
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    transition: var(--transition);
}

.nav-button:hover { color: var(--primary-color); }
.nav-button:hover::after { width: 100%; bottom: -3px; }

/* ----------------------3.DROPDOWN------------------------- */
.dropdown { position: relative; }
.dropdown > .nav-button { background: none; border: none; outline: none; }

.dropdown-content {
    display: block;
    opacity: 0;
    visibility: hidden; 
    transform: translateY(10px);
    transition: var(--transition);
    position: absolute;
    background-color: white;
    min-width: 150px;
    border-radius: 10px;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

.dropdown-content a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: rgba(0,123,255,0.08);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ---------------- 4. HERO SECTION ------------------- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }

.hero-image-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    transform: scale(1.05);
    opacity: 0;
    animation: fadeVideo 1.5s ease forwards;
}

.hero-text {
    position: relative;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 40px;
    z-index: 1;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(3px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 7vw, 90px);
    text-transform: uppercase;
    letter-spacing: 8px;
    font-weight: 800;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease;
}

.hero-sub-hero {
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease;
}

/* --- 5. IMAGE STACK & TYPOGRAPHY --- */
/* --- 5. IMAGE STACK & TYPOGRAPHY --- */
.layout { padding: 80px 0; }

.display-4 {
    font-family: 'Playfair Display', serif;
    /* Hiệu ứng Gradient */
    background: linear-gradient(90deg, #1a1a1a, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Cỡ chữ đồng bộ và linh hoạt */
    font-size: clamp(30px, 5vw, 55px); 
    font-weight: 700;
    line-height: 1.2;
    display: inline-block; /* Quan trọng để Gradient hiển thị đúng trên chữ */
}

.image-stack {
    position: relative;
    width: 100%;
    height: 500px;
    margin-top: 20px;
}

.image-stack__item { 
    position: absolute; width: 75%; 
    transition: var(--transition); }
.image-stack__item img {
    width: 100%;
    border: 12px solid #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-radius: 2px;
}
/* Ảnh 1 (Nằm phía trên/bên trái) */
.image-stack__item--top {
    top: 0; left: 0; z-index: 2;
    transform: rotate(-4deg);
    animation: floating 4s ease-in-out infinite;
}
/* Ảnh 2 (Nằm phía trước/bên phải) */
.image-stack__item--bottom { 
    bottom: 0; right: 0; z-index: 1; 
    transform: rotate(6deg); }

.image-stack:hover .image-stack__item--top { transform: translate(-15px, -15px) rotate(0deg) scale(1.02); z-index: 1; }
.image-stack:hover .image-stack__item--bottom { transform: translate(15px, 15px) rotate(0deg) scale(1.05); z-index: 3; }

/* ---------------------- 6. QUOTES ------------------ */
.quotes { background-color: #f9fbfd !important; }

.quote-item {
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
}

/*.quote-item:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.08); }*/

.google-quote {
    font-family: "Playfair Display", serif;
    font-size: 1.15rem; line-height: 1.8; font-style: italic; color: #444;
    margin-bottom: 25px; position: relative;
}

.google-quote::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900; font-size: 2.5rem;
    color: rgba(0, 123, 255, 0.1);
    position: absolute; top: -30px; left: -10px;
}

/* --- 7. IMPACT COLUMNS (HIỆU ỨNG TEXT HOVER) ------------------------ */
.impact-section { padding: 60px; text-align: center; }

.impact-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px; font-weight: 700; margin-bottom: 20px;
    opacity: 0; transform: translateY(20px);
    animation: fadeInUp 1s forwards; animation-delay: 0.2s;
}

.impact-columns { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; }

.col {
    cursor: pointer; /* Hiển thị con trỏ bàn tay khi hover chuột */
    flex: 1;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 30px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0; transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.col h4 { color: #1a1a1a; transition: color 0.3s ease; margin-bottom: 15px; }
.col p { color: #666; transition: color 0.3s ease; }

/* ----------------8.HOVER EFFECT------------------ */
.col:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
    border-color: var(--primary-color);
}

.col:hover h4, .col:hover p, .col:hover h4::before { color: var(--primary-color); }

.col::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 4px;
    background: var(--primary-color);
    transition: width 0.4s ease;
}
.col:hover::after { width: 100%; }

/* ----------------9.Icons FontAwesome------------------ */
.col h4::before {
    display: block; font-family: "Font Awesome 6 Free"; font-weight: 900;
    font-size: 2rem; margin-bottom: 15px; color: var(--primary-color);
    transition: color 0.3s ease;
}
.impact-columns .col:nth-child(1) h4::before { content: "\f21e"; }
.impact-columns .col:nth-child(2) h4::before { content: "\f059"; }
.impact-columns .col:nth-child(3) h4::before { content: "\f3ed"; }

.col:nth-child(1) { animation-delay: 0.6s; }
.col:nth-child(2) { animation-delay: 0.8s; }
.col:nth-child(3) { animation-delay: 1s; }

/* --------------------- 10. CLOSING AWARENESS & CTA ------------------- */
.closing-awareness { margin-top: 60px; text-align: center; }
.closing-awareness h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px; font-weight: 700; margin-bottom: 20px;
    opacity: 0; transform: translateY(20px);
    animation: fadeInUp 1s forwards; animation-delay: 1.2s;
}

.cta-btn {
    display: inline-block; margin-top: 45px; padding: 15px 35px;
    background: #007bff; color: white; text-decoration: none;
    border-radius: 25px; transition: 0.3s ease;
}
.cta-btn:hover { background: black; color: white; text-decoration: none; transform: scale(1.05); }

/* ------------------------ 11. FOOTER --------------------------------- */
footer {
    background: var(--dark-color); color: #fff;
    padding: 40px 20px; text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
footer p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
footer strong { color: var(--primary-color); }

/* --- 9. KEYFRAMES & RESPONSIVE --- */
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeVideo { to { opacity: 1; } }
@keyframes floating {
    0%, 100% { transform: rotate(-4deg) translateY(0px); }
    50% { transform: rotate(-4deg) translateY(-15px); }
}

@media (max-width: 768px) {
    .navbar-custom { padding: 10px 5%; }
    .nav-button { margin-left: 15px; font-size: 0.85rem; }
    .impact-columns { flex-direction: column; }
    .image-stack { height: auto; display: flex; flex-direction: column; gap: 30px; }
    .image-stack__item { position: relative; width: 100%; transform: none !important; animation: none !important; }
}



/*--------------------------12. CODE FOR APPEARING VIDEOS- CLOSE/OPEN VIDEOS----------------------*/
/* --- LỚP NỀN MỜ PHỦ TOÀN MÀN HÌNH --- */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7); /* Làm nền tối hơn một chút để nổi bật video */
    backdrop-filter: blur(10px);    /* Làm mờ các chi tiết phía sau cực đẹp */
    display: flex;
    align-items: center;     /* Căn giữa video theo chiều dọc */
    justify-content: center;   /* Căn giữa video theo chiều ngang */
    z-index: 9999;           /* Đảm bảo luôn nằm trên cùng, không bị các thẻ khác đè lên */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Khi có class active thì mới hiển thị */
.success-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- HỘP CHỨA VIDEO (POPUP BOX) --- */
.success-overlay .success-box {
    background: #1a1a1a;     /* Đổi sang nền tối kiểu rạp phim để xem video không bị lóa mắt */
    padding: 15px;
    border-radius: 20px;     /* Bo góc mềm mại đồng bộ với các card của bạn */
    max-width: 850px;        /* Giới hạn độ rộng tối đa của video */
    width: 90%;              /* Co giãn mượt mà trên điện thoại */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.85);  /* Tạo hiệu ứng phóng từ nhỏ ra to khi xuất hiện */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.success-overlay.active .success-box {
    transform: scale(1);     /* Phóng về kích thước chuẩn khi mở */
}

/* --- KHUNG GIỮ TỶ LỆ VIDEO 16:9 CHUẨN --- */
.video-responsive-container {
    padding: 56.25% 0 0 0;   /* Mẹo CSS cố định tỷ lệ vàng 16:9, video không bao giờ bị bóp méo */
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;        /* Ép khung video Vimeo cũng phải bo góc theo */
}

.video-responsive-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- NÚT BẤM CLOSE VIDEO XỊN --- */
.close-video-btn {
    display: block;
    margin: 15px auto 0;     /* Căn giữa nút bấm */
    padding: 10px 40px;
    background: #ffffff;
    color: #1a1a1a;
    font-weight: 600;
    border: none;
    border-radius: 25px;     /* Bo tròn giống cta-btnquiz của bạn */
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-video-btn:hover {
    background: #007bff;     /* Di chuột vào đổi sang màu xanh chủ đạo */
    color: #ffffff;
    transform: scale(1.05);  /* Phóng nhẹ một chút */
}
/*------- CSS FOR ARExperience Page-------------*/

/*----------------  AR EXPERIENCE PAGE -------------------*/
.tracking-wider {
    letter-spacing: 2px;
}

/* Step Numbers (1, 2) Design */
.step-num {
    width: 36px;
    height: 36px;
    background: rgba(0, 123, 255, 0.08);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Target Wrapper Card styling */
.target-wrapper {
    cursor: pointer;
    border-radius: 24px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03) !important;
    transition: var(--transition);
}
.target-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 123, 255, 0.05) !important;
}

.target-box {
    border: 2px dashed rgba(0, 123, 255, 0.2);
    position: relative;
}

.target-img {
    transition: all 0.3s ease;
}

/* Hover effects for the image card */
.target-wrapper:hover .target-img {
    transform: scale(1.02);
}

/*------------RESPONSIVE FOR MOBIFONE--------*/

/* --- RESPONSIVE MOBILE MENU --- */
.hamburger {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

@media (max-width: 992px) {
    .hamburger { display: block; }

    .menu {
        display: none; 
        position: absolute;
        top: 100%; /* Đảm bảo nằm ngay dưới thanh nav */
        left: 0;
        width: 100%;
        background: #fff; /* Nên để màu trắng đục hoặc trắng hoàn toàn để dễ đọc */
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: center;
        z-index: 1000;
    }

    .menu.active { 
        display: flex !important; 
    }
    
    .menu ul { 
        flex-direction: column; /* Xếp dọc */
        gap: 20px;              /* Tạo khoảng cách giữa các chữ */
        width: 100%;
        align-items: center;
        padding: 0;
    }

    .nav-button { 
        margin-left: 0; 
        font-size: 1.2rem; /* Tăng size chữ cho dễ bấm trên mobile */
    }
}