Metasurfaces and their intelligent advances