Well, for the first large scale truly mondern war, I would nominate the end of the American Civil War. It basically transitions from classic Napoleonic warfare to static trench systems, tunnelling, and massive artillery barrages that are seen in WWI. The only thing you didn't have were machine guns everywhere.