as many of you have heard before "if you put a frog in a pot of water "and slowly raise the temperature, they would not feel the change but will still become physically harmed and die. is it logical to use this with reptiles as well? of course!
Chameleons will thermoregulate themselves if they have to, I 110% agree with all of Hoj's first post. they are
intelligently designed creatures made for nature and not cages.
So maybe it is the fact that your basking perch is a little to close to the bulb, along with the factor that your bulb may be too hot.
Chameleons will do what they do when basking, they turn different colors on each side, one side will be significantly lighter than the other, meaning the lighter skin repels the heat, as the darker skin absorbs the heat, and i would guess the flatening of the body has to do with regulating the body's temperature.
Chameleons also show one major sign along with many reptiles to let their owner know its too hot in their enclosure. they'll gape their mouths open. they can also show signs of disfunction or a delusional look in their eyes if temps are too too hot.
but for the most part, chameleons arent dumb, and in my opinion. no animal is dumb. think about how much shit an ant can do that we cant. lol, i think we're the dumb ones sometimes
[EDIT] and if a chameleon looks like it is dumb, remember that chams (in my opinion and experience) are of the most personal herps you can get. they are full of personally, and can come off like they are pathetic retarded pets, but im sure they think the same when watching us at times lol