Mastering NLP from Foundations to LLMs