/* ============================================
   FORZA MOBILE RESPONSIVE — DEDICATED MOBILE UI
   Breakpoint: max-width 768px
   This file ONLY contains mobile styles.
   Desktop is untouched.
   ============================================ */

/* ─── HAMBURGER BUTTON ─────────────────────── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 9999;
    position: relative;
    margin-right: 20px;
    /* Move away from edge to prevent overlap with Customizer scrollbar */
}

.mobile-menu-toggle .bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #1F2937;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-toggle .bar+.bar {
    margin-top: 5px;
}

/* Hamburger → X animation */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ─── MOBILE MENU OVERLAY ─────────────────── */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 1050;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.open {
    right: 0;
}

.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.mobile-menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile menu header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-header img {
    height: 32px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Mobile nav links */
.mobile-nav-links {
    list-style: none;
    padding: 16px 0;
    margin: 0;
    flex: 1;
}

.mobile-nav-links>li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-links>li>a,
.mobile-nav-links>li>div>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav-links>li>a:hover,
.mobile-nav-links>li>a.active,
.mobile-nav-links>li>div>a:hover,
.mobile-nav-links>li>div>a.active {
    color: #0052FF;
    background: #f8faff;
}

/* Submenu accordion */
.mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 8px;
    margin-right: 24px;
}

.mobile-submenu-toggle.open {
    transform: rotate(180deg);
    background: #e0e7ff;
    color: #0052FF;
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
}

.mobile-submenu.open {
    max-height: 500px;
}

