What Actually Happens After Pressing the Android Power Button? Understanding Android Boot Flow

For a long time, I used Android devices every single day without thinking about what happened after pressing the power button.