What does it mean when a guy hugs you?

May be overthinking this.

But my coworker, who I think is cute and have a decent sized crush on, just randomly asked me for a hug today? This wasn’t at work or anything.
We always (kinda) flirt and tease each other, but we both never really touched each other. Until recently he’s begun to touch my shoulder. One of our mutual friends has begun to ask (when crush is around) if I have a crush on him (something that’s never happened before, and I’ve always remained professional).
And today, I was dropping him off and as we were walking and joking and teasing, he randomly stops when we are all alone and holds out his arms for a hug. So we hug and part ways.
This has never happened before? We’ve always been friendly but recently it’s been a little odd? Is this just friendliness? Maybe he might be sad about something? Am I right when I say I’m overthinking?
What does it mean when a guy hugs you?
Post Opinion