Examine the theoretical foundations of soil mechanics and geotechnical engineering, exploring concepts like effective stress, consolidation, and shear strength parameters. How do these principles govern the behavior of soils under different loading conditions and inform the design of foundations, retaining structures, and earthworks in civil engineering projects?