Welcome to the forum, Siti jean.
You are asking about 'parts of speech', not 'forms of grammar'.
In your sentences, 'for' is a preposition, 'hard' and 'hardly' adverbs. A good dictionary, such as those here: OneLook: General dictionary sites, will give you this information.
Please begin your sentences with a capital letter and end with an appropriate punctuation mark.