What is the word called which is sad about ending but also happy for good things happened in the way

I felt that feeling in avengers endgame movie, I was sad about retiring Avengers but satisfied about good things happened in the way


Solution 1:

I think "bittersweet" fits. Merriam-Webster: "pleasure accompanied by suffering or regret" https://www.merriam-webster.com/dictionary/bittersweet