/* Mobile Performance Optimizations */
/* Generated automatically - Do not edit manually */

/* Mobile-first responsive design */
@media (max-width: 768px) {
    /* Optimize font loading for mobile */
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Optimize animations on mobile for better performance */
    * {
        animation-duration: 1.4s !important;
        transition-duration:1.3s !important;
    }
    
    /* Keep fast animations only for specific performance-critical elements */
    .smart-card,
    .upload-area,
    .nav-link {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Specific animation timing for mobile - match desktop speed */
    .animated-text,
    .animated-subtitle {
        animation-duration: 0.8s !important;
    }
    
    /* Overlaying animations - make sense and match desktop speed */
    .float-element {
        animation-duration: 4s !important;
        animation-name: float-around !important;
    }
    
    .hero-badge {
        animation-duration: 4s !important;
        animation-name: float !important;
    }
    
    /* Upload area animations - make them meaningful and slower */
    .cloud-group {
        animation-duration: 4s !important;
        animation-name: cloudFloat !important;
    }
    
    .arrow-group {
        animation-duration: 3s !important;
        animation-name: arrowPulse !important;
    }
    
    .ai-pulse,
    .upload-pulse {
        animation-duration: 3s !important;
        animation-name: pulse !important;
    }
    
    .upload-ripple {
        animation-duration: 2s !important;
        animation-name: ripple !important;
    }
    
    /* Sparkle animations - make them twinkle very slowly and naturally */
    .sparkle,
    .sparkle-1,
    .sparkle-2,
    .sparkle-3,
    .sparkle-4 {
        animation-duration: 6s !important;
        animation-name: sparkle !important;
        animation-iteration-count: infinite !important;
        animation-timing-function: ease-in-out !important;
    }
    
    .ai-sparkles .sparkle {
        animation-duration: 8s !important;
        animation-name: sparkleRotate !important;
        animation-timing-function: linear !important;
    }
    
    .pulse-animation {
        animation-duration: 2s !important;
    }
    
    /* Hover effects - make them responsive but not too fast */
    .ai-upload-widget:hover .cloud-group {
        animation-duration: 2s !important;
    }
    
    .ai-upload-widget:hover .arrow-group {
        animation-duration: 1.5s !important;
    }
    
    .ai-upload-widget:hover .sparkle {
        animation-duration: 3s !important;
    }
    
    /* Make upload area feel more alive and meaningful */
    .ai-upload-widget {
        animation: subtleGlow 6s ease-in-out infinite !important;
    }
    
    @keyframes subtleGlow {
        0%, 100% { 
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
        }
        50% { 
            box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
        }
    }
    
    /* Disable hover effects on mobile */
    .smart-card:hover,
    .upload-area:hover,
    .nav-link:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Optimize touch targets */
    .toggle-btn,
    .cta-button-small,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
    }
    
    /* Optimize upload area for mobile */
    .upload-area {
        padding: 2rem 1rem;
        min-height: 200px;
    }
    
    /* Optimize hero section for mobile */
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    /* Optimize stats cards for mobile */
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .smart-card {
        padding: 1rem;
    }
    
    /* Optimize navbar for mobile */
    .navbar {
        height: 60px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-image {
        height: 35px;
    }
    
    /* Hide non-essential elements on mobile */
    .nav-links {
        display: none;
    }
    
    /* Optimize modal dialogs for mobile */
    .modal-content {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Optimize form elements for mobile */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
    
    /* Optimize buttons for mobile */
    button {
        font-size: 16px;
        padding: 12px 20px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .upload-card {
        margin: 0 0.5rem;
        padding: 1rem;
    }
    
    .upload-area {
        padding: 1.5rem 0.5rem;
        min-height: 150px;
    }
    
    .stats-cards {
        gap: 0.75rem;
    }
    
    .smart-card {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Performance optimizations */
/* * {
  
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
} */

/* Optimize images for mobile */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Optimize scrolling on mobile */
body {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}

/* Reduce repaints on mobile */
.fixed-element {
    will-change: transform;
}

/* Optimize text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

/* Disable text selection on UI elements */
button, .toggle-btn, .nav-link {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Optimize focus indicators for mobile */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}