Assalamualaikum Wa Rahmatullahi Wa Barakatuh,
May Allah bless us and have mercy on all of us. I am a 14 years old boy. Please try to help me out and answer my question if you can. I have a problem. The problem is, almost exactly one year ago, I had sex online a few times on a facebook chat with a girl. (Like we typed the actions and stuff) While we were having the "online sex", I think I masturbated too. I was 13 years old and I don't think I knew what zina was or that the sex before marriage was haram. But I knew that masturbation was haram. I have also committed online zina on a online virtual world game when I was 12 or something. Alhamdulillah I'm much more religious now and I stopped masturbating three months ago and don't even want to commit zina. Alhamdulillah I do not get physically sexual with any girl and I don't have "online sex" anymore. Recently, I have been thinking of the sin I have committed in my past and I regret it a lot. Please tell me what to do. I had "online sex" without knowing that it was haram so is it counted as a sin? I have another question which In Shaa Allah I will ask later. What do I do?
Thank you for taking the time to read and answer my question.