Foundations of Economics: Principles, Models, and Market Dynamics