Homophobic and gay

I know I like girls but I think I’m also homophobic and that’s why I hate myself so much. And I don’t know how to overcome this.