/* ===== MOBILE-SPECIFIC ENHANCEMENTS ===== */

/* Hide about-image section on mobile */
@media (max-width: 768px) {
    .about-image {
        display: none !important;
    }
}

/* Touch-friendly interactions */
@media (max-width: 768px) {
    /* Ensure all interactive elements are touch-friendly */
    .btn,
    .nav-link,
    .faq-question,
    .btn-learn-more,
    .modal-close,
    .nav-toggle {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
    
    /* Improve button spacing on mobile */
    .btn {
        padding: var(--space-md) var(--space-lg);
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Better mobile navigation */
    .nav-link {
        padding: var(--space-md);
        border-radius: var(--radius-md);
        text-align: center;
        width: 100%;
    }
    
    /* Mobile-optimized service cards */
    .service-card {
        margin-bottom: var(--space-lg);
        padding: var(--space-xl);
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: var(--space-md);
    }
    
    .service-card p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: var(--space-lg);
    }
    
    .service-features {
        margin-bottom: var(--space-xl);
    }
    
    .service-features li {
        padding: var(--space-sm) 0;
        font-size: 0.95rem;
    }
    
    /* Mobile FAQ improvements */
    .faq-item {
        margin-bottom: var(--space-md);
    }
    
    .faq-question {
        padding: var(--space-lg);
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(6, 182, 212, 0.1);
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
        line-height: 1.4;
        text-align: left;
    }
    
    .faq-answer {
        padding: 0 var(--space-lg) var(--space-lg);
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Mobile contact form */
    .contact-form {
        padding: var(--space-xl);
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: var(--space-md);
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: var(--radius-md);
        min-height: 48px;
    }
    
    .contact-form textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    /* Mobile package cards */
    .package-card {
        padding: var(--space-xl);
        margin-bottom: var(--space-lg);
    }
    
    .package-header h3 {
        font-size: 1.5rem;
    }
    
    .price {
        font-size: 2rem;
        margin-bottom: var(--space-lg);
    }
    
    /* Mobile testimonials */
    .testimonial-card {
        padding: var(--space-xl);
        margin-bottom: var(--space-lg);
    }
    
    .testimonial-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Mobile hero section */
    .hero-content {
        padding: var(--space-lg) 0;
    }
    
    .hero-title {
        margin-bottom: var(--space-lg);
        text-align: center;
    }
    
    .hero-subtitle {
        margin-bottom: var(--space-xl);
        text-align: center;
    }
    
    .hero-buttons {
        margin-bottom: var(--space-xl);
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Mobile stats */
    .stat {
        padding: var(--space-lg);
        text-align: center;
    }
    
    .stat h3 {
        font-size: 1.8rem;
        margin-bottom: var(--space-sm);
    }
    
    .stat p {
        font-size: 0.9rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    /* Reduce padding for very small screens */
    .service-card,
    .feature-box,
    .portfolio-item,
    .package-card,
    .testimonial-card,
    .contact-form {
        padding: var(--space-lg);
    }
    
    .faq-question {
        padding: var(--space-md);
    }
    
    .faq-answer {
        padding: 0 var(--space-md) var(--space-md);
    }
    
    /* Smaller text for very small screens */
    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    
    .section-header h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .service-card h3,
    .feature-box h3 {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .service-card,
    .feature-box,
    .portfolio-item,
    .package-card,
    .testimonial-card,
    .contact-form {
        padding: var(--space-md);
    }
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: var(--space-sm) var(--space-md);
    }
}

/* ===== MOBILE PERFORMANCE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    /* Reduce animations for better performance */
    .service-card::before,
    .package-card::before,
    .feature-box::before {
        display: none;
    }
    
    /* Simplify hover effects on mobile */
    .service-card:hover,
    .feature-box:hover,
    .portfolio-item:hover,
    .package-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    /* Remove complex gradients for better performance */
    .hero::before {
        background: rgba(6, 182, 212, 0.05);
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS FOR MOBILE ===== */
@media (max-width: 768px) {
    /* Focus indicators */
    .btn:focus,
    .nav-link:focus,
    .faq-question:focus {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }
    
    /* Better contrast for small screens */
    .faq-question {
        color: var(--text-primary);
    }
    
    .service-features li,
    .package-features li {
        color: var(--text-secondary);
    }
    
    /* Larger touch targets */
    .social-links a {
        width: 48px;
        height: 48px;
        margin: 0 var(--space-xs);
    }
}

/* ===== MOBILE TYPOGRAPHY ===== */
@media (max-width: 768px) {
    /* Improve readability on mobile */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: var(--space-md);
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
        margin-bottom: var(--space-md);
    }
    
    /* Better spacing for lists */
    .service-features li,
    .package-features li {
        padding: var(--space-sm) 0;
        line-height: 1.5;
    }
}

/* ===== MOBILE LAYOUT IMPROVEMENTS ===== */
@media (max-width: 768px) {
    /* Better section spacing */
    section {
        padding: var(--space-2xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-2xl);
        padding: 0 var(--space-md);
    }
    
    /* Improved grid layouts */
    .services-grid,
    .features-grid,
    .portfolio-grid,
    .packages-grid,
    .testimonials-grid {
        gap: var(--space-lg);
    }
    
    /* Better contact layout */
    .contact-info {
        margin-bottom: var(--space-xl);
    }
    
    .info-box {
        padding: var(--space-lg);
        text-align: center;
    }
    
    .info-box i {
        font-size: 2rem;
        margin-bottom: var(--space-md);
    }
    
    .info-box h3 {
        font-size: 1.1rem;
        margin-bottom: var(--space-sm);
    }
    
    .info-box p {
        font-size: 0.95rem;
    }
}

/* ===== MOBILE FORM ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .contact-form {
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-lg);
    }
    
    .contact-form input:focus,
    .contact-form textarea:focus {
        transform: scale(1.02);
        transition: all 0.2s ease;
    }
    
    /* Error states for mobile */
    .contact-form input.error,
    .contact-form textarea.error {
        border-color: var(--error);
        box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
    }
    
    .error-message {
        font-size: 0.85rem;
        margin-top: var(--space-xs);
        padding-left: var(--space-sm);
    }
}

/* ===== MOBILE LOADING STATES ===== */
@media (max-width: 768px) {
    .btn.loading {
        pointer-events: none;
        opacity: 0.7;
    }
    
    .btn.loading::after {
        content: '';
        width: 16px;
        height: 16px;
        border: 2px solid transparent;
        border-top: 2px solid currentColor;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-left: var(--space-sm);
    }
    
    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }
}