We uncover a novel physical mechanism that enables a switch between attractive and repulsive Casimir forces when a Teflon surface interacts with a new form of quantum material (i.e., gapped metal) surface across different liquid media. We demonstrate the discovery of a zero-frequency Casimir effect, which, for the first time, reveals the potential for quantum switching within nanometer distances-a scale previously thought to be unattainable. Hence, our results introduce a new method to induce phase (stoichiometry)-controlled attraction-repulsion transitions and achieving quantum levitation in a liquid medium by tuning the liquid environment. This study thus not only advances our understanding of quantum forces at the nanoscale via their correlation to dielectric properties of involved materials but also opens up exciting possibilities for their manipulation in novel ways, forming the basis towards innovative advancements in nanoscale technology.