Modern Firewalls: A Comprehensive Review of Advanced Filtering Techniques and AI Security Enhancements