From agricultural byproducts to sustainable functional biomaterials