/* ===================================================
   A-to-Z Complete Mobile & Multi-Device Responsive CSS
   Arty Technologies Website - Production Optimized
   =================================================== */

/* ---------- 0. GLOBAL DESKTOP BASE (applies above 992px) ---------- */
/* Mobile toggle is hidden by default on desktop */
.mobile-nav-toggle {
    display: none;
}

/* Mobile backdrop hidden by default */
.mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    display: none;
}

.mobile-backdrop.active {
    opacity: 1;
    pointer-events: auto;
    display: block;
}


/* ---------- 1. GLOBAL MOBILE TOUCH & FORM ZOOM FIX ---------- */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .section-padding {
        padding: 55px 0 !important;
    }

    .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    /* Section headings scale properly on mobile */
    .section-title {
        font-size: 1.9rem !important;
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        padding: 3px 10px;
    }

    /* Description text below headings */
    .text-gray.mx-auto {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Prevent iOS Safari input auto-zoom on focus */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
    }
}


/* ---------- 2. NAVBAR & MOBILE DRAWER (A-Z FIX) ---------- */
@media (max-width: 991px) {
    .navbar-wrapper {
        padding: 10px 0;
        /* The drawer lives inside the navbar, so its parent must also be above the page backdrop. */
        z-index: 99998;
    }

    .navbar {
        /* Keep the header content clear of the viewport edges on tablets. */
        padding: 0 20px;
    }

    .logo img {
        max-height: 35px;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        right: -110%;
        width: min(290px, calc(100vw - 32px));
        height: auto;
        min-height: 0;
        padding: 12px;
        background: rgba(15, 18, 27, 0.97);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 18px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 4px;
        transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
        z-index: 99998;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
        opacity: 0;
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 6px 12px;
        margin-bottom: 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-menu-brand {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #ffffff;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.01em;
    }

    .mobile-menu-brand-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary-color), #4facfe);
        box-shadow: 0 0 12px rgba(79, 172, 254, 0.75);
    }

    .mobile-menu-label {
        color: #71717a;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .nav-links.mobile-active {
        right: 16px;
        opacity: 1;
    }

    .nav-links a {
        font-size: 0.98rem;
        font-weight: 600;
        color: #f4f4f5;
        width: 100%;
        text-align: left;
        padding: 12px 14px;
        border: 1px solid transparent;
        border-radius: 10px;
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible {
        color: #ffffff;
        background: rgba(0, 112, 243, 0.14);
        border-color: rgba(79, 172, 254, 0.24);
    }


    /* Hamburger Button */
    .mobile-nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        align-self: center;
        flex-shrink: 0;
        width: 38px;
        height: 38px;
        gap: 5px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        outline: none;
        cursor: pointer;
        z-index: 99999;
        padding: 0;
        margin-left: 8px;
        transition: background 0.25s ease, border-color 0.25s ease;
    }

    .mobile-nav-toggle span {
        width: 20px;
        height: 2px;
        background-color: #ffffff;
        border-radius: 999px;
        transition: all 0.3s ease;
    }

    .mobile-nav-toggle:hover,
    .mobile-nav-toggle:focus-visible {
        background: rgba(0, 112, 243, 0.16);
        border-color: rgba(79, 172, 254, 0.55);
    }

    .mobile-nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background-color: var(--primary-color);
    }

    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background-color: var(--primary-color);
    }

    /* Mobile Overlay Backdrop */
    .mobile-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 99997;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }

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


/* ---------- 3. HERO SECTION MOBILE (A-Z FIX) ---------- */
@media (max-width: 768px) {
    .hero {
        padding-top: 90px;
        padding-bottom: 50px;
        min-height: 100svh;
    }

    .hero-content {
        width: 100%;
        padding: 0;
    }

    .hero-subtitle {
        font-size: 0.72rem;
        letter-spacing: 1.2px;
        margin-bottom: 10px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        line-height: 1.15;
        margin-bottom: 14px;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 30px;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 12px 18px;
        font-size: 0.9rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 22px;
        text-align: center;
    }

    .stat-item {
        padding: 0 4px;
    }

    .stat-item h3 {
        font-size: 1.5rem;
        margin-bottom: 3px;
    }

    .stat-item p {
        font-size: 0.6rem;
        letter-spacing: 0.3px;
        line-height: 1.3;
    }
}


