An effective and smart corrosion inhibitor in acidic environment: Experimental & theoretical studies