You make too many assumptions, but Taliban is by-product of Pakistani obsession with India and Strategic depth.
Taliban is not mujaheddin, they are different entities. Taliban rose in the 90s and swiftly took over Afghanistan with a lot of support from ISI.
Mujaheddin, sure CIA was involved but Taliban is a brainchild of Rawalpindi not Langley.
No more thab the Taliban is a byproduct of the US obsession with the USSR and the US preference for indirect action in the wake of Vietnam, and it's acting without much concern for non-immediate consequences.