Shirk comes from the Arabic word for sharing. It means treating something besides Allah as sharing what belongs to Him alone: worshipping idols, praying to the dead or to saints as if they answer prayer by themselves, believing that anything other than Allah truly controls benefit and harm, or giving to anyone the absolute love, obedience and trust that are due to Allah. Scholars also warn of a subtler form, showing off in worship to impress people.
Why is it so serious? Muslims answer with three points. It is untrue about the One who created you. It is ingratitude, since everything you have is from Him. And it binds people to things that cannot help them. The Prophet Muhammad ﷺ was asked which sin is greatest with Allah, and said: to set up a rival to Allah while He created you. In the Quran, Luqman tells his son not to ascribe partners to Allah, for that is a tremendous wrong.
On forgiveness, the Quran says that Allah does not forgive that partners be ascribed to Him, and forgives anything less than that to whom He wills. Scholars understand this to mean the person who dies in shirk without having repented. Whoever turns away from it before death, however long they lived in it, is forgiven, since Allah forgives all sins for the one who repents. Islam does not say that anyone is hopeless. It says: return to the One who made you.