The red giant phase won't hap[pen for another five billion years, so plenty of time to implement stellar uplifting to put that date off, move the Earth, build megastructures and Dyson swarms etc. We've only been a technological civilisation for an eye-blink, cosmically speaking.Then we move further out. When Sol goes Red Giant half a billion years from now and turns Earth into a orbiting charcoal briquet, the Galilean moons and Titan should be far enough away.