Hard masks are employed to overcome the limitations of traditional photoresists, such as susceptibility to plasma etching and reduced resolution at smaller scales. They offer several advantages: - Enhanced etch resistance: Hard masks can withstand aggressive etching processes that would degrade photoresists. - Dimensional stability: They maintain their shape and dimensions, ensuring accurate pattern transfer. - High resolution: Hard masks enable the creation of finer features, which is critical for nanoscale devices.