While driving on the freeway I noticed my car wasnt going as I was pushing the gas and noticed all my dash lights were on like I was in accessory mode. I coasted to the edge of the freeway and decided to pop my hood and see if it was my battery cable that came loose. While waiting for traffic to break I noticed my hood looked alittle hazy like it was hot. When I was able to get out of my car I noticed black smoke coming from under the hood so I backed off and called 911.