Rotation in bones causes rotation in mesh

I was moving bones and when i moved the head, it moved the whole mesh and i can’t find really anything online similar to my situation (at least i think so)

Blend file:

Go into edit mode and switch the direction of your head.