With our focus on building more complex high-end web apps and startups, we have had no shortage of work or shrinking margins, and have in fact experienced the exact opposite. We have been raising our rates, and have continued to experience strong growth and have had very happy clients.
Long story short, there is another path away from general web development with pretty good margins if you're willing to learn more and do more programming work instead of frontend theming/customization work.