You are on the right track. Those phone calls were scam/phishing calls to to retrieve your Apple ID and Password. The notification or the browser pop up that you got about trojan viruses was also a scam pop up. Be vigilant about these things. Nothing is going on except that you just faced scam/phishing attempts. This is happening a lot lately. Know that Apple will not call you informing you about your Apple ID account. Apple will not email you on this either. Any non-solicited scans and virus notices are also scam/phishing attempts.
Some more reading material for you below -
All about scams and phishing -
Beware of ➔ Phishing & Other Suspicious Emails
Know how to ➔ Identify legitimate emails from the App Store or iTunes Store
Avoid phishing emails, fake 'virus' alerts, phony support calls, and other scams ➔ Use these tips to avoid scams and learn what to do if you think your Apple ID has been compromised.
Axel F.