Almost is an adverb of degree.
Almost means nearly, more or less.
- It’s almost midnight. (It’s nearly midnight. It’s not 24:00 yet, but it will be soon.)
- He almost bought everything in a glossary store what his wife asked him to buy. (He forgot to buy milk. That is why it’s almost.)