Creating a rotating 3D cube illusion with hover effect