anybody have any ideas on what turned it back
They have been moving backwards since Erdogan’s party took over, back around 2002, I think. That party is explicitly Islamist, and they have been rolling back long-standing secular reforms ever since they got into power.
Obviously, the public attitudes were changing before that, or Erdogan’s Islamist party never could have gotten elected.