You did a hard reset and your work vanished. It’s not gone. Run git reflog.
Git logged every place HEAD has been. Find the state you want, copy the hash, and git reset --hard to that hash. Your work is back like nothing happened.
Reflog is your undo for the undo.
Want the full walkthrough with examples? I covered it here: Recovering lost commits with git reflog
Follow so you remember it!