Density functional theory study on a nitrogen-rich carbon nitride material C3N5 as photocatalyst for CO2 reduction to C1 and C2 products.