.mobile-submenu li a {
    display: block;
    padding: 12px 24px 12px 44px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-submenu li a:hover {
    color: #0052FF;
    background: #eff6ff;
    border-left-color: #0052FF;
}

/* Mobile menu CTA */
.mobile-menu-cta {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: #0052FF;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
    transition: all 0.3s ease;
}

.mobile-menu-cta a:hover {
    background: #0041cc;
    transform: translateY(-1px);
}

/* Body scroll lock */
html.mobile-menu-open,
body.mobile-menu-open {
    overflow: hidden;
    touch-action: none;
}


/* ============================================
   MOBILE BREAKPOINT STYLES
   ============================================ */
@media (max-width: 768px) {

    /* ─── HIDE MAIN SCROLLBAR FOR APP-LIKE FEEL ─────────── */
    html,
    body {
        -ms-overflow-style: none !important;
        /* IE and Edge */
        scrollbar-width: none !important;
        /* Firefox */
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none !important;
        /* Chrome, Safari and Opera */
    }

    /* ─── HEADER ───────────────────────────── */
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none !important;
    }

    .header-inner {
        height: 64px;
    }

    .header-inner .logo img,
    .logo img {
        height: 36px !important;
    }

    .mobile-menu-overlay {
        display: flex;
    }

    /* ─── GLOBAL SECTION ADJUSTMENTS ──────── */
    .section {
        padding: 50px 0;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* ─── HERO SECTION ─────────────────────── */
    .hero {
        padding: 30px 0 50px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 24px;
        max-width: 100%;
    }

    .hero-badge {
        font-size: 12px;
        padding: 5px 12px;
        margin-bottom: 16px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }

    .hero-trust {
        gap: 12px;
    }

    .trust-avatars img {
        width: 40px;
        height: 40px;
    }

    .trust-text {
        font-size: 13px;
    }

    .trust-text strong {
        font-size: 14px;
    }

    .hero-image-box {
        padding: 12px;
        border-radius: 16px;
    }

    .floating-badge {
        display: none;
    }

    /* ─── STATS (MOTION CARDS) ─────────────── */
    .motion-stats {
        padding: 50px 0 60px;
    }

    .motion-header {
        margin-bottom: 40px;
    }

    .motion-header h2 {
        font-size: 24px !important;
    }

    .motion-header p {
        font-size: 14px;
    }

    .motion-cards {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .motion-card {
        padding: 24px 16px 20px;
        border-radius: 16px;
    }

    .mc-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 16px;
        border-radius: 10px;
    }

    .mc-number {
        font-size: 32px;
        letter-spacing: -1px;
        margin-bottom: 8px;
    }

    .mc-label {
        font-size: 11px;
        letter-spacing: 1px;
    }

    /* ─── PARTNERS TICKER ──────────────────── */
    .ticker-section {
        padding: 40px 0 50px;
    }

    .ticker-section .container {
        margin-bottom: 24px;
    }

    .ticker-section .section-title {
        font-size: 22px !important;
    }

    .ticker-wrap {
        padding: 0 10px;
    }

    .ticker-arrow {
        display: none !important;
    }

    .ticker-fade-left,
    .ticker-fade-right {
        width: 30px;
        left: 10px;
    }

    .ticker-fade-right {
        left: auto;
        right: 10px;
    }

    .ticker-logo {
        width: 120px;
        height: 70px;
        padding: 8px 10px;
    }

    .ticker-logo img {
        max-height: 45px;
        max-width: 100px;
    }

    /* ─── FEATURES (WHY CHOOSE US) ─────────── */
    .features.section {
        padding: 50px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .feature-icon-wrapper {
        margin-bottom: 16px;
    }

    .feature-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .feature-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .feature-card p {
        font-size: 14px;
    }

    /* ─── SERVICES (TAB LAYOUT → MOBILE) ──── */
    .sv-motion {
        padding: 50px 0;
    }

    .sv-header {
        margin-bottom: 32px;
    }

    .sv-header .section-title {
        font-size: 24px;
    }

    .sv-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Tabs → wrap into grid on mobile */
    .sv-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding-bottom: 8px;
    }

    .sv-tabs::-webkit-scrollbar {
        display: none;
    }

    .sv-tab {
        flex: 1 1 calc(50% - 4px);
        min-width: 140px;
        padding: 8px 12px;
        border-radius: 12px;
        gap: 8px;
        justify-content: center;
    }

    .sv-tab-num {
        display: none;
    }

    .sv-tab-arrow {
        display: none;
    }

    .sv-tab-text strong {
        font-size: 12px;
        white-space: normal;
        line-height: 1.2;
    }

    .sv-tab-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
        border-radius: 8px;
    }

    /* Panel */
    .sv-panel-item {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .sv-panel-item h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .sv-panel-item>p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .sv-list {
        margin-bottom: 24px;
        gap: 10px;
    }

    .sv-list li {
        font-size: 14px;
    }

    .sv-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 14px;
    }

    /* ─── PROCESS (ZIGZAG TIMELINE) ────────── */
    .zz-section {
        padding: 50px 0;
    }

    .zz-header {
        margin-bottom: 40px;
    }

    .zz-header h2 {
        font-size: 24px !important;
    }

    .zz-header p {
        font-size: 14px;
    }

    .zz-timeline {
        padding: 20px 0;
    }

    .zz-svg-track {
        left: 16px;
        transform: none;
        width: 30px;
    }

    .zz-row {
        flex-direction: column !important;
        align-items: flex-start;
        margin-bottom: 40px;
        padding-left: 46px;
    }

    .zz-col {
        width: 100%;
    }

    .zz-content-col {
        padding: 0 !important;
        text-align: left !important;
        transform: translateY(20px) !important;
    }

    .zz-visual-col {
        display: none;
    }

    .zz-node-col {
        left: 16px;
        transform: translateX(-50%);
        width: 28px;
        height: 28px;
    }

    .zz-dot {
        width: 24px;
        height: 24px;
        border-width: 3px;
    }

    .zz-row.active .zz-content-col {
        transform: translateY(0) !important;
    }

    .zz-step-num {
        font-size: 12px;
        padding: 4px 12px;
        margin-bottom: 10px;
    }

    .zz-content-col h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .zz-content-col p {
        font-size: 13px;
    }

    .zz-cta {
        flex-direction: column;
        gap: 16px;
        margin-top: 40px;
        align-items: center;
    }

    .zz-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
        font-size: 15px;
    }

    /* ─── PROJECTS GRID ────────────────────── */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-img {
        height: 180px;
    }

    .project-content {
        padding: 16px;
    }

    .project-content h3 {
        font-size: 16px;
        min-height: auto;
        margin-bottom: 12px;
    }

    /* ─── TESTIMONIALS → HORIZONTAL SCROLL ── */
    .testimonials.section {
        padding: 50px 0;
    }

    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 12px;
        scrollbar-width: none;
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        flex-shrink: 0;
        min-width: 100%;
        max-width: 100%;
        scroll-snap-align: start;
        padding: 24px 20px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .client-info img {
        width: 40px;
        height: 40px;
    }

    .client-details h4 {
        font-size: 14px;
    }

    .client-details p {
        font-size: 12px;
    }

    /* ─── NEWS GRID ────────────────────────── */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-img {
        height: 180px;
    }

    .news-content {
        padding: 16px 20px 20px;
    }

    .news-content h3 {
        font-size: 16px;
        margin: 10px 0;
    }

    /* ─── CTA SECTION ──────────────────────── */
    .cta-wrapper {
        grid-template-columns: 1fr !important;
        background: #ffffff !important;
        border-radius: 16px !important;
    }

    .cta-info-box {
        background: var(--primary-blue) !important;
        padding: 30px 20px !important;
        border-radius: 16px 16px 0 0 !important;
    }

    .cta-info-content {
        max-width: 100%;
    }

    .cta-info-box h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .cta-info-box p {
        font-size: 14px;
        margin-bottom: 24px !important;
    }

    .cta-contact-item {
        font-size: 13px;
    }

    .cta-contact-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .cta-person-img {
        display: none !important;
    }

    .cta-form-box {
        padding: 24px 20px !important;
        border-radius: 0 0 16px 16px !important;
    }

    .cta-form-box .form-row,
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cta-form-box .btn-submit {
        width: 100% !important;
        min-width: auto;
    }

    /* ─── UTILITY: NO HORIZONTAL SCROLL ───── */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    html {
        overflow-y: auto !important;
        /* Prevents WP Customizer double vertical scrollbar */
    }

    /* ─── BUTTONS: TOUCH TARGETS ──────────── */
    .btn {
        min-height: 44px;
        font-size: 14px;
    }

    /* ─── BLOG PAGE ───────────────────────── */
    .blog-hero {
        padding: 80px 0 40px;
    }

    .blog-hero h1 {
        font-size: 28px;
    }
}

