light-bulb moment

Etymology
From.

Noun

 * 1)  A moment of enlightenment, inspiration or sudden realization.