light bulb moment
US /laɪt bʌlb ˈmoʊ.mənt/
UK /laɪt bʌlb ˈmoʊ.mənt/

1.
a moment of sudden realization, inspiration, or understanding
:
•
After struggling with the math problem for hours, I had a sudden light bulb moment and knew how to solve it.
•
Her presentation was full of interesting facts, but it was her final conclusion that gave me a real light bulb moment.