/* Mobile Optimizations for HealthDock */

/* Better mobile breakpoints */
@media (max-width: 768px) {
    /* Improved mobile navigation */
    .nav-container {
        position: relative;
        padding: 10px 0;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        padding: 10px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 20px;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .cta-group {
        display: none;
    }

    /* Mobile hero section */
    .hero {
        padding: 40px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .sub-headline {
        font-size: 1rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-image {
        max-width: 100%;
    }

    .placeholder-img {
        height: 250px;
        max-width: 100%;
    }

    /* Trust badges mobile */
    .trust-badges-row {
        flex-direction: column;
        gap: 10px;
    }

    .badge {
        font-size: 0.85rem;
        padding: 8px 15px;
        width: 100%;
        justify-content: center;
    }

    /* Problem cards mobile */
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .problem-card {
        padding: 20px;
    }

    /* Tabs mobile */
    .ecosystem-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .tab-buttons {
        display: flex;
        gap: 10px;
        padding: 0 10px;
        min-width: max-content;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        min-width: 120px;
        padding: 10px 15px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .tab-content-container {
        padding: 30px 20px;
    }

    .tab-pane {
        flex-direction: column;
    }

    .tab-text, .tab-image {
        width: 100%;
        max-width: 100%;
    }

    /* Why now section mobile */
    .why-now-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Startup section mobile */
    .startup-container {
        flex-direction: column;
        padding: 30px 20px;
    }

    .cert-img {
        max-width: 100%;
    }

    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* CTA section mobile */
    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    /* General mobile improvements */
    .container {
        padding: 0 15px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }

    .placeholder-img {
        height: 200px;
    }

    .tab-btn {
        min-width: 100px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .problem-card {
        padding: 15px;
    }

    .catalyst-card {
        padding: 20px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* Touch-friendly improvements */
@media (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 14px 28px;
    }

    .nav-links a {
        padding: 12px 8px;
        display: block;
    }

    .tab-btn {
        min-height: 44px;
    }

    /* Better spacing for touch */
    .feature-list li {
        padding: 10px 0;
    }

    .dropdown-menu li a {
        padding: 15px 20px;
    }
}

/* Image optimizations for mobile */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }

    /* Use smaller images on mobile */
    .placeholder-img {
        background-size: cover;
        background-position: center;
    }
}

/* Performance optimizations */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Horizontal scrolling fix */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    * {
        max-width: 100vw;
    }
}