How can I improve my problem-solving skills in programming? what finally did “click” for you?

what was the one thing you learned that made programming finally “click” for you? I’m struggling right now and looking for ideas to improve and become a better programmer.

I’ve been trying different resources like online courses, documentation, and tutorials. I expected to feel more comfortable and confident when coding, but I still feel stuck and struggle to apply what I learn in real projects.