In the name of God, the Most Merciful, the Most Kind.
Answer:
Firstly:
I understand you well, and this is a devil’s whispers and Homosexuality is a big crime inherited from the people of LUT. Because of the enormity of this sin, a severe punishment struck them.
I think it is a test from God Almighty, and I suggest you ask forgiveness from God because He Says:
”And God does not burden a soul with more than it can bear.”
My advice for you is to ask God Almighty to forgive you because God Says:
”O you who believe! Turn to God with sincere repentance!” [Quran, 66:8]
”And beg God to forgive you all, O believers, that you may be successful.” [Surah An-Noor, 31]
”Truly, God loves those who turn unto Him in repentance and loves those who purify themselves.” [Quran, 2:222]
Also, try your best to do more good deeds because God Almighty Says:
”Except those who repent and do righteous deeds, and openly declare (the truth which they concealed). These, I will accept their repentance. And I am the One Who accepts repentance, the Most Merciful.” Quran, [2:160]
And my final advice for you is, try your best to ignore this feeling that you have and pray a lot. Recite the following verses:
1) The Throne Verse( Ayat al Kursi)
2) The Cow( Al Bakara)
And think of God always, fear Him a lot, remember the story when God Almighty saw the people of Sodomy they were committing the worst sins ever and God punished them, keep saying to yourself: “I am much better than those who lived in the city called Sodomy”, be more occupied on your studdings and on how to do more good deeds and be more occupied with Islam and think of how to make God be happy with you.
I hope that this is a good answer. If there’s anything wrong in here, please let me know.
And God knows best.