Are guys turned off by smart girls?

So I’m female and and AP student and class valedictorian. I’ve noticed that while I get zero attention from the guys in my classes, I get far more attention from guys outside of class that are only interested in me based off physical attraction and don’t know about my academic situation. So, do guys not like it when a girl is intelligent/ambitious?
Are guys turned off by smart girls?
Post Opinion