﻿:root {
    --primary: #00c6ff;
    --secondary: #0072ff;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: #050505; /* Fallback khi video chưa load */
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ===== TYPOGRAPHY & UTILS ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 60px; /* Tăng khoảng cách từ Tiêu đề xuống Nội dung */
}

    .section-header h2 {
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 700;
        margin-bottom: 18px; /* Tăng từ 10px lên 18px để tách khỏi Subtitle */
        line-height: 1.3;
    }

    .section-header p {
        color: var(--text-muted);
        font-size: 1.15rem;
        line-height: 1.6;
    }

/* ===== VIDEO BACKGROUND ===== */
.video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8));
    transition: background 0.3s ease;
}

/* ===== GLASSMORPHISM (Chuẩn Apple) ===== */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px; /* CHÌA KHÓA: Tự động tạo khoảng cách 25px giữa mọi phần tử */
    will-change: transform, opacity;
}
    .hero-content .title {
        line-height: 1.3;
    }

    .hero-content .subtitle {
        line-height: 1.6;
    }

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px; /* Khoảng cách phụ cho nút bấm */
}

/* ===== IOS BUTTONS ===== */
.ios-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    color: white;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

    .ios-btn.primary {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        box-shadow: 0 10px 20px rgba(0, 114, 255, 0.3);
        border: none;
    }

    .ios-btn.outline {
        background: var(--bg-glass);
        border: 1px solid rgba(255,255,255,0.3);
        backdrop-filter: blur(10px);
    }

    .ios-btn:hover {
        transform: translateY(-3px);
    }

    .ios-btn.primary:hover {
        box-shadow: 0 15px 30px rgba(0, 114, 255, 0.5);
    }

    .ios-btn.outline:hover {
        background: rgba(255,255,255,0.1);
        border-color: #fff;
    }

/* ===== SECTIONS COMMON ===== */
section {
    padding: 120px 20px; /* Tăng khoảng cách giữa CÁC SECTION với nhau */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== SERVICES ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    text-align: left;
    transition: transform 0.3s;
}

    .service-card i {
        font-size: 40px;
        color: var(--primary);
        margin-bottom: 25px; /* Tăng từ 20px */
    }

    .service-card h3 {
        font-size: 1.5rem;
        margin-bottom: 16px; /* Tăng từ 10px lên 16px */
        line-height: 1.4;
    }

    .service-card p {
        color: var(--text-muted);
        line-height: 1.6;
    }

/* ===== GALLERY ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.grid-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.grid-item:hover .gallery-img {
    transform: scale(1.08);
}

.grid-item::after {
    content: '\25A2  Xem ảnh';
    font-family: 'Phosphor';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
    font-size: 1.2rem;
    font-weight: 500;
}

.grid-item:hover::after {
    opacity: 1;
}

/* ===== STATS ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    padding: 40px 20px;
    text-align: center;
}

    .stat-card h2 {
        font-size: 3rem;
        margin-bottom: 16px; /* Tăng từ 10px lên 16px */
    }

/* ===== TESTIMONIAL ===== */
.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    text-align: center;
}

    .testimonial-card i.ph-quotes {
        font-size: 40px;
        color: var(--text-muted);
        margin-bottom: 20px;
    }

.review-text {
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 30px;
}

.customer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* ===== CTA ===== */
.cta-box {
    padding: 100px 40px; /* Tăng từ 80px lên 100px để khối kính thoáng lề trên/dưới hơn */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Ép H2, P và Nút cách nhau đúng 20px */
    text-align: center;
}

    .cta-box p {
        margin-bottom: 0;
    }

    .cta-box h2 {
        line-height: 1.3;
    }

    .cta-box p {
        line-height: 1.6;
        font-size: 1.2rem;
        color: var(--text-muted);
    }

    /* Đẩy nút bấm cách xa text hơn */
    .cta-box .ios-btn {
        margin-top: 20px;
    }
/* ===== SCROLL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: zoom-out;
}

    .lightbox.show {
        opacity: 1;
    }

    .lightbox img {
        max-width: 90%;
        max-height: 90vh;
        border-radius: 8px;
        box-shadow: 0 10px 50px rgba(0,0,0,0.5);
        transform: scale(0.9);
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .lightbox.show img {
        transform: scale(1);
    }

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
}

    .lightbox-close:hover {
        color: var(--primary);
        transform: rotate(90deg);
    }

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 30px;
    color: var(--primary);
    font-size: 1.2rem;
}

    .loading-spinner i {
        animation: spin 1s linear infinite;
        display: inline-block;
    }

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ===== CURSOR LIGHT ===== */
.cursor-light {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.08), transparent 50%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    mix-blend-mode: screen;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
    }

    .ios-btn {
        width: 100%;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .review-text {
        font-size: 1.1rem;
    }

    section {
        padding: 60px 20px;
    }
}