/* ─── SMALL MOBILE (≤ 375px) ──────────────── */
@media (max-width: 375px) {
    .motion-cards {
        grid-template-columns: 1fr;
    }

    .mc-number {
        font-size: 28px;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .testimonial-card {
        min-width: 90vw;
        max-width: 90vw;
    }
}

/* ============================================
   MOBILE PERFORMANCE: TẮT HEAVY ANIMATIONS
   Giảm CPU/GPU usage, cải thiện FCP & LCP
   ============================================ */
@media (max-width: 768px) {

    /* ─── TẮT ANIMATION NẶNG TRÊN MOBILE ──── */

    /* Tắt gradient border animation (rotateBorder) — rất nặng */
    .motion-card::before {
        animation: none !important;
        background: linear-gradient(135deg, #6366f1, #a855f7) !important;
        opacity: 0 !important;
    }

    /* Tắt scan line animation */
    .motion-card::after {
        display: none !important;
    }

    /* Tắt hover 3D transform trên motion card */
    .motion-card:hover {
        transform: none !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, .08) !important;
    }

    .motion-card:hover .mc-icon {
        transform: none !important;
    }

    /* Đơn giản hóa feature card — tắt 3D perspective */
    .features-grid {
        perspective: none !important;
    }

    .feature-card {
        transform-style: flat !important;
        transition: box-shadow 0.2s ease !important;
    }

    .feature-card:hover {
        transform: none !important;
    }

    .feature-card:hover .feature-number,
    .feature-card:hover .feature-icon,
    .feature-card:hover h3 {
        transform: none !important;
    }

    /* Tắt icon animations (chartBounce, starSpin, invoiceWiggle) */
    .feature-card:hover .fa-chart-line,
    .feature-card:hover .fa-star,
    .feature-card:hover .fa-file-invoice {
        animation: none !important;
    }

    /* Tắt backdrop-filter (GPU intensive trên mobile) */
    .mobile-menu-backdrop {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Tắt cta-wrapper animation delay — show ngay */
    .cta-wrapper,
    .cta-info-content,
    .cta-person-img,
    .cta-form-box {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Tắt motion card entrance animation — show ngay */
    .motion-card {
        opacity: 1 !important;
        transform: none !important;
        transition: box-shadow 0.2s ease !important;
    }

    /* Tắt ZigZag timeline animation delay */
    .zz-content-col,
    .zz-visual-col {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Tắt sv-panel fade animation */
    .sv-panel-item {
        animation: none !important;
    }

    /* Tắt sv-list item animation */
    .sv-list li {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    /* ─── HERO: CẢI THIỆN BỐ CỤC ─────────── */
    .hero {
        padding: 20px 0 36px;
    }

    .hero-inner {
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 26px;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 15px;
        margin-bottom: 20px;
        color: #4B5563;
    }

    .hero-actions {
        gap: 10px;
        margin-bottom: 20px;
    }

    .hero-actions .btn {
        padding: 15px 20px;
        font-size: 15px;
        font-weight: 700;
        border-radius: 10px;
    }

    /* Ảnh hero: thu gọn hơn trên mobile nhỏ */
    .hero-image-wrapper {
        max-width: 100%;
    }

    .hero-image-box {
        padding: 10px;
        border-radius: 14px;
    }

    /* ─── MOTION STATS: TỐI ƯU CARD ─────── */
    .motion-stats {
        padding: 44px 0 52px;
    }

    .motion-header {
        margin-bottom: 28px;
    }

    .motion-header h2 {
        font-size: 22px !important;
        line-height: 1.3;
    }

    .motion-header p {
        font-size: 14px;
        max-width: 100%;
    }

    .motion-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .motion-card {
        padding: 20px 14px 18px;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    }

    .mc-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .mc-number {
        font-size: 30px;
        letter-spacing: -1px;
        margin-bottom: 6px;
    }

    .mc-label {
        font-size: 10px;
        letter-spacing: 0.8px;
    }

    /* ─── SERVICES: CẢI THIỆN TAB UI ────── */
    .sv-motion {
        padding: 44px 0;
    }

    .sv-header {
        margin-bottom: 24px;
    }

    .sv-header .section-title {
        font-size: 22px;
    }

    /* Tab scroll: hiển thị rõ ràng hơn */
    .sv-tabs {
        padding-bottom: 12px;
        gap: 8px;
    }

    .sv-tab {
        padding: 10px 14px;
        border-radius: 12px;
        min-width: max-content;
        border-width: 1.5px;
    }

    .sv-tab.active {
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15) !important;
    }

    /* Panel cải thiện */
    .sv-panel-item {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .sv-panel-item h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .sv-panel-item>p {
        font-size: 14px;
        margin-bottom: 16px;
        line-height: 1.6;
    }

    .sv-list {
        gap: 10px;
        margin-bottom: 20px;
    }

    .sv-list li {
        font-size: 14px;
    }

    .sv-btn {
        padding: 13px 20px;
        font-size: 14px;
        font-weight: 700;
    }

    /* ─── PROCESS TIMELINE: ĐƠN GIẢN HÓA ── */
    .zz-section {
        padding: 44px 0;
    }

    .zz-header {
        margin-bottom: 32px;
    }

    .zz-header h2 {
        font-size: 22px !important;
    }

    .zz-timeline {
        padding: 10px 0;
    }

    .zz-row {
        margin-bottom: 32px;
        padding-left: 44px;
    }

    .zz-content-col h3 {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .zz-content-col p {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Ẩn visual card (phức tạp, không cần trên mobile) */
    .zz-visual-col {
        display: none !important;
    }

    .zz-cta {
        margin-top: 32px;
        gap: 12px;
    }

    .zz-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }

    /* ─── TESTIMONIALS: SCROLL INDICATOR ─── */
    .testimonials.section {
        padding: 44px 0;
    }

    .testimonials-grid {
        padding-bottom: 16px;
    }

    .testimonial-card {
        min-width: 100%;
        max-width: 100%;
        padding: 20px 16px;
        border-radius: 16px;
    }

    /* Scroll dots indicator */
    .testimonials-scroll-hint {
        text-align: center;
        font-size: 12px;
        color: #94a3b8;
        margin-top: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    /* ─── CTA: BỐ CỤC MOBILE ───────────── */
    .cta-wrapper {
        grid-template-columns: 1fr !important;
        background: #ffffff !important;
        border-radius: 20px !important;
        overflow: hidden;
        box-shadow: 0 4px 24px rgba(0, 82, 255, 0.08);
    }

    .cta-info-box {
        background: linear-gradient(135deg, #0052FF, #0041cc) !important;
        padding: 28px 20px 24px !important;
        border-radius: 20px 20px 0 0 !important;
    }

    .cta-info-content {
        max-width: 100%;
    }

    .cta-info-box h2 {
        font-size: 22px;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .cta-info-box p {
        font-size: 14px;
        margin-bottom: 20px !important;
        opacity: 0.9;
    }

    .cta-contact-list {
        gap: 14px;
        margin-bottom: 0;
    }

    .cta-contact-item {
        font-size: 13px;
        gap: 12px;
    }

    .cta-contact-icon {
        width: 34px;
        height: 34px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .cta-person-img {
        display: none !important;
    }

    .cta-form-box {
        padding: 24px 20px 28px !important;
        border-radius: 0 0 20px 20px !important;
        background: #ffffff !important;
    }

    .cta-form-box .form-row,
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cta-form-box .form-control {
        font-size: 16px !important;
        /* Ngăn auto-zoom iOS */
    }

    .cta-form-box .btn-submit {
        width: 100% !important;
        min-width: auto;
        padding: 15px !important;
        font-size: 15px !important;
    }

    /* ─── FOOTER ─────────────────────────── */
    .site-footer {
        padding: 36px 0 calc(16px + env(safe-area-inset-bottom));
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding-top: 18px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 8px;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .newsletter-form button {
        padding: 12px 20px;
        border-radius: 8px;
    }

    /* ─── PROJECTS GRID ──────────────────── */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-img {
        height: 170px;
    }

    .project-content {
        padding: 14px 16px;
    }

    .project-content h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    /* ─── NEWS GRID ──────────────────────── */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-img {
        height: 170px;
    }

    .news-content {
        padding: 14px 16px 18px;
    }

    .news-content h3 {
        font-size: 15px;
        margin: 8px 0;
    }

    /* ─── SAFE AREA (iPhone notch/home bar) ─ */
    .site-header {
        padding-top: env(safe-area-inset-top);
    }

    body {
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* ─── TYPOGRAPHY IMPROVEMENTS ────────── */
    .section-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 28px;
        line-height: 1.6;
    }

    .section {
        padding: 44px 0;
    }

    /* ─── TOUCH TARGETS ──────────────────── */
    .btn,
    a.btn,
    button {
        min-height: 44px;
    }

    /* ─── CONTACT PAGE ───────────────────── */
    .contact-hero {
        padding: 70px 0 36px;
    }

    .hero-title {
        font-size: 26px !important;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 1.6;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .card-title {
        font-size: 18px;
    }

    .contact-form-custom input,
    .contact-form-custom textarea {
        font-size: 16px !important;
        /* Ngăn auto-zoom iOS */
    }

    .btn-submit-contact {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }

    /* ─── BLOG PAGE ──────────────────────── */
    .blog-hero {
        padding: 70px 0 36px;
    }

    .blog-hero h1 {
        font-size: 26px;
    }

    /* ─── UTILITY ────────────────────────── */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    html {
        overflow-y: auto !important;
    }
}

/* ─── SMALL MOBILE (≤ 390px) ──────────────── */
@media (max-width: 390px) {
    .motion-cards {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .mc-number {
        font-size: 26px;
    }

    .mc-label {
        font-size: 9px;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .section-title {
        font-size: 20px;
    }

    .testimonial-card {
        min-width: 88vw;
        max-width: 88vw;
    }
}

/* ─── VERY SMALL (≤ 360px) ──────────────── */
@media (max-width: 360px) {
    .motion-cards {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 20px;
    }

    .hero-actions .btn {
        font-size: 14px;
        padding: 13px 16px;
    }
}

/* ============================================
   MOBILE PERFORMANCE LEVEL 2: GPU & PAINT OPTIMIZATION
   Tắt thêm các animation/filter tốn tài nguyên GPU
   Chỉ tác động mobile — desktop không thay đổi
   ============================================ */
@media (max-width: 768px) {

    /* ─── TẮT BACKDROP-FILTER TOÀN BỘ ────── */
    /* backdrop-filter tạo GPU composite layer riêng — rất nặng trên mobile yếu */
    .lang-switcher-dropdown,
    .main-nav ul.sub-menu,
    .mobile-menu-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* ─── TẮT SPIN ANIMATION TRONG PROCESS ─ */
    /* v-circle spinning trong zigzag timeline tạo GPU repaint liên tục */
    .v-circle {
        animation: none !important;
    }

    /* ─── TẮT TICKER ANIMATION TRÊN MOBILE ─ */
    /* Ticker scroll tạo continuous paint — thay bằng scroll tĩnh */
    /* Giữ nguyên ticker nhưng giảm duration để nhẹ hơn */
    .ticker-track {
        animation-duration: 60s !important;
        /* Chậm hơn = ít repaint */
    }

    /* ─── GIẢM TRANSITION DURATION ─────── */
    /* Transition dài = browser paint nhiều frames hơn cần thiết */
    .main-nav ul.sub-menu,
    .lang-switcher-dropdown {
        transition: none !important;
        /* Desktop-only elements — ẩn trên mobile */
    }

    /* ─── TẮT FLOAT ANIMATION (hero badge) ─ */
    /* Float animation chạy vô hạn tốn GPU */
    .floating-badge {
        animation: none !important;
        display: none !important;
        /* Đã ẩn trên mobile */
    }

    /* ─── TẮT GRADIENT BORDER ANIMATION ─── */
    /* rotateBorder trong motion-card đã tắt ở section trên, đảm bảo 100% */
    @keyframes rotateBorder {

        0%,
        100% {
            background-position: 0% 50%;
        }
    }

    /* ─── TẮT PROCESS TIMELINE DRAWING ─── */
    /* SVG stroke-dashoffset animation khi scroll — nặng trên mobile */
    .zz-crack-path {
        transition: none !important;
        stroke-dashoffset: 0 !important;
    }

    /* ─── WILL-CHANGE CLEANUP ─────────── */
    /* Xóa will-change không cần thiết để giảm GPU memory */
    * {
        will-change: auto !important;
    }

    /* ─── REDUCE PAINT AREA ────────────── */
    /* Giảm overflow: hidden gây stacking context thừa */
    .motion-stats {
        overflow: visible;
    }

    /* ─── SIMPLIFY HERO IMAGE BOX ───── */
    /* box-shadow nặng gây repaint khi scroll */
    .hero-image-box {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
        /* Đơn giản hơn */
    }

    /* ─── CONTAIN CSS PROPERTY ────────── */
    /* Giúp browser skip render của sections below-the-fold */
    .motion-stats,
    .sv-motion,
    .zz-section,
    .testimonials,
    .ticker-section {
        contain: layout style;
    }
}