Quantum thermodynamics in the strong coupling regime