I was the same as you, basically a straight A pupil that people considered smart but I myself never thought I was. What you need to do is altogether remove the thought of 'how intelligent am I' I know it sounds like a rather stupid thing to say but trust me, if it makes you depressed then just consider it something not to worry about, as long as you're happy with what you achieve that is what matters.