Your opening was fine -- I do not think you got hammered in the fuseki at all. You did fall behind in the middle game fighting. My main suggestion would be to adopt a tougher attitude. Resolve not to let your opponent push you around; reject passive answers which slowly give ground to your opponent; try to find more severe sequences.

at P18 would be very large. W can live only through ko, and W needs to make the first ko threat. Did you read this out? If you are not confident starting the ko now, then waiting is fine. Depending on circumstances, capturing the S16 stone in sente might conceivably be better than starting the ko.
Switching to the invasion at R8 is an interesting idea. There is a middle game joseki here which you might want to study.

is not one of the joseki continuations, and W got a better result here than he deserved.
At

I would almost certainly block at P18 and start the ko. Now that B has captured a stone at Q12, losing the ko would be small, as it would not affect the safety of the B group. B has a nice ko threat at O9 atari. Simply getting two large moves in a row, say in the lower left corner, would be good compensation for losing the ko.
The exchange

-

helps W more than B. There is not much territory to be made around P14, and it is a shame to strengthen W like this. Imagine that B blocks at P18, then later gets to play H17. Now the W stones are quite weak, and the game exchange would be very bad. The thickness around P14 should be used to attack, not to make territory.

is an important move, which has a surprisingly large effect on the balance of power in the center. B could have played here in sente! B could even continue to press down after that, building quite a bit of center strength, making the W right side over-concentrated. Switching to a large point like

instead of this is possible, as long as B is aware of the consequences. However answering

at

is hopelessly passive. This means B allowed W to make a big gain in sente, which should be intolerable. Either B should take the atari himself in sente, or he should be prepared to ignore a W play there.

feels too close to W thickness. Given the aji at L3 and H3, B will not be able to keep all the lower territory. Now might be a good time to decide between C3 and D2, rather than leaving the play in that corner up to W. If B chooses the C3 invasion, W must choose whether to cut it off and fight (losing all the corner) or let it connect (losing part of the corner but retaining sente). After that decision, B will have a better idea where to continue on the lower side. Or B can play something like D2-C3-L4, attempting to make the lower side into territory.

seems ambitious, but I am not sure. If B does not kill W, the resulting B thickness may not be enough compensation for losing the lower side territory. Note again the importance of

. An alternative option for B would be to bump at K3 and attack, intending to build strength and invade at C3 or C7 in compensation. Or B could simply invade at C3 directly.

is risky for W. I think W should atari at G3 and get a good result. With the game sequence, B should get compensation for the W invasion. (Since the game is still continuing, I will not say more, but think about this carefully when forcing W to live.) However B should at least have considered playing

at G2 for a kill.
All in all, this was a pretty good game, considering the strength of your opponent. Even at the end, you are not hopelessly far behind. Just try a little harder not to let your opponent get more than he deserves, and play a little more aggressively in areas where you have a strength advantage.