Add mounted state to prevent rendering during SSR. Component now only renders after client-side mount.