/* Mobile Optimization CSS for INKOLEN.Pro */
/* Enhanced mobile experience and responsive design */

/* Base Mobile Styles */
@media screen and (max-width: 768px) {
    
    /* Prevent horizontal scrolling */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Improved touch targets */
    button, a, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    /* Better text readability on mobile */
    body {
        font-size: 16px;
        line-height: 1.6;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Container adjustments */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Header mobile optimization */
    header {
        position: sticky;
        top: 0;
        z-index: 1000;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }
    
    .logo {
        flex-shrink: 0;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    /* Hide desktop navigation on mobile */
    .nav-links {
        display: none;
    }
    
    /* Mobile menu button */
    .mobile-menu-btn {
        display: block;
        background: transparent;
        border: none;
        color: #00ff9d;
        font-size: 24px;
        padding: 10px;
        cursor: pointer;
        z-index: 1001;
    }
    
    /* Mobile navigation overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile navigation menu */
    .mobile-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100%;
        background: linear-gradient(135deg, #121826 0%, #1a2332 100%);
        z-index: 1000;
        padding: 20px;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .mobile-nav.active {
        right: 0;
    }
    
    .mobile-nav .close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        background: transparent;
        border: none;
        color: #00ff9d;
        font-size: 24px;
        padding: 10px;
        cursor: pointer;
    }
    
    .mobile-nav a {
        display: block;
        color: #fff;
        text-decoration: none;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 16px;
        transition: color 0.3s ease;
    }
    
    .mobile-nav a:hover {
        color: #00ff9d;
    }
    
    .mobile-nav a i {
        margin-right: 10px;
        width: 20px;
    }
    
    /* Hero section mobile */
    .hero {
        padding: 60px 0 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 30px;
    }
    
    /* CTA Button mobile optimization */
    .cta-button {
        display: inline-block;
        padding: 15px 30px;
        font-size: 16px;
        min-height: 50px;
        width: auto;
        max-width: 280px;
        text-align: center;
    }
    
    /* Services grid mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
        text-align: center;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .service-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    /* Pricing cards mobile */
    .pricing-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .pricing-title {
        font-size: 1.4rem;
    }
    
    .pricing-price {
        font-size: 2.5rem;
    }
    
    .pricing-features {
        font-size: 14px;
    }
    
    .pricing-features li {
        padding: 8px 0;
    }
    
    /* Tech icons mobile */
    .tech-icons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .tech-icon {
        width: 50px;
        height: 50px;
    }
    
    /* Contact section mobile */
    .contact-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    /* Telegram section mobile */
    .telegram-container {
        text-align: center;
        padding: 40px 20px;
    }
    
    .telegram-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .telegram-button {
        width: 100%;
        max-width: 280px;
        padding: 15px 20px;
        text-align: center;
    }
    
    /* Footer mobile */
    footer {
        text-align: center;
        padding: 30px 0;
    }
    
    .copyright {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Scroll to top button mobile */
    #scrollToTop {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    /* Policy pages mobile */
    .policy-page {
        padding: 20px 0;
    }
    
    .policy-header {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .policy-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .policy-content {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .policy-section {
        margin-bottom: 30px;
    }
    
    .policy-section h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .policy-section h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .policy-section ul {
        padding-left: 20px;
    }
    
    .policy-section li {
        margin-bottom: 8px;
    }
    
    /* Form elements mobile */
    input, textarea, select {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        border-radius: 8px;
        border: 1px solid #ddd;
        box-sizing: border-box;
    }
    
    /* Improved touch interactions */
    .service-card,
    .pricing-card,
    .contact-item {
        transition: transform 0.2s ease;
    }
    
    .service-card:active,
    .pricing-card:active,
    .contact-item:active {
        transform: scale(0.98);
    }
    
    /* Loading states for better UX */
    .loading {
        opacity: 0.7;
        pointer-events: none;
    }
    
    /* Accessibility improvements */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    
    /* Focus states for keyboard navigation */
    button:focus,
    a:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 2px solid #00ff9d;
        outline-offset: 2px;
    }
}

/* Tablet specific adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .pricing-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pricing-card {
        flex: 0 1 300px;
        margin: 10px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .pricing-price {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* Landscape orientation adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 0 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .mobile-nav {
        width: 250px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-icon,
    .tech-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .mobile-nav {
        background: linear-gradient(135deg, #0a0f1a 0%, #121826 100%);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .mobile-nav,
    .mobile-overlay,
    .mobile-menu-btn,
    #scrollToTop {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}