Don't write yourself off before you even try - that's the trap. Your GPA isn't some permanent ceiling, and admissions people actually do look at the whole picture. The fact that you're pulling As and Bs now tells a real story: you hit a rough patch, you worked through it, and you came back stronger. That matters way more than you think, especially if you write about what happened in your application or let your counselor mention it.
State schools absolutely worth applying to. Most of them won't reject you outright over a 2.9, particularly if your recent grades are solid and your test scores are decent. Yeah, you might not get into the most selective state school in your region, but there are usually several options within the same state system. Community college isn't a failure path either - it's actually smart if it gives you a fresh start with a GPA boost before transferring - but you don't need to treat it like your only choice right now.
Focus on schools that match where you actually land academically and put real effort into your essays and recommendations. Those matter huge when GPA isn't stellar. Talk to your counselor about which schools in your state have decent acceptance rates for students with profiles like yours, and apply to a real mix - some reaches, some solid matches, some safety schools where you're clearly above average. The fact that you're thinking about this as a junior means you still have time to show even more growth, so don't panic 🍂