1 Introduction

Azo dyes, characterized by one or more azo (–N = N–) groups in their structure, are the most widely used synthetic dyestuffs [1]. These synthetic dyes are used in the textile, paper, leather, plastic, and cosmetic industries [2]. The extensive utilization of azo dyes implies the generation of large quantities of dye-containing wastewaters which can adversely impact the environment [1]. Aromatic azo dyes like methyl red (MR) are bio-recalcitrant pollutants that cannot be easily degraded and remain in the environment for long periods [1]. MR is also mutagenic, eye, skin, and digestive tract irritant and poses a severe threat to life [3].

Wastewater treatment processes must involve highly efficient and cost-effective methods [3]. Biological treatment, photocatalysis, reverse osmosis, precipitation, electrocoagulation, and ion exchange are conventional wastewater treatment methods [4]. However, these methods have some major disadvantages such as the production of toxic by-products, as well as the complexity and high cost [5]. On the other hand, adsorption, another conventional wastewater treatment method, presents an eco-friendly process of wastewater decontamination without generating any toxic by-products [6]. Moreover, the adsorption method is easy to operate and requires low capital and operational cost. However, adsorption technology has drawbacks including the high cost of adsorbents and the time-consuming regeneration procedure [7].

Recent studies have focused on the feasibility of using low-cost precursors such as agro-waste due to the cost of disposing spent adsorbents [8,9,10,11]. Such precursors must have high purity, rich in carbon and volatiles, and be widely available [12]. Meanwhile, plastics like high-density polyethylene (HDPE) are made from fossil sources [13]. HDPE contains a high amount of carbon (85%) and volatile matter (99%), making them an excellent precursor for producing carbon adsorbents [14]. Moreover, plastics like HDPE are widely available as cosmetic containers and drinking bottles with short one-time usage, thus forming a major constituent of municipal and domestic solid waste and currently are a severe environmental menace due to their resistance to natural degradation [15].

Global egg production is estimated to be approximately 77 million tons per year, resulting in over a million tons of eggshell biomass generated as waste [16]. Eggshell contains a high biomineral content (94% calcium carbonate), 4% organic substances, 1% calcium phosphate, and 1% magnesium carbonate [17, 18]. Biomaterials like eggshells are highly porous with high surface area and surface functional groups [17, 19]. Studies have shown that eggshells can remove heavy metals and organic pollutants from aqueous solutions [20,21,22,23]. However, the reusability of eggshells can be enhanced by compositing them with other materials [24, 25]. Furthermore, converting eggshells into nanoparticles and modifying adsorbents with eggshell nanoparticles can also enhance the surface area, porosity, and functional groups of absorbents [17, 26]. Hence, modifying adsorbents with eggshells can improve the adsorbents’ capacity and affinity for adsorbates. Moreover, it can offer a low-cost and green technique for enhancing adsorbents’ properties.

Meanwhile, the ability and ease of reusing adsorbents are vital to the economics of their application [27]. Magnetization of adsorbents offers a simple method for recovering spent adsorbents from solutions using an external magnet [7]. Magnetization reduces the time and energy required to recover adsorbents through filtration and centrifugation [28]. Moreover, the magnetization of adsorbents with nano-magnetic metal oxide compounds like magnetite nanoparticles (nano-Fe3O4) can enhance the diffusion of organic pollutants towards the adsorbent surface [7, 29].

This work presents the conversion of plastic waste (HDPE) and chicken eggshell to a novel, low-cost carbon nano-eggshell-based adsorbent for MR removal from simulated wastewater. Additionally, the nano-eggshell graphene composite was functionalized with magnetite nanoparticles and an in-depth study was performed to ascertain the adsorption behaviors and adsorbents’ reusability. A detailed analysis of the adsorption conditions, mechanism, kinetics, isotherms, thermodynamics, and reusability was conducted. An assessment of the quality of the prepared adsorbents compared with other adsorbents produced for MR adsorption was evaluated. Finally, the performance of the prepared adsorbents in different water matrices was assessed.

2 Materials and experimental methods

2.1 Materials and reagents

HDPE waste from cosmetic products and drinking bottles were gathered from domestic and municipal solid waste. Chicken eggshells were collected from a local restaurant. Pure grade MR (Fig. S1) and ferrous chloride tetrahydrate (reagent salts 99%, FeCl2.4H2O) were procured from Agros Organics in Belgium. Ferric chloride hexahydrate (extra pure 97%, FeCl3.6H2O) was purchased from LOBA Chemie in India. N,N-Dimethylformamide (DMF) (ACS reagent 99.8%, C3H7NO) and hydrochloric acid (ACS reagent 37%, HCl) were purchased from Merck KGaA in Germany. Ethanol (70%, C2H5OH) was obtained from Brand Chemicals in Egypt. Sodium chloride (85% NaCl) was procured from Alpha Chemika in India. Sodium hydroxide pellet (98%, NaOH) was purchased from Piochem in Egypt. Demineralized water was purchased from Hach in the USA.

2.2 Preparation of adsorbents

Waste HDPE plastics were shredded, washed with distilled water, and dried. A 420-mL stainless steel autoclave was loaded with the dried plastics, firmly sealed, and subsequently the autoclave was transferred to a muffle furnace (ASH AMF 25 N, Japan). The furnace temperature was adjusted to 600 °C at 27 °C/min heating rate. The temperature was maintained for 2 h and left to cool overnight. The char product (MG) was weighed to calculate the product yield using Eq. 1.

$$\text{Yield } = \frac{\text{weight of MG}}{\text{Dry weight of HDPE precursor}} \times 100\%$$
(1)

