A few things come to mind.
One is that it is very hard for anyone to know. Just what happened to you is something we don’t know. Ivy League and equivalent admissions is also not something that is possible to fully understand. If people were able to predict whether they could get into Stanford or Harvard, then there wouldn’t be 19 students who apply and get turned down for every one who gets admitted.
However, another thing that comes to mind is that there are a very large number of very good universities in the US, and more elsewhere. If you have strong test scores, strong GPA for most semesters, a very good explanation for one or maybe two bad semesters, and if whatever caused your issues is over and will not repeat (which seems likely if it were for example caused by your parent’s divorce), then there are very good universities that will take a chance on you. Whether this would be an Ivy League university seems relatively unlikely. However, you can get a chance to do well at a very good university.
If you are majoring in Computer Science or some form of engineering then you don’t need to attend an Ivy League or equivalent university. If you are majoring in many other fields, then graduate school might be likely anyway. If you do very well at a good university, then you have a realistic chance of going pretty much anywhere that you want to go for graduate school, if graduate school is even a possibility (for example, based on major, finances, undergraduate GPA, and other factors).
As such I am quite confident that you will have opportunities in the future. However, I don’t think that I could guess much more without having a lot more information.