/* --- 1. SETTINGS & TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&display=swap');

:root {
    --bg-body: #F5F5F7;
    --bg-white: #FFFFFF;
    --text-main: #1D1D1F;
    --text-gray: #86868B;
    --accent: #0066CC;
    --radius: 12px;
    --container: 1100px;
    --easing: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

p {
    font-size: 17px;
    color: var(--text-gray);
    font-weight: 400;
}

/* --- 2. INTRO LOADER --- */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s var(--easing);
}

.intro-logo {
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    opacity: 0;
    animation: fadeInOut 2.5s forwards;
    text-align: center;
    line-height: 1.5;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }

    80% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

.intro-overlay.hide {
    transform: translateY(-100%);
}

/* --- 3. NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.nav-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Style cho Logo - Đã chỉnh sửa kích thước chuẩn */
.navbar .logo {
    display: flex;
    align-items: center;
}

    .navbar .logo img {
        height: 100px; /* Kích thước chuẩn cho navbar 60px */
        width: auto;
        object-fit: contain;
    }

.nav-links {
    display: flex;
    gap: 40px;
}

    .nav-links a {
        font-size: 14px;
        color: #333;
        font-weight: 500;
        opacity: 0.8;
    }

        .nav-links a:hover, .nav-links a.active {
            opacity: 1;
            color: var(--accent);
        }

    /* Hiển thị Menu Mobile khi active */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 998;
        gap: 20px;
        border-bottom: 1px solid #eee;
    }

.cta-btn {
    background: var(--text-main);
    color: #fff;
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
}

    .cta-btn:hover {
        background: var(--accent);
    }

/* --- 4. HERO SECTION --- */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #000;
    color: #fff;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    transform: scale(1.1);
    transition: transform 0.1s linear;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s 1s backwards;
}

.hero-sub {
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    margin-bottom: 20px;
}

/* --- 5. BENTO GRID (Services) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    overflow: hidden;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s var(--easing);
    cursor: pointer;
}

    /* Đảm bảo chữ luôn nằm trên ảnh */
    .card > div:first-child {
        position: relative;
        z-index: 10;
    }

.card-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    height: auto;
    transform: translate(10%, 10%);
    transition: 0.5s;
    z-index: 1;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

    .card:hover .card-img {
        transform: translate(0,0);
    }

.card.dark {
    background: #000;
    color: #fff;
}

    .card.dark p {
        color: #888;
    }

.big-card {
    grid-column: span 2;
}

/* --- FIX: THẺ BIG CARD (MÁY DÂN DỤNG) --- */
.card.big-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.card-content-wrap {
    flex: 1;
    padding: 40px;
    z-index: 2;
    min-width: 50%;
}

.card.big-card .card-img {
    position: relative;
    width: 50%;
    height: 100%;
    object-fit: cover;
    transform: none;
    right: 0;
    bottom: 0;
    opacity: 1;
}

.card.big-card:hover .card-img {
    transform: scale(1.05);
}

/* --- 6. BLOG LIST --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.blog-item img {
    height: 250px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    transition: 0.3s;
}

.blog-item:hover img {
    transform: scale(1.02);
}

.blog-meta {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.blog-title {
    font-size: 20px;
    line-height: 1.3;
    transition: 0.3s;
}

.blog-item:hover .blog-title {
    color: var(--accent);
}

/* --- 7. BLOG DETAIL --- */
.article-header {
    padding: 120px 0 60px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.article-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

    .article-content p {
        margin-bottom: 30px;
        color: #333;
    }

    .article-content h2 {
        font-size: 28px;
        margin-top: 50px;
    }

.article-img-full {
    width: 100%;
    border-radius: var(--radius);
    margin: 40px 0;
}

/* --- 8. PRICING TABLE --- */
.pricing-wrap {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 25px 40px;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.2s;
}

    .price-row:hover {
        background: #fafafa;
        padding-left: 50px;
    }

.price-name {
    font-weight: 600;
    font-size: 18px;
}

.price-val {
    font-weight: 700;
    color: var(--text-main);
}

.price-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 5px;
}

/* --- 9. CONTACT FORM --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 15px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    font-family: 'Inter';
    font-size: 16px;
}

    .form-input:focus {
        outline: 2px solid var(--accent);
        background: #fff;
    }

.btn-submit {
    background: var(--text-main);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

/* --- 10. NEW SECTIONS STYLES --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.process-step {
    padding: 20px;
}

.step-num {
    font-size: 60px;
    font-weight: 800;
    color: #F0F0F2;
    line-height: 1;
    margin-bottom: 10px;
}

/* --- 11. MOBILE & ANIMATIONS --- */
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 50px;
    display: none;
    justify-content: space-around;
    z-index: 999;
}

