Ok dont be crazy because all the birds in the world put the leg up and head in the tommy thats how they sleep. Btw I find that really cute.
I've just not seen him stand on one leg before or tuck his head
Bring it to the vet .
My budgie is 12 weeks old, seems to be slowly trying his new foods (fresh vegetables) and drinking, but he's stood on perch last 2 days sometimes lifting one foot(he's never done before) and tucking his head back