The eggshell nanoparticles were prepared at 1 g eggshell/100 mL DMF via a mechanical-sonochemical method described in our previous study [26]. The nano-eggshell impregnated MG composite (nEMG) was prepared using the high-temperature impregnation method [30]. One gram of MG was added to the nano-eggshell suspension and the mixture was stirred at 70 °C for 2 h. Both the white color of eggshell nanoparticles and the black color of carbon were seen at the start of stirring. The black and white colors vanished during the mixing process, leaving only one gray color. This was seen as evidence of interaction between the MG and eggshell nanoparticles. The final mixture was filtered, and the residue was oven-dried at 110 °C overnight to produce nEMG.

1.4 g FeCl3.6H2O and 0.5 g FeCl2.4H2O were dissolved in 100 mL of demineralized water under stirring to produce at a solution of 50 mM FeCl3.6H2O and 25 mM FeCl2.4H2O. One gram of nEMG was added to the resultant solution. Drops of 1 M NaOH were added to the mixture until the formation of a black precipitate in a co-precipitation process as illustrated in Eq. 2 [31]. The resultant precipitate was vacuum filtered and thoroughly washed with demineralized water and ethanol. The prepared cake was dried at 110 °C for 2 h and the dried cake (nM-EMG) was crushed. All prepared adsorbents were kept in a Pyrex desiccator immediately after preparation.

$${\mathrm{Fe}}^{2+}+2{\mathrm{Fe}}^{3+}+8{\mathrm{OH}}^{-}={\mathrm{Fe}}_{3}{\mathrm{O}}_{4}+ 4{\mathrm{H}}_{2}\mathrm{O}$$
(2)

2.3 Characterization of prepared adsorbents

Surface morphological studies of the prepared adsorbents were performed using a scanning electron microscope (SEM) (JEOL, JSM-6010LV, Japan). High-resolution micrographs of the morphology and elemental content of the produced adsorbents were obtained using a transmission electron microscope (TEM) equipped with energy dispersion X-ray spectroscopy (EDX) (JEOL, JEM-2100F, Japan). Bruker D2 Phaser was used to generate X-ray diffraction (XRD) crystallographic information of the prepared adsorbents. The surface functional groups of the adsorbents were determined by Fourier transform infrared spectroscopy (FTIR) (Shimadzu FTIR-8400S Spectrometer, Japan). The N2 adsorption–desorption isotherm, BET surface area, and pore distribution of the prepared adsorbents were investigated with Microtrac MRB Belsorp Mini X, Japan.

2.4 Point of zero charge

Fifty milliliters of mixtures containing 0.1 M NaCl and 0.2 g of MG, nEMG, and nM-EMG was prepared for point of zero charge (pHpzc) determination using the pH drift method. 0.1 M NaOH and 0.1 M HCl were used to adjust the pH of the mixtures to the values of 2, 4, 6, 8, and 10. The mixtures were stirred at room temperature for 24 h to achieve equilibration. The final pH was measured and plotted against the initial pH to estimate the pHpzc. All pH measurements were done with Adwa AD8000 bench meter.

2.5 Adsorption experiments

Stock solutions of 500 mg/L MR dye were prepared by dissolving 0.5 g of solid MR dye in 100 mL of ethanol and then topped up with 900 mL of distilled water. Desired concentrations of 100 mL MR solution were prepared by diluting the MR stock solution with an appropriate volume of deionized water. MR adsorption parameters such as pH (2–10), contact time (0–120 min), initial dye concentration (10–200 mg/L), adsorbent dose (1–20 mg/mL), and temperature (25–60 °C) were examined at an agitation speed of 500 rpm. The pH of the MR solution was adjusted with 0.1 M HCl and 0.1 M NaOH solutions. The temperature of the MR solution was adjusted using a magnetic stirrer/hot plate (WiseStir digital hotplate stirrer). After adsorption, the supernatant was centrifuged at 6000 rpm for 10 min and the concentration of MR was evaluated using UV–vis spectrophotometer (Jasco V-630 spectrophotometer, Japan) at 497 nm [32]. All experiments were conducted in triplicate and the average values with their corresponding standard deviations were plotted. The formulas for the amount and percentage of MR adsorbed onto the prepared adsorbents and the details of the adsorption isotherms, kinetics, and thermodynamics models are explained in Text S1.

2.6 Regeneration of spent SG, AG, and NFMAG

After each successive MR adsorption cycle, the adsorbents were separated from the solution and rinsed with demineralized water. MG and nEMG were recovered from solution by filtration and centrifugation at 6000 rpm for 10 min, while nM-EMG was recovered using an external magnet. The loaded adsorbents were eluted with 60 mL of ethanol at 30 °C. The dispersions were stirred at 500 rpm for 2 h for MR desorption. Finally, the adsorbents were separated, washed with demineralized water, and dried at 110 °C for 1 h for reuse.

3 Results and discussion

3.1 Characteristics of prepared adsorbents

3.1.1 Morphological structure of prepared adsorbents

SEM micrograph of MG shows amorphous structures with irregular shapes and sizes (Fig. 1a). The large void in MG depicts a highly porous carbon material. The different sized morphologies of MG suggest a gradual depletion of material, most likely due to activation affecting both the surface and the inside of the material [33]. Meanwhile, the SEM image of nEMG shows a rugged surface due to the uniform interaction between the eggshell nanoparticles and MG (Fig. 1b). nM-EMG exhibits a rougher surface due to the coating of iron oxides on the precursor nEMG matrix (Fig. 1c). TEM micrograph of MG reveals shadows of agglomerated rippled graphene sheets entangled with each other (Fig. 1d). Dark portions suggest graphite deposits (Fig. 1d). TEM micrograph of nEMG shows eggshell nanoplatelets with sizes between 10 and 90 nm uniformly dispersed on the graphene matrix (Fig. 1e), confirming the successful preparation of nEMG. TEM image of nM-EMG reveals sphere-like iron oxide nanoparticles with diameters ranging from 7 to 40 nm (Fig. 1f). Hence, nEMG was an excellent support material for magnetization since the iron oxides retained the nanometric sizes [34]. Uniformly dispersed dark portions in Fig. 1f are graphene and eggshell deposits from the precursor nEMG.

