Securing the Future: Real-Time intrusion Detection in IIoT Smart Grids through Innovative AI Solutions