I'm not sure if this is really the best place to ask this, but I thought it was fine.
Where did the idea of Gender fluidity first develop? How has the idea changed through history? How did different cultures view it?
While you wait for responses, here's an interesting read from u/Kelpie-Cat on the idea of two-spirit, and gender roles in Native American cultures.