Fig. 1
figure 1

SEM micrographs of a MG, b nEMG, and c nM-EMG and TEM micrographs of d MG, e nEMG, and f nM-EMG

3.1.2 Texture of prepared adsorbents

The N2 adsorption and desorption isotherm curves of MG and nEMG (Fig. 2a) show increasing N2 sorption at high relative pressures, typical of type-III isotherm according to IUPAC classification [35]. The type-III isotherm depicts a mesoporous texture of MG and nEMG [35, 36]. Regarding nM-EMG, the N2 sorption isotherm represents a type-II isotherm (Fig. 2a) which typically has unrestricted monolayer-multilayer adsorption up to high relative pressure (p/p0) and a mesoporous structure [35, 36]. The BET surface area of MG (15 m2/g) increased after modification with nano-eggshell to form nEMG (31 m2/g) (Table 1). Nanometric eggshell platelets are highly porous materials with relatively high specific surface area than micro-sized eggshell powder; hence, the eggshell nanoparticles enhanced the total surface area of nEMG [17, 26]. As presented in Table 1, the specific surface area (179 m2/g) and pore volume of nM-EMG increased due to magnetite nanoparticles’ relatively high inherent surface area [37]. The pore distributions of MG and nEMG show broadly distributed pores between 2 to 60 nm and 2 to 100 nm respectively (Fig. 2b). Meanwhile, the pore diameter of nM-EMG is distributed below 20 nm due to the nano-Fe3O4 coating (Fig. 2b). The mean pore diameters of MG, nEMG, and nM-EMG are 27, 29, and 5 nm respectively.

Fig. 2
figure 2

a N2 adsorption–desorption isotherms and b pore volume distribution of prepared adsorbents

Table 1 Textural analysis of prepared adsorbents

3.1.3 Elemental analysis of MG, nEMG, and nM-EMG

EDX spectroscopy was used to explain the various modifications in the prepared adsorbents by determining the differences in their elemental compositions. MG is a high purity carbon material with strong peaks of carbon and oxygen (Fig. 3a). After modification of MG with nano-eggshell, calcium peaks appeared with carbon and oxygen in nEMG spectra (Fig. 3b). This indicates that the eggshell bio-CaCO3 nanoplatelets were successfully loaded on the matrix of MG to form nEMG. Meanwhile, EDX spectra of nM-EMG show iron peaks with a relatively high amount of oxygen (Fig. 3c) due to iron oxide coating.

Fig. 3
figure 3

EDX spectra of a MG, b nEMG, and c nM-EMG

3.1.4 Crystallographic analysis of MG, nEMG, and nM-EMG

The XRD spectra of all prepared adsorbents are shown in Fig. 4. The graphitization of MG is observed by the peaks at 2θ° of 24.25° and 43.77° corresponding to the (002) and (101) planes of graphene respectively (JCPDS card no. 87–1526). The (101) graphitic plane depicts a stacking order of graphene sheets [33]. The graphene peaks of MG are broad with an interlinear spacing of 3.67 Å (higher than the 3.44–3.55 Å of regular crystalline graphene) indicating an amorphous graphitic structure [38]. Such amorphous graphene formation is ascribed to the termination of sp2 bonds of carbon atoms or intercalation of the hexagonal planar units by oxygen which disrupts any order in the graphitic plane [38]. In nEMG, the peaks at 2θ° of 23.2°, 29.16°, 36°, 39.6°, 43°, 47.5°, 48.51°, 57.4°, 60.77°, and 64.93° correspond to the (012), (104), (110), (113), (202), (016), (018), (122), (224), and (036) diffraction planes of calcite (JCPDS card no. 47–1743) [17, 25]. Calcite is the most stable polymorph of CaCO3 and the presence of strong peaks of calcite in nEMG also confirms the successful loading of eggshell nanoplatelets onto MG [25, 39]. These strong peaks also reveal that no structural changes in the eggshell CaCO3 occurred during the nano-eggshell preparation [17]. The peak at 26.55° 2θ° is attributed to precursor MG’s (002) graphitic plane [7]. For nM-EMG, the peaks at 30.27°, 35.56°, 43.29°, 53.72°, 57.27°, and 63.84° correspond to the (202), (311), (400), (422), (511), and (440) reflection planes of magnetite (Fe3O4) respectively (JCPDS card no. 19–0629) [29, 37]. The existence of magnetite peaks further confirms the successful ferro-magnetization of nM-EMG.

Fig. 4
figure 4

XRD spectra of prepared adsorbents

3.1.5 FTIR spectra before and after adsorption

