Nicodemus being surrounded by night is a texture used by John to clue us in on where Nicodemus' feet currently stand. Nicodemus is surrounded by night, but Jesus, who is the light stands before him. The conversation between the two captures the threshold we all find ourselves standing at between remaining where we're at and stepping into life in the Kingdom.