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.
The boys were splashing in the sea, although it was too cold to stay in long