/* ================================================
   MOBILE UI IMPROVEMENTS
   ================================================ */

/* Improved touch targets for mobile (minimum 44x44px) */
@media (max-width: 768px) {
    
    /* ===== NAVIGATION IMPROVEMENTS ===== */
    .site-header {
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .logo-img {
        height: 45px;
    }

    .site-name {
        font-size: 1rem;
        line-height: 1.2;
    }

    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
    }

    .nav-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
        font-size: 1.1rem;
        padding: 12px 0;
    }

    /* ===== HERO SECTION IMPROVEMENTS ===== */
    .hero {
        min-height: 85vh;
        padding: 100px 20px 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-content {
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }

    .subtitle::after {
        width: 40px;
        margin: 8px auto 0;
    }

    .description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 16px 40px;
        font-size: 1rem;
        min-height: 48px;
        width: auto;
        max-width: 300px;
        display: inline-block;
    }

    /* ===== SECTION IMPROVEMENTS ===== */
    section {
        padding: var(--spacing-lg) 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .section-title::after {
        width: 60px;
        margin: 15px auto 0;
    }

    /* ===== CARD IMPROVEMENTS ===== */
    .industry-card,
    .product-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    .industry-card h3,
    .product-card h3 {
        font-size: 1.3rem;
        margin: 15px 0 10px;
    }

    .industry-card p,
    .product-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* ===== ICON IMPROVEMENTS ===== */
    .icon-container,
    .product-icon-container {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .industry-icon {
        width: 35px;
        height: 35px;
    }

    /* ===== GRID IMPROVEMENTS ===== */
    .industries-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* ===== CLIENT CAROUSEL IMPROVEMENTS ===== */
    .client-carousel {
        margin: 40px -20px;
        padding: 30px 20px;
    }

    .carousel-item {
        width: 120px;
        height: 80px;
    }

    /* ===== CONTACT SECTION IMPROVEMENTS ===== */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
        font-size: 1.5rem;
    }

    .contact-info h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .contact-info p {
        font-size: 0.95rem;
    }

    .contact-info a {
        word-break: break-word;
    }

    /* ===== FOOTER IMPROVEMENTS ===== */
    .site-footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        text-align: center;
    }

    .footer-section ul {
        font-size: 0.95rem;
        text-align: center;
        padding-left: 0;
        list-style: none;
    }

    .footer-section li {
        margin-bottom: 10px;
    }

    .social-icons {
        justify-content: center;
        gap: 15px;
    }

    .social-icons a {
        width: 30px;
        height: 30px;
    }

    .footer-bottom {
        padding: 15px 0;
        margin-top: 30px;
        text-align: center;
    }

    .copyright {
        font-size: 0.85rem;
        text-align: center;
    }

    /* ===== BACK TO TOP IMPROVEMENTS ===== */
    #back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        right: auto;
        font-size: 20px;
    }

    /* ===== WHATSAPP BUTTON IMPROVEMENTS ===== */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        left: auto;
    }

    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }

    /* ===== FORM IMPROVEMENTS ===== */
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .form-control {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    textarea.form-control {
        min-height: 120px;
    }

    .submit-btn,
    button[type="submit"] {
        padding: 16px;
        font-size: 1rem;
        min-height: 48px;
    }

    /* ===== PAGE HERO IMPROVEMENTS ===== */
    .page-hero {
        min-height: 40vh;
        padding: 100px 20px 40px;
    }

    .page-hero h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .page-hero p {
        font-size: 1.1rem;
    }

    /* ===== CONTAINER IMPROVEMENTS ===== */
    .container {
        padding: 0 20px;
    }

    /* ===== IMPROVED SPACING ===== */
    #industries,
    #products,
    #contact {
        padding: var(--spacing-lg) 0;
    }

    /* ===== PREVENT HORIZONTAL SCROLL ===== */
    body {
        overflow-x: hidden;
    }

    /* ===== BETTER TEXT READABILITY ===== */
    p {
        line-height: 1.7;
    }

    /* ===== IMPROVED BUTTON SPACING ===== */
    .cta-button,
    .error-btn {
        margin: 10px auto;
        display: block;
    }
}

/* ===== SMALL MOBILE (320px - 480px) ===== */
@media (max-width: 480px) {
    
    .hero h1 {
        font-size: 2rem;
        letter-spacing: 0;
    }

    .animated-logo {
        width: 100px;
    }

    .hero-logo {
        margin-bottom: 20px;
    }

    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .industry-card h3,
    .product-card h3 {
        font-size: 1.2rem;
    }

    .icon-container,
    .product-icon-container {
        width: 60px;
        height: 60px;
    }

    .industry-icon {
        width: 30px;
        height: 30px;
    }

    .contact-card {
        padding: 25px 15px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 14px 30px;
        font-size: 0.95rem;
    }

    .site-name {
        font-size: 0.85rem;
    }

    .logo-img {
        height: 40px;
    }
}

/* ===== TABLET IMPROVEMENTS (768px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    
    .hero h1 {
        font-size: 3.5rem;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .description {
        font-size: 1.15rem;
    }

    .industries-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== LANDSCAPE MOBILE IMPROVEMENTS ===== */
@media (max-width: 768px) and (orientation: landscape) {
    
    .hero {
        min-height: 100vh;
        padding: 80px 20px 30px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .animated-logo {
        width: 80px;
    }

    .hero-logo {
        margin-bottom: 15px;
    }

    .page-hero {
        min-height: 100vh;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (max-width: 768px) {
    
    /* Larger tap targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Better focus indicators */
    a:focus,
    button:focus,
    input:focus,
    textarea:focus {
        outline: 3px solid var(--secondary);
        outline-offset: 2px;
    }

    /* Prevent text size adjustment */
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    /* Better form field sizing */
    input,
    textarea,
    select {
        font-size: 16px; /* Prevents iOS zoom */
    }
}

/* ===== PERFORMANCE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    
    /* Disable animations on mobile if preferred */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* Optimize transforms for mobile */
    .industry-card,
    .product-card,
    .contact-card {
        will-change: auto;
        transform: none !important;
    }

    .industry-card:hover,
    .product-card:hover,
    .contact-card:hover {
        transform: none !important;
    }

    /* Disable 3D tilt on mobile */
    .industry-card:hover,
    .product-card:hover,
    .contact-card:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }
}
