/*
===============================================
WORKFAST - Mobile Optimization
Version: 1.0
Date: 30/12/2024
===============================================
Mục tiêu: Fix khoảng trắng kéo dài, tối ưu spacing trên mobile
*/

/* ==========================
   GLOBAL MOBILE FIXES
   ========================== */

@media (max-width: 768px) {
    /* Giảm padding của tất cả sections */
    section {
        padding: 60px 0 !important;
    }
    
    /* Giảm padding của container */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Giảm margin bottom của section headers */
    .section-header {
        margin-bottom: 40px !important;
    }
    
    /* Giảm font size của titles */
    .section-title,
    h1.section-title,
    h2.section-title {
        font-size: 32px !important;
        margin-bottom: 12px !important;
    }
    
    .section-subtitle {
        font-size: 16px !important;
    }
    
    /* Giảm gap giữa các grid items */
    .services-grid,
    .values-grid,
    .strengths-content,
    .testimonials-grid,
    .industries-grid,
    .stats-grid,
    .process-steps {
        gap: 24px !important;
    }
}

/* ==========================
   HERO SECTION - MOBILE
   ========================== */

@media (max-width: 768px) {
    .hero {
        min-height: 500px !important;
        padding: 80px 0 60px !important;
    }
    
    .hero-title {
        font-size: 32px !important;
        margin-bottom: 16px !important;
        line-height: 1.3 !important;
    }
    
    .hero-subtitle {
        font-size: 16px !important;
        margin-bottom: 24px !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
        text-align: center !important;
    }
}

/* ==========================
   STATS SECTION - MOBILE
   ========================== */

@media (max-width: 768px) {
    .stats-section {
        padding: 50px 0 !important;
    }
    
    .stat-card {
        padding: 24px 16px !important;
    }
    
    .stat-icon {
        font-size: 36px !important;
        margin-bottom: 12px !important;
    }
    
    .stat-number {
        font-size: 36px !important;
        margin-bottom: 6px !important;
    }
    
    .stat-label {
        font-size: 14px !important;
    }
}

/* ==========================
   SERVICES SECTION - MOBILE
   ========================== */

@media (max-width: 768px) {
    .services-overview,
    .services-section {
        padding: 60px 0 !important;
    }
    
    .service-card {
        padding: 24px !important;
        margin-bottom: 0 !important;
    }
    
    .service-image {
        height: 160px !important;
        margin: -24px -24px 20px -24px !important;
    }
    
    .service-icon {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 16px !important;
    }
    
    .service-icon i {
        font-size: 28px !important;
    }
    
    .service-card h3 {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }
    
    .service-card p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
}

/* ==========================
   PROCESS SECTION - MOBILE
   ========================== */

@media (max-width: 768px) {
    .process-section {
        padding: 60px 0 !important;
    }
    
    .process-step {
        padding: 24px !important;
        margin-bottom: 0 !important;
    }
    
    .step-image {
        height: 140px !important;
        margin: -24px -24px 20px -24px !important;
    }
    
    .step-icon {
        font-size: 36px !important;
        margin-bottom: 12px !important;
    }
    
    .process-step h3 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    
    .process-step p {
        font-size: 14px !important;
    }
    
    /* Hide connector line on mobile */
    .process-steps::before {
        display: none !important;
    }
}

/* ==========================
   TESTIMONIALS - MOBILE
   ========================== */

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0 !important;
    }
    
    .testimonial-card {
        padding: 28px !important;
        margin-bottom: 0 !important;
    }
    
    .testimonial-card p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    
    .stars {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .quote-icon {
        font-size: 48px !important;
    }
}

/* ==========================
   WHY CHOOSE US - MOBILE
   ========================== */

@media (max-width: 768px) {
    .why-choose,
    .why-choose-about {
        padding: 60px 0 !important;
    }
    
    .feature-card {
        padding: 28px !important;
        margin-bottom: 0 !important;
    }
    
    .feature-image {
        height: 140px !important;
        margin: -28px -28px 20px -28px !important;
    }
    
    .feature-icon {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 16px !important;
    }
    
    .feature-icon i {
        font-size: 28px !important;
    }
    
    .feature-card h3 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    
    .feature-card p {
        font-size: 14px !important;
    }
}

/* ==========================
   INDUSTRIES - MOBILE
   ========================== */

@media (max-width: 768px) {
    .industries-section {
        padding: 60px 0 !important;
    }
    
    .industry-item {
        padding: 24px !important;
    }
    
    .industry-icon {
        font-size: 36px !important;
        margin-bottom: 12px !important;
    }
    
    .industry-item h3 {
        font-size: 16px !important;
    }
}

/* ==========================
   CTA SECTION - MOBILE
   ========================== */

@media (max-width: 768px) {
    .cta,
    .cta-section {
        padding: 60px 0 !important;
    }
    
    .cta-content h2,
    .cta h2 {
        font-size: 28px !important;
        margin-bottom: 16px !important;
    }
    
    .cta-content p,
    .cta p {
        font-size: 15px !important;
        margin-bottom: 24px !important;
    }
}

/* ==========================
   ABOUT PAGE - MOBILE
   ========================== */

