Of course, the fundamentals have been horrible because the economy has been in a bad way for several years (certainly, after March 2020, but it wasn't great before then) but the stock market has been divorced from the actual economy longer than that.
Here's some pretty charts:
Wilshire 5000 / GDP Ratio https://www.longtermtrends.net/market-cap-to-gdp-the-buffett...
Dow / GDP Ratio https://www.macrotrends.net/2574/dow-to-gdp-ratio-chart (Yeah, the Dow is a horrible index, but check out that period from 1966 to 1982. The 1970s were not a happy time, either economically or financially.
The architects of boom/bust cycles are...you. I hope you picked up on the lessons from 2000 and 2008 and saved some of that six-figure average software developer pay.