Relativistic stellar modeling with perfect fluid core and anisotropic envelope fluid