Upgrading my PC Since 2017

i Want to upgrade my PC (CPU and GPU Specifically), since i have this PC from 2017 :)

OLD PC:

MB: ASRock Z370 Extreme4

CPU: intel i7 8700

Cooler: Noctua nh-d15 (can buy mounting kits for new sockets)

CASE: Fractal Design Meshify C

PSU: GIGABYTE B700H 700W

GPU: Quadro RTX 5000 - before this gpu, i had gtx 1070 but sold it to a friend

i use my PC like 50/50 for work and gaming. pls i want recommendations on cpus and gpus (preferably AMD on both).

my budget is extremely tight, 400$ for cpu and MB. also, another 400$ for GPU. plus, it all depends on the pricings in my country

and i'm using 1080p monitor