Keep heading out there! So much of it is mental. I'm willing to bet if you head out again, prepared for the chellenging trail but really motivated to ride it, you'll ride a ton better. I can ride a trail one day and have an awful ride where I'm riding all skittish and scared, then the next day get my head together and just plow through everything. I find it good to start off slow, warm up the legs, get into the mental zone of focusing about 10 feet ahead and then just flowing with the bike. It's important to not look at the root you want to avoid. Trust me, the more you look at the scary stuff, the harder it is to go over or avoid. I still catch myself occasionally looking at the things I want to avoid (especially on new trails) and it always leads to a rough ride.

Look ahead, pick a good line, and keep looking ahead. Your bike can definitely handle everything, you just need to build confidence in it.

For the uphills, try to pick a line around the roots if possible. Also, if you see an uphill coming, get some speed going into it, shift and try to maintain it. I find it helps sometimes to get out of the saddle and just mash the pedals over the roots on a quick, steep, rooty climb.

For the downhills, I recently found that thinking to get my weight back isn't enough, I need to remind myself to bend the elbows and get my torso down. Previously, I would just push my butt back and go down, and feel like I would go over. Now, I think butt back, elbows bent and my torso low and it's much more stable on the downhills. Give it a try! It definitely helped me a lot!

Good luck!