One of the following sentences contains and independent clause and a dependent clause , which makes it a complex sentence. Which is the complex sentence ?

A. After the rain ended, the sky became blue.
B. Jenny was the largest elephant in the circus.
C. I came home; I saw an envelope in the mailbox.
D. I hesitated a moment , but her smile gave me courage .