Unveiling Charge-Density Wave, Superconductivity, and Their Competitive Nature in Two-Dimensional NbSe2.