A complex sentence uses a dependent clause to add extra detail. The two clauses are joined together with one of these linking words:
Because, although, after, when, before.
Poppy had been eating a big ice cream, before she sat on the beach.
Although it was too cold to stay in long, the boys were splashing in the sea.