.mobile-action {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s var(--easing);
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    /* Navbar */
    .nav-links {
        display: none;
    }
    /* Ẩn menu PC */
    .cta-btn {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .navbar .logo img {
        height: 100px;
    }
    /* Logo nhỏ lại */

    /* Mobile Bar */
    .mobile-bar {
        display: flex;
    }

    /* Grid Layouts */
    .grid-container, .blog-grid, .contact-grid, .stats-grid, .process-grid {
        grid-template-columns: 1fr;
    }

    .big-card {
        grid-column: span 1;
    }

    /* Typography */
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    /* Sections */
    .hero {
        height: 80vh;
    }

    .card {
        height: 350px;
    }

    .article-header {
        padding-top: 80px;
    }

    /* Big Card Fix Mobile */
    .card.big-card {
        flex-direction: column;
        height: auto;
    }

    .card-content-wrap {
        width: 100%;
        padding: 30px;
    }

    .card.big-card .card-img {
        width: 100%;
        height: 250px;
    }

    /* Pricing Table */
    .price-row {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }

        .price-row:hover {
            padding-left: 20px;
            background: #fff;
        }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    /* Process */
    .process-grid {
        text-align: center;
        gap: 40px;
    }

    /* Footer */
    footer .grid-container {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .hero-content {
        padding: 0 20px;
    }
}
/* =========================================
   1. CSS CHO MENU DROPDOWN (Tin Tức)
   ========================================= */
.dropdown-parent {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 230px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 10px 0;
    list-style: none;
    z-index: 1000;
    border: 1px solid #f0f0f0;
}

    .dropdown-menu li a {
        display: block;
        padding: 12px 20px;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
        border-bottom: 1px solid #f9f9f9;
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .dropdown-menu li a:hover {
        background: #f8f9fa;
        color: #0071e3;
        padding-left: 25px;
    }

/* Hiệu ứng xổ xuống */
.dropdown-parent:hover .dropdown-menu {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   2. CSS CHO FOOTER & MẠNG XÃ HỘI
   ========================================= */
.footer-grid {
    display: grid;
    /* Chia 4 cột: Thông tin - Liên kết - Khu vực - Facebook */
    grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr;
    gap: 40px;
}

.footer-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Nút mạng xã hội tròn */
.social-link {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    margin-right: 8px;
    font-size: 16px;
}

    .social-link:hover {
        background: #0071e3;
        transform: translateY(-3px);
    }

/* Responsive cho Footer (Mobile/Tablet) */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   3. CONTACT SIDEBAR (Apple Glassmorphism Style)
   ========================================= */
.contact-sidebar {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s var(--easing);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 10px;
    width: 52px;
    height: 52px;
    overflow: hidden;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Hiệu ứng mở rộng khi hover (Chỉ trên PC) */
@media (min-width: 769px) {
    .nav-item:hover {
        width: 190px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

    .nav-item::after {
        content: attr(data-text);
        margin-left: 15px;
        font-weight: 600;
        font-size: 14px;
        white-space: nowrap;
        opacity: 0;
        transition: 0.3s;
    }

    .nav-item:hover::after {
        opacity: 1;
    }
}

.nav-item i {
    font-size: 22px;
    min-width: 32px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item img {
    width: 28px;
    height: 28px;
    min-width: 32px;
    object-fit: contain;
}

/* Màu sắc Brand khi Hover */
.fb-btn:hover {
    color: #0084FF;
    border-color: rgba(0, 132, 255, 0.2);
}

.zalo-btn:hover {
    border-color: rgba(0, 104, 255, 0.2);
}

/* Nút gọi Titan Đen đặc biệt */
.call-btn {
    background: var(--text-main);
    color: #fff;
    border: none;
}

    .call-btn:hover {
        background: #FF3B30 !important; /* Màu đỏ đặc trưng Apple */
        color: #fff;
    }

.call-text {
    margin-left: 12px;
    font-weight: 700;
    white-space: nowrap;
    display: none;
}

.call-btn:hover .call-text {
    display: block;
}

/* Hiệu ứng rung nhẹ cho icon điện thoại */
.call-icon-anim {
    animation: apple-phone-shake 1.5s infinite;
}

@keyframes apple-phone-shake {
    0%, 100% {
        transform: rotate(0);
    }

    10%, 30%, 50% {
        transform: rotate(-15deg);
    }

    20%, 40%, 60% {
        transform: rotate(15deg);
    }

    70% {
        transform: rotate(0);
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .contact-sidebar {
        bottom: 80px; /* Tránh đè vào mobile-bar của bạn */
        left: 20px;
        gap: 12px;
    }

    .nav-item {
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.9);
    }
}
