/* mobile-enhanced.css - Enhanced mobile optimizations */

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    /* Reduce animations for better performance */
    .floating-cards,
    .particles,
    .orb1, .orb2, .orb3 {
        animation-duration: 10s;
        will-change: transform;
    }
    
    /* Optimize font rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Better mobile header */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        transition: all 0.3s ease;
    }
    
    /* Hero mobile improvements */
    .hero {
        position: relative;
        display: flex;
        align-items: center;
        overflow: hidden;
        background: #000;
    }
    
    .hero-content {
        position: relative;
        z-index: 2;
        color: var(--white);
        text-align: center;
        width: 100%;
    }
    
    /* Better button styling for mobile */
    .btn-primary {
        background: linear-gradient(45deg, var(--accent) 0%, var(--accent-pink) 100%);
        color: var(--white);
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        display: inline-block;
        position: relative;
        overflow: hidden;
        box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
        border: none;
        cursor: pointer;
    }
    
    .btn-secondary {
        background: transparent;
        color: var(--white);
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        border: 2px solid var(--accent);
        transition: all 0.3s ease;
        display: inline-block;
        position: relative;
        overflow: hidden;
    }
    
    /* Enhanced touch interactions */
    .btn-primary:active,
    .btn-secondary:active,
    .cta-button:active {
        transform: scale(0.98);
    }
    
    /* Better mobile navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--white);
        font-size: 24px;
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        transition: background 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Improved mobile form styling */
@media (max-width: 576px) {
    .contact-form {
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 25px 20px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .form-group {
        position: relative;
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.1);
        color: var(--white);
        transition: all 0.3s ease;
        outline: none;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--accent);
        background: rgba(255, 255, 255, 0.12);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    }
    
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }
    
    /* Enhanced mobile cards */
    .principle-card,
    .service-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .principle-card:hover,
    .service-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
    
    /* Better mobile typography */
    .hero h1 {
        font-weight: 900;
        background: linear-gradient(45deg, var(--white) 30%, var(--accent) 70%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
        line-height: 1.1;
    }
    
    .hero .subtitle {
        color: rgba(255, 255, 255, 0.85);
        font-weight: 300;
        line-height: 1.4;
    }
    
    /* Mobile-specific tech carousel */
    .tech-carousel {
        overflow: hidden;
        position: relative;
    }
    
    .tech-track {
        display: flex;
        gap: 20px;
        animation: scrollMobile 25s linear infinite;
        width: fit-content;
    }
    
    @keyframes scrollMobile {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
    
    .tech-item {
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }
    
    .tech-item:hover {
        transform: scale(1.05);
        background: rgba(255, 255, 255, 0.15);
    }
}

/* Extra small mobile optimizations */
@media (max-width: 400px) {
    .hero-content {
        padding: 20px 0;
    }
    
    .hero h1 {
        line-height: 1.15;
        word-spacing: -2px;
    }
    
    .hero .subtitle {
        line-height: 1.3;
    }
    
    .section-title {
        line-height: 1.2;
        word-spacing: -1px;
    }
    
    .principle-card,
    .service-card {
        margin-bottom: 15px;
    }
    
    .principle-card h3,
    .service-card h3 {
        line-height: 1.3;
    }
    
    .principle-card p,
    .service-card p {
        line-height: 1.4;
    }
}

/* Touch and accessibility improvements */
@media (max-width: 768px) {
    /* Larger touch targets for better accessibility */
    .cta-button,
    .btn-primary,
    .btn-secondary,
    .submit-btn,
    .mobile-menu-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better focus states for keyboard navigation */
    .btn-primary:focus,
    .btn-secondary:focus,
    .cta-button:focus,
    .submit-btn:focus {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }
    
    /* Prevent text selection on UI elements */
    .btn-primary,
    .btn-secondary,
    .cta-button,
    .submit-btn,
    .mobile-menu-toggle {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Improve scrolling performance */
    .cases-scroll,
    .tech-carousel {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        .orb1, .orb2, .orb3,
        .floating-cards,
        .particles,
        .tech-track {
            animation: none;
        }
        
        .principle-card,
        .service-card {
            transition: none;
        }
    }
}

/* Dark mode support for mobile */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .principle-card,
    .service-card {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .contact-form {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.08);
    }
}

/* Print styles for mobile */
@media print {
    .hero-canvas,
    .floating-cards,
    .particles,
    .orb1, .orb2, .orb3 {
        display: none;
    }
    
    .hero {
        background: white;
        color: black;
    }
    
    .hero h1,
    .hero .subtitle {
        color: black;
    }
} 