Fundamentals of CO2-Hydrocarbon Interactions for CO2 storage with EOR/EGR in offshore reservoirs: modeling, numerical methods and upscaling