Nonlocal Pdes For Complex Particle Dynamics: Phase Transitions, Patterns And Synchronization