The FTIR spectra of the prepared adsorbents before MR adsorption, as presented in Fig. 5a, affirmed the successful adsorbent preparations. The peaks at 1591, 1632, and 1640 cm−1 are attributed to the vibrations of C = C stretching of aromatic rings of sp2 graphite in all prepared adsorbents [7]. The intensity of the C = C peak was reduced in nEMG and nM-EMG due to surface coating by eggshell and magnetite nanoparticles respectively. The peaks at 3431 and 3435 cm−1 in MG, nEMG, and nM-EMG are characteristic of O–H stretching vibration of polymeric compounds such as alcohols, carboxylic acids, and phenols, indicating the existence of free hydroxyl groups. The peaks at 2927, (2035, 1416, and 1440), and (1060 and 1188) cm−1 in MG and nM-EMG correspond to C–H, C = O, and C–O vibrations of methyl, carboxyl, and alkoxyl groups respectively. The peaks at 866, 875, 746, and 590 cm−1 are due to out-of-plane angular deformation of aromatic rings in MG and nM-EMG. However, the strong peak at 618 cm−1 in nM-EMG is attributed to Fe–O bond stretching vibrations of magnetite (Fe3O4) [34]. Regarding nEMG, the weak peak at 1790 cm−1 corresponds to the C = O bonds of carbonates (bio-CaCO3 in eggshell). The peak at 703 cm−1 is ascribed to Ca–O bond [20]. Meanwhile, the peaks at 1416 cm−1 and 876 cm−1 correspond to the C–O stretching and bending modes of CaCO3 respectively [22, 40, 41]. Hydrophilic compounds such as O–H and Fe–O promote efficient adsorbent dispersion in water, while hydrophobic groups such as C = C increase contaminant binding affinity [34].

Fig. 5
figure 5

FTIR of prepared adsorbents a before and b after MR adsorption

Changes in FTIR spectra of the adsorbents after MR adsorption (Fig. 5b) were used to explain the MR sorption behavior and the role of adsorbents’ surface functional groups. Distinct changes in the wavenumber and intensity of the initial O–H, C = O, and C–O peaks show the involvement of the oxygen functional groups of the prepared adsorbents in MR adsorption. The peaks at 3421, 3434, and 3466 cm−1 in all the adsorbents can be attributed to the stretching vibrations of O–H groups of MR or lattice water. The C = C bond peaks in all the prepared adsorbents shifted to a higher wavenumber of 1644 and 1655 cm−1 due to π–π electron stacking of the C = C bonds of the MR dye’s benzene rings and the delocalized electron in the prepared graphene-based adsorbents [29, 42, 43]. The peaks at 2922, 2920, and 2976 cm−1 are due to the stretching vibration of the C–H groups of MR. The peaks at around 1426 and 1334 cm−1 can be ascribed to the bending vibration of C = O (carbonyl group) of MR, whereas the peaks at 1178, 1054, 1069, and 1042 cm−1 are attributed to the stretching vibration of C–O bonds of anionic MR [7, 43]. The presence of 1800, 1446, 879, and 712 cm−1 peaks of CaCO3 in nEMG indicates the stability of the calcite in the MR solution. The Fe–O peak of nM-EMG shifted to a higher wavenumber of 630 cm−1, suggesting a possible role in assisting organic molecules’ diffusion to the active sites [29]. Based on the FTIR findings, we proposed that the interaction between MR molecules and the prepared adsorbents were (i) π-π electron interactions between the aromatic groups of MR and graphene, (ii) electrostatic interactions between COO group of MR and the oxygen functional groups of the adsorbents, and (iii) hydrogen bonding with COOH group of MR as illustrated in Fig. 6.

Fig. 6
figure 6

Plausible MR adsorption mechanism showing interactions between functional groups of nM-EMG and MR

3.1.6 pHpzc of prepared adsorbents

The pH of the adsorbate solution can alter the surface charge of adsorbents through protonation and deprotonation interactions with H3O+ and OH ions [27, 44]. pHpzc is the pH at which the adsorbent’s surface is electrically neutral [44]. The pHpzc of MG, nEMG, and nM-EMG are 7.2, 8.5, and 6.8 respectively (Fig. S2). Since MG has a pHpzc of 7.2 and nEMG is a composite of MG and nano-eggshell, the increase in the pHpzc value of nEMG to 8.5 was due to the inclusion of eggshell. Annane et al. [20] reported that eggshell has a pHpzc of 9.27. Kumi also reported an increase in pHpzc to 8.2 after modifying sludge‑derived biochar with eggshell [45]. The reduction in the pHpzc value of nM-EMG is due to the additional surface oxygen content from the iron oxide nanoparticles.

3.2 Adsorption studies

3.2.1 Effect of initial MR solution pH

MR is an azo dye (2-(N,N-dimethyl-4-aminophenyl) azobenzenecarboxylic acid) soluble in water with a pKa of 5.1 and can exhibit hydrophobic interactions due to its –N(CH3)2 sites [43, 46]. MR has complex acid–base equilibria with four different forms depending on solution pH. These forms include neutral (MR0), zwitterionic (MR±), protonated/cationic (MRH+), and deprotonated/anionic (MR) [47]. Therefore, we first investigated the effect of pH to ascertain the optimum adsorption pH as depicted in Fig. 7.

Fig. 7
figure 7

Effect of pH on MR decolorization [conditions: C0 = 100 mg/L; adsorbent dose = 1 g/100 mL; solution temperature = 25 °C, contact time = 60 min]

