You will still 100% go to a good college. You still can get a master’s or PhD. There are a lot of very good universities. You do not need to attend a “top 10” university to get a master’s degree or PhD. However, if you are near the top of your class you might still go to a very highly ranked university for your bachelor’s degree.
I got my master’s at a highly ranked university (#1 in the world for my major). There were other students there from a very, very wide range of other universities. I only remember one single university that had sent more than one student into the master’s program I was in, and it was NOT a top 50 university. As another example, someone I know very well attended a university for their bachelor’s that was not in the top 100 in the US (it was affordable and they could live at home to save money), but then did their master’s at an Ivy League university. These were both several decades ago. However, one daughter did their bachelor’s at a university that was just barely not in the “top 100” overall, but was in the “top 50” for her particular major. She just got accepted to do her doctorate at a university that is in the top 5 in the world for her major. She will start in September.
Universities understand that strong students come from a wide range of high schools. Graduate programs understand that strong students come from a wide range of undergraduate programs. Universities also understand that students mature at different rates and run into a range of different problems along the way. Overcoming these problems is part of growing.
I think that you really do not have much to worry about. Just keep doing well in your courses and you will have lots of opportunities in the future.