You're the only person who can decide what "virginity" means to you, but most people consider full penetration to be loss of virginity.
You had zero risk for HIV. Sexually, HIV is only transmitted when an unprotected penis is INSIDE a vagina or anus.