Optimizing Real- Time Threat Detection with Feature Engineering Strategies for Intelligent NIDS