/* ---------- 4. WHY CHOOSE US MOBILE (A-Z FIX) ---------- */
@media (max-width: 991px) {
    .wcu-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 576px) {
    .wcu-left h3 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 14px;
    }

    .wcu-left p {
        font-size: 0.92rem;
        margin-bottom: 22px;
    }

    .wcu-list {
        gap: 10px;
    }

    .wcu-list li {
        padding: 13px 16px;
        font-size: 0.88rem;
        border-radius: 12px;
    }

    .wcu-right {
        gap: 16px;
    }

    .wcu-card {
        padding: 20px 16px;
        gap: 16px;
        border-radius: 14px;
        align-items: flex-start;
        text-align: left;
    }

    .wcu-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        border-radius: 12px;
    }

    .wcu-card h4 {
        font-size: 1.05rem;
        margin-bottom: 4px;
    }

    .wcu-card p {
        font-size: 0.86rem;
    }
}


/* ---------- 5. SERVICES SECTION MOBILE (A-Z FIX) ---------- */
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 576px) {
    .service-card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .service-header {
        margin-bottom: 16px;
    }

    .service-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        border-radius: 12px;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-desc {
        font-size: 0.88rem;
        margin-bottom: 18px;
    }

    .service-chips-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .service-chip {
        font-size: 0.78rem;
        padding: 7px 10px;
        border-radius: 8px;
    }

    .service-btn {
        margin-top: 20px;
        padding: 12px;
        font-size: 0.88rem;
    }
}

@media (max-width: 380px) {
    .service-chips-grid {
        grid-template-columns: 1fr;
    }
}


/* ---------- 6. TESTIMONIALS MOBILE (A-Z FIX) ---------- */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .testimonial-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .testimonial-text {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    .client-avatar {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }

    .client-details h4 {
        font-size: 0.95rem;
    }

    .client-details p {
        font-size: 0.78rem;
    }
}


/* ---------- 7. FAQ MOBILE (A-Z FIX) ---------- */
@media (max-width: 576px) {
    .faq-container {
        gap: 12px;
        margin-top: 25px;
    }

    .faq-question {
        padding: 15px 16px;
        font-size: 0.92rem;
    }

    .faq-icon {
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 16px;
    }

    .faq-item.active .faq-answer {
        padding: 0 16px 15px 16px;
    }

    .faq-answer p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}


/* ---------- 8. CONTACT SECTION MOBILE (A-Z FIX) ---------- */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 576px) {
    .info-item {
        padding: 20px 16px;
        border-radius: 14px;
        gap: 14px;
    }

    .info-icon {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
        border-radius: 10px;
    }

    .info-content h4 {
        font-size: 1.05rem;
    }

    .info-content p {
        font-size: 0.88rem;
    }

    .contact-form {
        padding: 22px 16px;
        border-radius: 16px;
    }

    .contact-form form {
        gap: 14px;
    }

    .form-row {
        flex-direction: column;
        gap: 14px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 12px 14px;
        border-radius: 10px;
    }

    .btn-submit {
        padding: 13px;
        font-size: 0.95rem;
    }
}


/* ---------- 9. FOOTER & FLOATING BUTTONS MOBILE (A-Z FIX) ---------- */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 45px 0 25px;
    }

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

    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    .footer-col-about img {
        height: 38px;
    }

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

    /* Floating WhatsApp Button - Left Corner */
    .whatsapp-float {
        width: 46px;
        height: 46px;
        font-size: 1.35rem;
        bottom: 18px;
        left: 16px;
        box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
    }

    /* Back To Top Button - Right Corner */
    .back-to-top {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
        bottom: 18px;
        right: 16px;
        border-radius: 10px;
        box-shadow: 0 6px 18px rgba(0, 112, 243, 0.4);
    }
}


/* ---------- 10. SERVICE DETAIL MODAL MOBILE (A-Z FIX) ---------- */
@media (max-width: 576px) {
    .service-modal-card {
        width: 94%;
        padding: 22px 16px;
        border-radius: 18px;
        max-height: 88vh;
    }

    .modal-close-btn {
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .modal-title-box {
        gap: 12px;
        margin-bottom: 14px;
    }

    .modal-title-box h3 {
        font-size: 1.2rem;
    }

    .modal-description {
        font-size: 0.85rem;
        padding: 12px 14px;
        margin-bottom: 18px;
    }

    .modal-features-box h4 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .modal-features-box ul {
        gap: 8px;
        margin-bottom: 20px;
    }

    .modal-features-box li {
        font-size: 0.82rem;
        padding: 8px 12px;
    }

    .modal-actions #modal-inquire-btn {
        padding: 12px;
        font-size: 0.88rem;
    }
}
