@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 340px;
        height: 100vh;
        background: rgba(10, 10, 18, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.2rem;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border);
        overflow-y: auto;
    }
    .nav-links.active {
        right: 0;
    }
    .hamburger {
        display: flex;
    }
    .hero-stats {
        gap: 1.5rem;
    }
    section {
        padding: 4rem 1.2rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .farma-demo-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .services-grid,
    .pain-grid,
    .farma-services-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .before-after-visual {
        flex-direction: column;
    }
    .arrow-between {
        transform: rotate(90deg);
    }
}
