Your professor shouldn't look at you like that. He definitely shouldn't have texted you after midnight. And you absolutely shouldn't have texted back.