>I’m starting to think math is a huge myriad of different fields and topics.
Correct you are!
>I’ve tried to look on the internet for the way how math is formed and its philosophy but so far all I got was maybe very complicated math laws and topics, and logic stuff.
There are two very different meanings behind the phrase *how math is formed*.
The first one is learning the basic tools and disciplines, such as arithmetic, basics of Euclidean geometry, basics of combinatorics, trigonometry, etc. Then you progress towards being more rigorous in exploring the concepts you're already pretty familiar with (calculus and linear algebra are rather good polygons for doing that). This is how you gain what is commonly referred to as "mathematical maturity".
Now that you have gained sizable experience you can start looking at the second meaning of *how math is formed*, i.e., can we set up some kind of a simple^(\*) framework within which we will be able to build up everything we are already familiar with. This is where the study of fields like formal mathematical logic and set theory fit in.
(^(\*)) "simple" in this context means "with a small number of assumed objects and a small number of assumed statements about those objects".
>I thought math is used for science and calculations
It is used for that too, but there is so much more than mere calculation.
>now I have absolutely no idea what to even study to truly understand math
I hope that the few paragraphs I wrote above are helpful in some way.
>maybe I will get really lost when i study even more complicated math in university and beyond.
As long as you don't let yourself get scared off, you won't.
Also, what kind of mathematics will you encounter at the university level highly depends on what kind of studies you end up choosing to do.
If you end up studying law, you will get exposed to very little (if any) advanced mathematics.
If you decide to study economics or some branch of engineering you will learn a lot about the fields which are immediately applicable to your future profession (in most cases, this will be some form of advanced calculus topics, plus probability and statistics).
If you end up being a physicist (especially theoretical physicist), you will often have to go beyond just calculus and into fields like topology, differential geometry, and group theory, but you will most likely not have to bother with the foundational theories like set theory.
And, of course, if you end up studying mathematics, you will be exposed to a wide variety of mathematical topics from abstract to applied, and from foundational to high-level.
(Of course, the above list is not supposed to be an exhaustive list of all the possible things one could decide to study. It's just a list of a few examples to illustrate how vastly different your experience with university-level mathematics can be, depending on what you choose to study.)