In Adrian Tchaikovsky's "Children Of Time", there's a generation ship wandering space that's a marvel of human engineering, whose inhabitants are getting dumber every generation and losing the capacity to maintain or even respect the incredible environment into which they were born. Certainly rings a bell.
It's a major plot point in one of the books in the Bobiverse series, though it's a civilisation humanity meets instead of humanity itself (not saying anything more to avoid spoilers).