山穷水尽 - mountains exhausted, waters ended - and 柳暗花明 - willows dark, flowers bright - are the two halves of a Lu You couplet about thinking there is no road left and then finding a village. Learn them as a pair; that is how they are used.