How AI Models Actually Get Smarter: Training, Fine-Tuning & Reasoning Explained