I went through a period of depression when I was a teenager. I think that most thinking kids go through some sort of thing like this.

It took a while to get out of that funk, but I assure you that I was at least as intelligent when I got over it, probably more so.

Once you get over the things that are troubling you, you have more resources to devote to focusing on the problems that life presents.

Hope this helps