Nice sharp game! Perhaps white was being a little too ambitious with d4 and e5, because the opening up of the center actually opens the diagonal, and allowed ...Ne4. That trap (with 10 Qxd4?) is known as noah's ark trap, and it's one of the big reasons that d4 is prepared via c3 because the d4 pawn can't be recaptured. You should analyze this with a computer, because in this sharp position who knows what was supposed to happen.
I'm not sure how/if white can take advantage of black's move order. It does commit black to a fianchetto on the queenside early which isn't always good (but there are alot of closed variations with it) but on the other hand it can provoke people to play as white did and open the center to black's favor. If I was playing against it I would probably transpose, but do you know what theory suggests?
The Ruy Lopez (also know as Spanish Game) is one of the most widely-used openings in chess. It is also one of the most complicated. To try to tackle the job of analyzing this opening, I have chosen to begin with a very specific variation rather than expanding on the position after 3. Bb5. This is because I hope to not just analyze Ruy Lopez, but because also plan on demonstrating the effects of such things as the impact of move orders, pawn structures, and positional awareness. It should be noted, of course, that I can't analyze every variation of the Ruy Lopez; that would take too much time and I doubt I am qualified to do so. I want to provide enough analysis for beginner to be comfortable playing it.
The variation I will begin with is the Trajkovic Counterattack. The point of this analysis will be to demonstrate the impact of the early fianchetto and an explanation of preferential move orders.