/* Mobile Optimization CSS for WebVibe Studio Projects */

/* Mobile Responsive Styles - General */
@media (max-width: 768px) {
    /* Disable animations on mobile for better performance */
    .animate-bounce,
    .animate-pulse,
    .animate-float,
    .animate-spin-slow,
    .floating-element,
    .scroll-reveal,
    .progress-fill,
    .countdown {
        animation: none !important;
    }
    
    /* Disable hover effects on mobile */
    .card-hover:hover,
    .portfolio-card:hover,
    .service-card:hover,
    .contact-item:hover,
    .about-card:hover,
    .destination-card:hover,
    .category-tile:hover,
    .product-card:hover img,
    .floating-button:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Disable complex transitions on mobile */
    .portfolio-card,
    .service-card,
    .contact-item,
    .about-card,
    .card-hover {
        transition: opacity 0.3s ease !important;
    }
    
    /* Mobile navigation adjustments */
    .container,
    .max-w-7xl {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Mobile hero section adjustments */
    .hero-bg,
    .min-h-screen {
        min-height: 80vh !important;
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Mobile grid adjustments */
    .grid.md\\:grid-cols-2,
    .grid.md\\:grid-cols-2.lg\\:grid-cols-3,
    .grid.md\\:grid-cols-2.lg\\:grid-cols-4,
    .grid.grid-cols-1.lg\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .grid.grid-cols-2.md\\:grid-cols-3.lg\\:grid-cols-5 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* Mobile text sizes */
    .text-6xl,
    .text-5xl.md\\:text-7xl {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    .text-5xl {
        font-size: 2rem !important;
    }
    
    .text-4xl {
        font-size: 1.875rem !important;
    }
    
    .text-3xl {
        font-size: 1.5rem !important;
    }
    
    .text-2xl {
        font-size: 1.25rem !important;
    }
    
    .text-xl,
    .text-xl.md\\:text-2xl {
        font-size: 1.1rem !important;
    }
    
    /* Mobile spacing adjustments */
    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-12 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .mb-12,
    .mb-16 {
        margin-bottom: 2rem !important;
    }
    
    /* Mobile button adjustments */
    .px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .py-4 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    .py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    /* Mobile card adjustments */
    .p-8 {
        padding: 1.5rem !important;
    }
    
    .p-6 {
        padding: 1rem !important;
    }
    
    /* Mobile flex adjustments */
    .flex.flex-col.md\\:flex-row,
    .flex.flex-col.sm\\:flex-row {
        flex-direction: column !important;
    }
    
    .flex.items-start.space-x-6 {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .flex.items-center.justify-between {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }
    
    /* Mobile navigation spacing */
    .space-x-8 {
        gap: 0 !important;
    }
    
    .space-x-4 {
        gap: 0.5rem !important;
    }
    
    .space-x-3 {
        gap: 0.25rem !important;
    }
    
    .space-x-2 {
        gap: 0.25rem !important;
    }
    
    /* Mobile image adjustments */
    .w-16.h-16 {
        width: 3rem !important;
        height: 3rem !important;
    }
    
    .w-full.h-64 {
        height: 12rem !important;
    }
    
    .w-full.h-96 {
        height: 16rem !important;
    }
    
    /* Mobile glass effect adjustments */
    .glass,
    .glass-card,
    .sticky-nav {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Mobile parallax adjustments */
    .parallax {
        background-attachment: scroll !important;
    }
    
    /* Mobile split screen adjustments */
    .split-screen {
        flex-direction: column !important;
        min-height: auto !important;
    }
    
    /* Mobile animated elements */
    .absolute.top-20.left-20,
    .absolute.bottom-20.right-20 {
        display: none !important;
    }
    
    /* Mobile typewriter effect */
    .changeable-text::after {
        animation: none !important;
    }
    
    /* Mobile shimmer effects */
    .portfolio-image::before,
    .service-card::before {
        display: none !important;
    }
    
    /* Mobile complex background animations */
    .hero-overlay::before,
    .hero-decoration::before {
        animation: none !important;
    }
    
    /* Mobile rotation animations */
    .service-card:hover .service-icon {
        transform: none !important;
    }
    
    /* Mobile scale animations */
    .hero-cta:hover,
    .cta-button:hover,
    .form-submit:hover,
    .hover\\:-translate-y-2:hover,
    .hover\\:scale-105:hover {
        transform: none !important;
    }
    
    /* Mobile complex hover effects */
    .nav-links a::after {
        display: none !important;
    }
    
    /* Mobile floating contact pulse */
    .floating-contact:hover {
        animation: none !important;
    }
    
    /* WebVibe Studio specific mobile styles */
    /* Уменьшаем заголовок "Как мы работаем" */
    .roadmap-title {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
    }
    
    /* Уменьшаем CTA заголовки "Готовы обсудить корпоративный сайт?" */
    .pricing-title {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
    }
    
    /* Уменьшаем заголовки в описании услуг */
    .service-detail-title {
        font-size: 1.8rem !important;
    }
    
    .service-detail-subtitle {
        font-size: 1rem !important;
    }
    
    /* Уменьшаем заголовки в timeline */
    .timeline-title {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
    }
    
    .timeline-description {
        font-size: 0.9rem !important;
    }
    
    /* Уменьшаем заголовки h3 в описании услуг */
    .service-description-full h3,
    .service-stats h3 {
        font-size: 1.4rem !important;
        margin-bottom: 20px !important;
    }
    
    /* Уменьшаем заголовки в service-content-grid */
    .service-content-grid h3 {
        font-size: 1.4rem !important;
        margin-bottom: 20px !important;
    }
    
    /* Возвращаем правильный размер для главного заголовка */
    .hero-title {
        font-size: 3rem !important;
        line-height: 1.1 !important;
        letter-spacing: -1px !important;
    }
}

@media (max-width: 480px) {
    /* Further mobile optimizations */
    .text-6xl,
    .text-5xl.md\\:text-7xl {
        font-size: 2rem !important;
    }
    
    .text-5xl {
        font-size: 1.75rem !important;
    }
    
    .text-4xl {
        font-size: 1.5rem !important;
    }
    
    .text-3xl {
        font-size: 1.25rem !important;
    }
    
    .text-2xl {
        font-size: 1.25rem !important;
    }
    
    .text-xl,
    .text-xl.md\\:text-2xl {
        font-size: 1rem !important;
    }
    
    .py-20 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-16 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .py-12 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Disable all animations on very small screens */
    * {
        animation: none !important;
        transition: opacity 0.2s ease !important;
    }
    
    /* Mobile button text */
    .text-lg {
        font-size: 1rem !important;
    }
    
    /* Mobile card padding */
    .p-8 {
        padding: 1rem !important;
    }
    
    .p-6 {
        padding: 0.75rem !important;
    }
    
    /* Mobile hero height */
    .hero-bg,
    .min-h-screen {
        min-height: 70vh !important;
    }
    
    /* Mobile image sizes */
    .w-16.h-16 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    
    /* Mobile grid for very small screens */
    .grid.grid-cols-2.md\\:grid-cols-3.lg\\:grid-cols-5 {
        grid-template-columns: 1fr !important;
    }
    
    /* Mobile header adjustments */
    .py-4 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    /* Mobile container adjustments for project pages */
    .box {
        max-width: 90% !important;
        padding: 2rem !important;
        margin: 1rem !important;
    }
    
    /* Mobile text adjustments for project pages */
    h1 {
        font-size: 1.5rem !important;
    }
    
    /* Mobile spacing adjustments for project pages */
    .muted,
    .status {
        margin: 1rem 0 !important;
    }
    
    /* Mobile icon adjustments for project pages */
    .icon {
        font-size: 3rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* WebVibe Studio specific mobile styles for very small screens */
    /* Еще больше уменьшаем заголовок "Как мы работаем" */
    .roadmap-title {
        font-size: 1.5rem !important;
        margin-bottom: 25px !important;
    }
    
    /* Еще больше уменьшаем CTA заголовки */
    .pricing-title {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
    }
    
    /* Еще больше уменьшаем заголовки в описании услуг */
    .service-detail-title {
        font-size: 1.5rem !important;
    }
    
    .service-detail-subtitle {
        font-size: 0.9rem !important;
    }
    
    /* Еще больше уменьшаем заголовки в timeline */
    .timeline-title {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }
    
    .timeline-description {
        font-size: 0.85rem !important;
    }
    
    /* Еще больше уменьшаем заголовки h3 в описании услуг */
    .service-description-full h3,
    .service-stats h3 {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }
    
    /* Еще больше уменьшаем заголовки в service-content-grid */
    .service-content-grid h3 {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }
    
    /* Возвращаем правильный размер для главного заголовка на очень маленьких экранах */
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
        letter-spacing: -0.5px !important;
    }
}

/* Additional mobile performance optimizations */
@media (max-width: 480px) {
    .box {
        padding: 1.5rem !important;
        margin: 0.5rem !important;
    }
    
    h1 {
        font-size: 1.25rem !important;
    }
    
    .icon {
        font-size: 2.5rem !important;
    }
}

/* Reduced motion preference - always respect user preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto !important;
    }
}