At the pristine pH of MR solution (6.1), which is above the MR pKa and MR exists as MR because of the deprotonation of its carboxylic (–COOH) group to COO, MG exhibited a relatively high MR adsorption capacity (4.39 mg/g) than nEMG (2.97 mg/g) and nM-EMG (2.27 mg/g). Higher MR adsorption occurred between protonated MG and deprotonated or anionic MR at pH 6.1. Moreover, MG can interact with MR over a wide pH range via π-π electron interactions. nEMG has a pHpzc of 8.5, which implies that its net surface charge becomes positive below 8.5 and negative beyond that value. However, the lower adsorption in nEMG may be due to the basic carbonate species from calcite which created a basic environment causing the final pH to rise to 7.8 and a repulsion between MR and nEMG [48]. Meanwhile, nEMG contains 50% graphene (1:1 carbon:eggshell nanoparticles), which could also adsorb MR over a wide pH range via π-π electron interactions. Regarding nM-EMG, it is suggested that the MR had a weak electrostatic interaction with the Fe3O4 sites in the adsorbent at pH 6.1 due to resonance leading to low adsorption capacity [46]. MR adsorption capacities declined significantly with increasing solution pH > 7 due to deprotonation of adsorbent surfaces by hydroxyl ions [OH] resulting in repulsive forces between the COO group of MR and negatively charged adsorbents. In mildly acidic conditions (3 < pH < 6) which is below the pKa of MR, the –N(CH3)2 group of MR becomes protonated [47]. Thus, MR usually exists as zwitterionic MR± with –[N(CH3)2]+ and COO groups in mildly acidic conditions while adsorbents’ surface is more protonated based on their pHpzc [47]. Consequently, the MR adsorption was favored at these low pH ranges, where strong electrostatic interactions occurred between the COO group of MR± and the positively charged adsorbents’ surface. nEMG had the highest MR removal at pH 4. The activated (protonated) O–H, C = O, and C–O functional groups of the high surface area nEMG supplemented its graphene component and enhanced nEMG adsorption affinity for the COO group of MR± [40, 41, 48]. This phenomenon explains the relatively high adsorption capacity of nEMG (8.1 mg/g) at pH 4. Moreover, the bio-CaCO3 of eggshell could have also taken up MR molecules through biosorption. However, below pH 4, the adsorption capacity of nEMG declined, possibly due to the loss of adsorbent via CaCO3 dissolution in the presence of excess HCl or repulsive forces between MRH+ and positively charged nEMG surface [49]. The adsorption capacity of nM-EMG also increased significantly with decreasing pH. The highly porous nano-Fe3O4 in nM-EMG can also undergo protonation in acidic conditions to promote electrostatic interactions and enhance the diffusion and adsorption of MR molecules, hence its relatively high adsorption capacity (6.46 mg/g) at pH 4 compared to MG (5.6 mg/g) [7, 29, 46]. However, nano-Fe3O4 could gradually dissolve in strongly acidic conditions to cause adsorbent loss and thence reduce the MR adsorption efficiency at pH < 4 [28, 50, 51]. MR adsorption on MG was favored in all acidic conditions. Besides the electrostatic interactions that took place, it is possible that π+–π electron donor–acceptor interactions between [MG]+ and MR±/MRH+ also occurred even in highly acidic conditions (pH < 4). The cationic –[N(CH3)2]+ group attached to the aromatic ring of MR may have a strong electron-withdrawing ability (highly electrophilic), causing the π electrons in the aromatic ring of MR±/MRH+ to be polarized and decreasing electron density [52]. This led to a simultaneous reduction in the electrostatic repulsion between the π electrons of MR aromatic rings and promoted the interactions between the polarized aromatic MRH+ and the electron-rich aromatic rings of graphitic [MG]+ in extremely low pH [52,53,54]. However, it is possible that most of the adsorptive sites of the low surface area of MG were occupied at pH < pHphz; hence, a further decrease in pH (pH <  < pHphz) did not significantly increase the adsorption capacity. It is concluded from these findings that pH 4 was the optimum pH for MR adsorption on nEMG and nM-EMG, with removal efficiencies of 71% and 64.6% respectively. Although MR adsorption on MG was favorable under all acidic conditions, pH 4 with a removal efficiency of 57% was also chosen as the optimal pH for MG since no substantial increment in MR removal efficiency was observed at pH 2 (~ 59% MR removal). The optimal pH of 4 was maintained for all subsequent experiments.

3.2.2 Effect of contact time

The MR adsorption was rapid in the first 30 min (Fig. 8). The porous texture of MG and nEMG accelerated the diffusion and adsorption of MR into these adsorbents’ inner pores. After the initial 30 min, the sorption rate and intensity were reduced due to filling vacant sites. MR adsorption on MG attained equilibrium after 30 min. The nano-eggshell component of nEMG continued the MR for an extra 10 min leading to a 40-min equilibrium time for nEMG. MG is mesoporous, and MR rapidly diffuses into its inner pores, where adsorption occurs. However, there may also be a rapid occupation of its lower surface area, hence the short adsorption time and lower adsorption capacity. The nano-eggshell in nEMG has a high surface area with vital oxygen functional groups that are active (sufficiently protonated) at pH 4 and thus improve the adsorption capacity of nEMG. Meanwhile, the introduction of high surface eggshell nano-particles may have delayed the adsorption equilibrium time in nEMG and nM-EMG. Rajoriya et al. [22] reported that MR adsorption on eggshell took 180-min contact time to reach equilibrium. Therefore, the formation of nanoscale eggshell in this work substantially improved the porosity and adsorption capacity of the eggshell (8.1 mg/g) with a relatively lower contact time (40 min) compared to Rajoriya et al. Regarding nM-EMG, the protonated high surface area nano-Fe3O4 propelled MR adsorption beyond 40 min where most sites were expected to be occupied. The enhanced diffusion effect by protonated nano-Fe3O4 drove the MR adsorption till equilibrium at 60 min, where all active sites were occupied and improved the adsorption capacity of nM-EMG. The equilibrium adsorption capacity of MG, nEMG, and nM-EMG were 5.6, 8.1, and 6.46 mg/g respectively (Fig. 8).

Fig. 8
figure 8

Effect of contact time on MR decolorization [conditions: C0 = 100 mg/L; adsorbent dose = 1 g/100 mL; solution temperature = 25 °C; solution pH = 4]

3.2.3 Effect of adsorbent dosage

