I was on my pc casually playing some games until, however the pc turned itself off.I unplugged all the cables connected to the pc and plugged it back in and switched the pc on and it booted up normally I heard something short circuit followed by smoke coming out from the system followed by the smoke smell after this I instantly turned the entire pc off and unplugged all wires connected to the pc itself. I tried with the help of someone to turn it on again and diagnose the issue, however this time no luck the second time I attempted to turn the pc on and this time i saw the motherboard spark followed by the same smoke smell.We think it could be the power supply causing the motherboard to short circuity need help with the further diagnosis of the pc.