A right step taken at a right time completely changes your identity. I won't say that your academic journey will be easy, but I am sure it will be worthy.
Explore as many different topics and opportunities as you can, talk to lots of different people (who are interested in the same things, and different things!), and don't be afraid to ask for help to find the resources and supports that will help you succeed in what you want to do. When you're choosing an advisor, make sure that they will be able to provide you with the support and mentorship that you want and need, and that you are on the same page about academic and work expectations.
Undergraduate research opportunities come highly recommended as they offer individuals a direct glimpse into the world of research and academia, allowing them to evaluate their own inclinations towards this field. Pursuing a PhD is not a path suited for everyone. A fourth-year project can serve as a litmus test to determine if this path aligns with one's aspirations. If it doesn't, one can easily leave without further commitment. However, if it resonates, exploring the possibility of joining a research group that fosters a strong connection becomes crucial. While enjoying the research itself is important, equally important is finding enjoyment in the people one works with, particularly their principal investigator.
Get involved in the community. Grad school is more than your research project; expand your contributions beyond your field of research and into the community where you are working.