As illustrated in Fig. 9, increasing the dose of all prepared adsorbents improved MR adsorption efficiency. Increasing the adsorbent dosage above 0.1 g/100 mL expanded the interaction between the dye and the adsorbent surface owing to the increased availability of active adsorption sites due to an increase in total surface area and the number of binding site MR removal on MG, nEMG, and nM-EMG efficiency increased from 15.57 to 68.60%, 24.24 to 87.18%, and 20.84 to 73.50% respectively when the adsorbent dose was increased from 0.1 g/100 mL to 2.0 g/100 mL. Furthermore, increasing the adsorbent dosage increases the number of holes available for MR sorption via pore filling [27, 55]. However, as the adsorbent dosage was increased beyond 0.1 g/100 mL, the equilibrium capacity decreased due to aggregation. Aggregation of adsorbents saturates the adsorption sites, lowering adsorbents’ overall effective surface area and lengthening their diffusional path, reducing the adsorption capacity [33, 56]. 1 g/100 mL (10 g/L) was maintained as the optimum dose of all the prepared adsorbents to minimize the agglomeration effect. Moreover, the improvement in MR removal efficiency observed beyond 1 g/100 mL was relatively low.

Fig. 9
figure 9

Effect of adsorbent dose on MR decolorization [conditions: C0 = 100 mg/L; MR solution volume = 100 mL; solution temperature = 25 °C; solution pH = 4]

3.2.4 Effect of initial dye concentration

The adsorption capacities of all prepared adsorbents were enhanced with increasing MR dye concentration as illustrated in Fig. 10. The qe of MG, nEMG, and nM-EMG increased from 0.92 to 7.90 mg/g, 0.98 to 12.05 mg/g, and 0.93 to 9.44 mg/g respectively when the MR concentration was increased from 10 to 200 mg/L. Increasing dye concentration enhances mass transfer driving force via several collisions between dye molecules and the adsorbents’ surface. This phenomenon usually occurs in the initial stages of adsorption [7]. Meanwhile, as MR concentration increased from 10 to 200 mg/L, MG, nEMG, and nM-EMG’s adsorption efficiencies declined from 91.93 to 39.50%, 98.49 to 60.23%, and 93.21 to 47.21% respectively. This is possibly due to the growing repulsion forces between the dye molecules on the adsorbent’s surface and the bulk phase after the initial rapid adsorption [44]. Furthermore, the ratio of accessible binding sites to the initial dye concentration was greater at lower dye concentrations, implying a high likelihood of complete MR adsorption. Meanwhile, when the initial dye concentration increased, the ratio decreased and there was fast saturation of the adsorption sites, which eventually impeded the further migration of the remaining MR dyestuff towards the adsorbent’s surface [7]. Ten milligrams per liter of MR concentration was consequently the optimum concentration where maximum MR removal could be achieved using the prepared adsorbents.

Fig. 10
figure 10

Effect of initial dye concentration on MR decolorization [conditions: adsorbent dose = 1 g/100 mL; solution temperature = 25 °C; solution pH = 4]

3.2.5 Effect of MR solution temperature

Increasing solution temperature enhanced MR adsorption with all prepared adsorbents as shown in Fig. 11. The MR adsorption on MG, nEMG, and nM-EMG approach complete removal (over 99%) when the temperature was raised to 60 °C. This pattern indicates the presence of strong attractive interactions between adsorbents and MR molecules, implying a chemisorption process [7]. Increasing solution temperature improved MR molecules’ diffusion rate from the solution bulk to the adsorbent surface via the external boundary layer and the MR adsorption in the inner pores increased [57]. As temperature rises, the mobility of MR molecules increases while the thickness of the boundary layer surrounding the adsorbent reduces, thus lowering the mass transfer resistance of adsorbate in the boundary layer [57]. Additionally, adsorbents can be activated at elevated temperatures to create new active sites, improving MR adsorption [7]. However, since MR adsorption was stable and effective at 25 °C, 25 °C was selected as the optimum pH. Moreover, increasing temperature can induce extra costs to the adsorption process.

Fig. 11
figure 11

Effect of solution temperature on MR decolorization [conditions: C0 = 10 mg/L; adsorbent dose = 1 g/100 mL; solution pH = 4]

3.3 Adsorption model, kinetics, and mechanism

3.3.1 Adsorption isotherm

The graphs of the linear models of Langmuir, Freundlich, and Temkin isotherms are presented in Fig. S3a, b, c and the values of the isotherm parameters are summarized in Table 2. The maximum Langmuir adsorption capacities (qm) of 9.11, 13.35, and 10.98 mg/g were obtained with MG, nEMG, and nM-EMG respectively. The RL values for MG (0.01), nEMG (0.047), and nM-EMG (0.092) were in the range of zero to unity, indicating the MR adsorption processes were favorable. However, MR adsorption with all prepared adsorbents followed the Freundlich isotherm model with a higher coefficient of determination (R2 = 0.990–0.993) than the Langmuir isotherm model (R2 = 0.951–0.974). Therefore, the Temkin isotherm was used to check whether the adsorption mechanism is chemisorption [58, 59]. Nevertheless, all MR adsorption systems followed the Temkin model with relatively weak coefficient of determination (R2 values = 0.872–0.887). Therefore, the Temkin constant (B) could not be used to confirm the adsorption mechanism since the fits were not good enough.

Table 2 Adsorption isotherm parameters of MR-adsorbent systems at an adsorbent dosage of 1 g/100 mL, pH of 4, and temperature of 25 °C

The non-linear Langmuir, Freundlich, Langmuir–Freundlich (L-F), and Dubinin-Radushkevich (D-R) models were fitted on the equilibrium plot of qe against Ce (Fig. S4) to provide a further understanding of the MR adsorption behavior. From Table 2, both the non-linear Langmuir (R2 values = 0.978–0.987) and Freundlich (R2 values = 0.977–0.987) isotherm models of MR adsorption by all prepared adsorbents had strong coefficient of determination. The R2 values of the L-F isotherm were stronger (0.987–989) than that of the non-linear Langmuir, Freundlich, and D-R models. This confirms that the L-F isotherm better describes the MR adsorption process. The L-F isotherm describes the adsorption process as Langmuir (chemisorption) but with the distribution of adsorption energy onto a heterogeneous adsorbent surface [59, 60].

