You had no risk. HIV transmission can only occur inside the body. The only way you would have a risk is if you had unprotected anal or vaginal sex with this person or if you shared drug needles. Since that clearly did not happen, then you had no risk.
This type of question reflects very irrational paranoia which would benefit from seeing a counselor. I recommend you call around and find a therapist who can help you overcome your irrational health anxiety.