Amazon tumbles as profit declines for first time in two years