@media (max-width: 768px) {
    /* About Content */
    .about-content {
        padding: 60px 0 !important;
    }
    
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    
    .about-text h2 {
        font-size: 28px !important;
        margin-bottom: 16px !important;
    }
    
    .about-text p {
        font-size: 15px !important;
        margin-bottom: 16px !important;
    }
    
    .mv-item {
        padding: 20px !important;
        margin-bottom: 16px !important;
    }
    
    /* Core Values */
    .core-values {
        padding: 60px 0 !important;
    }
    
    .value-card {
        padding: 28px !important;
    }
    
    .value-icon {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 16px !important;
    }
    
    .value-icon i {
        font-size: 28px !important;
    }
    
    .value-card h3 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    
    .value-card p {
        font-size: 14px !important;
    }
    
    /* Strengths */
    .strengths {
        padding: 60px 0 !important;
    }
    
    .strength-item {
        padding: 24px !important;
        margin-bottom: 20px !important;
    }
    
    .strength-number {
        font-size: 48px !important;
        margin-bottom: 12px !important;
    }
    
    .strength-text h3 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    
    .strength-text p {
        font-size: 14px !important;
    }
    
    /* Journey Section */
    .journey-section {
        padding: 60px 0 !important;
    }
    
    .journey-section > div > div {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    
    .journey-section img {
        height: 250px !important;
    }
    
    .timeline-item {
        margin-bottom: 24px !important;
        padding-left: 20px !important;
    }
    
    .timeline-item > div:first-child {
        font-size: 20px !important;
    }
    
    .timeline-item h3 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    .timeline-item p {
        font-size: 14px !important;
    }
}

/* ==========================
   CONTACT PAGE - MOBILE
   ========================== */

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0 !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    
    .contact-info-card {
        padding: 24px !important;
    }
    
    .contact-form {
        padding: 28px !important;
    }
    
    .form-group {
        margin-bottom: 16px !important;
    }
    
    .map-section {
        padding: 60px 0 !important;
    }
    
    .map-container {
        height: 300px !important;
    }
}

/* ==========================
   PAGE HEADER - MOBILE
   ========================== */

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 50px !important;
        min-height: auto !important;
    }
    
    .page-header h1 {
        font-size: 32px !important;
        margin-bottom: 12px !important;
    }
    
    .page-header p {
        font-size: 15px !important;
    }
}

/* ==========================
   GRID SYSTEMS - MOBILE
   ========================== */

@media (max-width: 768px) {
    /* Force single column on mobile */
    [style*="grid-template-columns: repeat"] {
        grid-template-columns: 1fr !important;
    }
    
    [style*="display: grid"] {
        gap: 24px !important;
    }
}

/* ==========================
   SPACING UTILITIES - MOBILE
   ========================== */

@media (max-width: 768px) {
    /* Reduce all vertical spacing */
    [style*="padding: 100px 0"],
    [style*="padding: 80px 0"] {
        padding: 60px 0 !important;
    }
    
    [style*="margin-bottom: 60px"] {
        margin-bottom: 40px !important;
    }
    
    [style*="margin-bottom: 40px"] {
        margin-bottom: 24px !important;
    }
    
    [style*="margin-bottom: 32px"] {
        margin-bottom: 20px !important;
    }
    
    [style*="margin-bottom: 24px"] {
        margin-bottom: 16px !important;
    }
    
    /* Reduce gap spacing */
    [style*="gap: 60px"] {
        gap: 32px !important;
    }
    
    [style*="gap: 40px"] {
        gap: 24px !important;
    }
    
    [style*="gap: 32px"] {
        gap: 20px !important;
    }
}

/* ==========================
   IMAGES - MOBILE
   ========================== */

@media (max-width: 768px) {
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Service/Feature images */
    .service-image img,
    .feature-image img,
    .step-image img {
        object-fit: cover !important;
    }
}

/* ==========================
   BUTTONS - MOBILE
   ========================== */

@media (max-width: 768px) {
    .btn {
        padding: 12px 28px !important;
        font-size: 15px !important;
    }
    
    .btn-primary {
        padding: 14px 32px !important;
        font-size: 16px !important;
    }
}

/* ==========================
   FLOATING BUTTONS - MOBILE
   ========================== */

@media (max-width: 768px) {
    .zalo-float,
    .phone-float {
        width: 55px !important;
        height: 55px !important;
        bottom: 20px !important;
    }
    
    .zalo-float {
        right: 20px !important;
    }
    
    .phone-float {
        bottom: 90px !important;
        right: 20px !important;
    }
    
    .zalo-float::before {
        font-size: 28px !important;
    }
    
    .phone-float i {
        font-size: 22px !important;
    }
    
    /* Hide tooltips on mobile */
    .zalo-tooltip,
    .phone-tooltip {
        display: none !important;
    }
}

/* ==========================
   SMALL MOBILE (< 480px)
   ========================== */

@media (max-width: 480px) {
    section {
        padding: 50px 0 !important;
    }
    
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .section-title {
        font-size: 28px !important;
    }
    
    .hero-title {
        font-size: 28px !important;
    }
    
    .stat-number {
        font-size: 32px !important;
    }
}

/* ==========================
   FIX SPECIFIC ISSUES
   ========================== */

@media (max-width: 768px) {
    /* Remove excessive margin/padding from specific elements */
    .reveal-fade-up,
    .reveal-fade-left,
    .reveal-fade-right,
    .reveal-zoom {
        margin-bottom: 0 !important;
    }
    
    /* Ensure cards don't have excessive spacing */
    .service-card,
    .feature-card,
    .value-card,
    .testimonial-card,
    .process-step {
        margin-bottom: 0 !important;
    }
    
    /* Fix grid gap issues */
    .services-grid,
    .values-grid,
    .features-grid {
        row-gap: 24px !important;
        column-gap: 24px !important;
    }
}