3.3.2 MR adsorption kinetics

For all prepared adsorbents, MR adsorption followed the pseudo-second-order kinetics model with R2 closer to unity than the pseudo-first-order kinetics model (Table 3). Moreover, the calculated equilibrium adsorption capacities (qe, cal) of the pseudo-second-order kinetics model were closer to the actual equilibrium adsorption capacities (relatively low Δq(%) values). Therefore, the rate-controlling step for all MR sorption systems may be chemisorption [33, 60]. Furthermore, these findings indicate that the MR dye adsorption rate depended on the surface area of the produced adsorbents and the availability of adsorptive sites [44, 61]. The MR chemisorption is portrayed by the electrostatic interaction between the protonated oxygen functional groups of the adsorbents and the COO group of MR as illustrated in Fig. 6. Meanwhile, k2 values dropped as the dye concentration increased due to stronger competition for the adsorptive sites with increasing dye concentration.

Table 3 Parameters and coefficients of the kinetic models of MR-sorption systems at a temperature of 25 °C, pH of 4, and adsorbents dose of 1 g/100 mL

3.3.3 MR diffusion mechanism

Generally, the rate of adsorption can be controlled by various factors such as (a) adsorbate ion diffusion from the solution phase to the film surrounding the external surface of the adsorbent (film diffusion); (b) diffusion from the film to the particle surface (external diffusion); (c) diffusion from the surface to the internal sites (surface diffusion or pore diffusion); and (d) adsorbate ion uptake via physicochemical adsorption, ion exchange, precipitation, or complexation [43]. The kinetics of all MR adsorption processes were first elucidated using intra-particle diffusion and comprised two phases (Fig. S5). The first phase involved (a) and (b) simultaneously and the final steps involved (c) and (d). From Fig. S5, the intra-particle diffusion model is not the only control mechanism, as the multi-linear plots of qt versus t0.5 of all adsorption systems did not pass through the origin [32, 43]. Moreover, the R2 values of intra-particle diffusion are between 0.685 and 0.740 for MG, 0.737 and 0.850 for nEMG, and 0.752 and 878 for nM-EMG (Table 3). The thickness of the boundary layer (C) was between 0.19 and 3.59 for MG, 0.20 and 2.85 for nEMG, and 0.23–3.17 for nM-EMG.

Meanwhile, the film diffusion model (plot of ln[1 − qt/qe] against t) for all prepared adsorbents (Fig. S6) had a stronger linear correlation in ranges of 0.952–0.998, 0.918–0.980, and 0.949–0.994 for MG, nEMG, and nM-EMG respectively (Table 3). This shows that the film diffusion model is applicable. However, if the film diffusion is only the rate control step, its plot should be linear with zero intercept [43]. Since the linear plots of the film diffusion model did not pass through the origin, the liquid-film diffusion model may not be the only rate-controlling step. Consequently, intra-particle diffusion and liquid-film diffusion controlled the MR dye adsorption on all prepared adsorbents. The liquid-film rate constants, klfd, were between 0.070 and 0.123 min−1 for MG, 0.074–0.108 for nEMG, and 0.061–4.805 min−1 for nM-EMG (Table 3).

3.3.4 Thermodynamics studies of MR adsorption

The thermodynamic fit of MR-adsorbent systems and the results of the thermodynamic parameters are presented in Fig. S7 and Table 4 respectively. The ΔH values were positive; hence, all adsorption processes were endothermic with all adsorbents. In all the MR adsorption systems, negative ΔG values indicated that adsorbent processes were spontaneous and feasible. In addition, the ΔG values decreased with the increase in temperatures indicating that the process of adsorption was more spontaneous with temperature and chemisorption [7]. The positive ΔS values denote that the degree of randomness of the adsorption process increased at the solid–liquid interface [32]. The positive ΔS values also suggest a solvent-replacing phenomenon in the sorption process, in which the MR molecules replace water molecules on the adsorbents’ surface [44].

Table 4 Thermodynamics parameters of prepared adsorbents on the adsorption of 100 mg/L of MR dye at temperatures of 25 to 60 °C, pH of 4, and adsorbent dose of 1 g/100 mL

3.4 Performance of prepared adsorbents in different water matrices

