Alphabet hits $1 trillion landmark amid ad growth optimism