My question involves a traffic ticket from the state of: CA

When I was making a right turn from a freeway exit and the city of Eastvale, a CHP pulled me over. He told me that he was driving on the freeway and heard people honking, so he decided to come over and take a look. He said that I was stopping out of the limit line and gave me a ticket.

I honestly didn't know that he would give me a ticket until he went back to the van and it took him a long time to come back. I was not very sure that if the cars passing by were honking on me. I don't know if and why I stopped outside of the line. I explained that I might be stopping because the light was turning red. I don't feel it is very fair to give me a ticket. I could have gotten away with a ticket by really "running" the red light. I am not sure if the fact that it was raining can help me explain why the car didn't brake before the limit line? I am going to fight for this ticket for sure. Do you guys have any suggestions on fighting this?

PS. This is my first ticket.