Several inorganic ions are ubiquitously present in natural waters along with natural organic matter (humic acid (HA)) and suspended solids. Highly turbid water can lead to poor mixing between adsorbents and adsorbate and slow down the mobility of adsorbate ions onto the adsorbent’s surface. Inorganic ions such as chlorides and sulfates (high total dissolved solids (TDS)) can compete with adsorbate for the adsorbent’s active site and decrease the adsorption capacity. High specific ultraviolet absorbance (SUVA) values (≥ 2.0 L/mg m) signify the high aromaticity of the organic content [62]. The natural organic matter (NOM) from dissolved organic carbon (DOC) of high aromatic content can be adsorbed on the surface of the adsorbents via π electron interactions or biosorption and exhaust the active sites needed for adsorbate adsorption. Thus, the prepared adsorbents were tested for their selectivity towards MR dye in different water matrices (Fig. S8). Ten parts per million MR solution was prepared in 100 mL of distilled water (DIW), tap water (TW), seawater (SW), lake water (LW), and drain water (DW) under the optimum condition (adsorbent dose of 1.0 g/100 mL and pH 4) for 60 min. The characteristics of the water matrix are described in Table S1. The adsorption capacity of MG dropped from 7.903 mg/g in DIW to 7.09 mg/g in TW, 4.23 mg/g in SW, 6.19 mg/g in LW, and 4.41 in DW. nEMG’s adsorption capacity decreased from 12.196 mg/g in DIW to 10.92 mg/g in TW, 7.61 mg/g in SW, 8.98 mg/g in LW, and 5.88 in DW. nM-EMG’s capacity for MR reduced from 9.44 mg/g in DIW to 8.92 mg/g in TW, 6.823 mg/g in SW, 7.98 mg/g in LW, and 7.69 mg/g in DW. As illustrated in Fig. S8, DIW and TW had a mild influence on the selectivity of all prepared adsorbents towards MR. TW and DIW contain relatively low TDS, low DOC, and low turbidity. Thus, competition for adsorbents’ active sites in such waters was minimal. Although LW also has low TDS, the adsorption capacity of all the prepared adsorbents dropped. This decrease in adsorption capacity was attributed to lake water’s high turbidity, resulting in poor mobility of MR ions. Moreover, the adsorption capacity of nEMG was greatly affected compared to MG and nM-EMG. This outcome is ascribed to the relatively high DOC of lake water. Biosorption of the DOC by the bio-CaCO3 of eggshell in nEMG may have reduced the total active sites and affinity for MR ions. Meanwhile, the nano-magnetic coating of nM-EMG reduced its biosorption affinity and improved nM-EMG performance in high DOC waters. The lowest MR adsorption efficiencies were attained in the case of SW, followed by the DW water matrix due to the presence of inorganic salts and high turbidity in these water matrices. This study showed that the adsorption efficiency was influenced by dissolved inorganic salts, turbidity, and organic matter. However, the influence on nM-EMG was relatively less, possibly due to the nano-Fe3O4 coating serving as a layer that reduced the competition for oxygen functional groups such as the O–H, C = O, and C–O.

3.5 Recyclability of adsorbents

The efficiency of the MR removal after regeneration and reuse of produced adsorbents is shown in Fig. 12. The efficiency of MR adsorption declined from 91.7% (cycle 1) to 72.2% (cycle 5) and 98.2% (cycle 1) to 71.1% (cycle 5) for MG and nEMG, respectively. This is due to the loss of MG and nEMG during the collection of adsorbents via filtration and centrifugation. Meanwhile, the removal efficiency decreased from 93.2% (cycle 1) to 89.7% (cycle 5) with nM-EMG. The decline in removal efficiency of nM-EMG was less than MG and nEMG. This outcome reveals the high stability and reusability of nM-EMG because of the easy and effective magnetic separation and negligible adsorbent loss during collection. Hence, the nano-magnetization overcame the problem of particle collection after adsorption and the occurrence of secondary pollution. Moreover, it saves the time and energy required to collect particles via filtration and centrifugation.

Fig. 12
figure 12

Reusability of adsorbents [conditions: C0 = 10 mg/L; adsorbent dose = 1 g/100 mL; temperature = 25 °C; solution pH = 4]

3.6 Comparison of MR adsorption studies

Table S2 compares this present study with literature under different experimental conditions of MR adsorption. MG, nEMG, and nM-EMG showed higher adsorption performance than the adsorbents prepared in other studies [22, 32, 43, 46, 63,64,65,66,67,68]. However, other adsorbents with higher MR adsorption capacity than the prepared adsorbents in this work were chemically modified using reagents such as K2CO3, H2SO4, H3PO4, and KOH. Besides the implications of additional costs, these chemicals can also be potentially toxic to the environment. Thus, this work’s utilization of waste plastics and eggshells offers an innovative, facile, green, and cheap technology to prepare novel adsorbents for effective wastewater decontamination.

4 Conclusion

The interaction between the components of the composites, chemical structure, chemical composition, high surface area, and high porosity was affirmed by the performed analyses. nEMG has an improved surface area, porosity, and adsorption capacity due to nano-eggshell modification. The MR adsorption occurred via electrostatic interactions, π-π electron stacking, π-π electron or donor–acceptor interactions, and hydrogen bonding. MR adsorption was more favored at low pH ranges (3 < pH < 6), where strong electrostatic interactions occurred between the COO group of zwitterionic MR± and the positively charged adsorbents’ surface. The optimum values of pH, initial MR concentration, adsorbent dose, and temperature were 4, 10 mg/L, 1 g/100 mL, and 25 °C respectively. The MR adsorption on MG, nEMG, and nM-EMG reached equilibrium at 30, 40, and 60 min respectively. MR removal efficiency with MG, nEMG, and nM-EMG declined from 91.93 to 39.50%, 98.49 to 60.23%, and 93.21 to 47.21% respectively when the MR concentration increased from 10 to 200 mg/L. The adsorption process was chemical, spontaneous, and endothermic and was governed by intra-particle and film diffusion. nM-EMG showed exhibited excellent stability and reusability than MG and nEMG with MR removal decreasing from 93.2 to 89.7% after five repetitive cycles. The influence of co-adsorbates or impurities such as organic matter and dissolved solids in different water matrices on nM-EMG was relatively low due to nano-Fe3O4 layer. The prepared magnetic nano-eggshell modified carbon composite (nM-EMG) in this work is a cost-efficient, green, and effective adsorbent and can be efficiently recycled in repetitive cycles which qualifies the prepared composite to be applied on a wider scale. The adsorbents prepared in this work have low chemical demand, thus reducing cost, the complexity of chemical handling, and chemical toxicity to the environment. Valorizing waste plastics and eggshells proposed in this work offers a profitable opportunity to curb the environmental menace associated with these wastes. Further research is needed to optimize the ratios between nano-eggshell and MG, and between iron concentration and nEMG, as well as an economic analysis.