Здесь is a neutral word for either here (place) or here/now (time).
Тут is more about conditions, both place and time. Тут oftem marks changes in the circumstances, from good to bad or from bad to good.
Example:
Тут заходит муж. — And then the husband came in. (тут here is about time and changes in the situation)