BOERUM HILL, Brooklyn — A 23-year-old man suffered head trauma and two broken legs when he was struck by a train in a Brooklyn subway station, an NYPD detective said Wednesday.

The man was struck in the head by a Coney Island-bound Q train at the Atlantic Ave./Barclays subway station as he bent over to pick up his backpack on Tuesday afternoon around 1:20 p.m., police officials said. He was sent flying.

Police said the victim did not fall on the tracks. He was seriously injured in the incident regardless.

The man was taken to a Brooklyn hospital. He was still in critical condition on Wednesday.