Did you notice that in the examples above, the goal or purpose comes first? The purpose should always come first in Japanese. You can’t put the goal or purpose second like you can in English!
Purpose
ために
Main Situation
❌ ドレスを買いました、パーティのために。
Doresu o kaimashita, pātī no tame ni.
lit. I bought a dress for the party.

