Discuss the theoretical framework of soil mechanics, focusing on fundamental concepts such as soil composition, behavior under stress, and the principles governing soil-water interaction, highlighting their significance in geotechnical engineering applications.