I was talking with my mother, and she was telling me about people who believe in Mother Nature etc…

So I was then thinking, and thoughts passed by, like “Mother Nature is my creator and I came from nature etc…”

But I still acknowledge Allah (swt) and have faith in Him, but these thoughts passed by, and they weren’t just thoughts, it’s as if they came from the heart, so did I commit Kufr/Shirk?

If not, can you give me a definition so that I know what it is please?

No that is not shirk. Shirk is associating a partner with God and believing in that. Just having thoughts is okay.